BMKG Gempa & Cuaca MCP Server
Indonesian earthquakes and village weather forecasts from BMKG open data. No API key.
BMKG Gempa & Cuaca scores 66 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 4 tools. Filed under Data and analytics, Maps and location. GitHub shows 0 stars. Package registries report about 103 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
86/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ezkielynagroup-mcp-bmkg": { "command": "npx", "args": [ "-y", "mcp-bmkg@1.0.0" ], "env": { "MCP_BMKG_TIMEOUT_MS": "", "MCP_BMKG_CACHE_MS": "", "MCP_BMKG_BASE_URL": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
MCP_BMKG_TIMEOUT_MS | Optional | Timeout per BMKG request in ms (default 10000) |
MCP_BMKG_CACHE_MS | Optional | Cache lifetime per URL in ms (default 60000) |
MCP_BMKG_BASE_URL | Optional | Override base URL for both BMKG hosts (tests or mirrors) |
Tools4Tool docs quality grade C
All capabilitiesgempa_dirasakantoolThe 15 most recent felt earthquakes, with MMI intensity per area.
gempa_m5toolThe 15 most recent M 5.0+ earthquakes, with tsunami potential.
gempa_terbarutoolThe latest earthquake BMKG published as "Gempabumi Terbaru": time (WIB + UTC), magnitude, depth, coordinates, nearest region, tsunami potential, felt areas (MMI) and the shakemap image link. Usually M 5.0+, but BMKG also uses this feed for
prakiraan_cuacatool3-hourly forecast for one kelurahan/desa for up to 3 days: weather (ID + EN), temperature, humidity, wind, cloud cover, visibility.
About
mcp-bmkg
An MCP server that gives your AI assistant Indonesian earthquake data and village-level weather forecasts from BMKG open data. No API key, no account, one file, zero dependencies.
Example: "Was there a strong earthquake in Indonesia today? And what's the weather in Kemayoran (31.71.03.1001) tomorrow afternoon?"
🇮🇩 Bahasa Indonesia: lihat bagian di bawah.
- Works in Claude Desktop, Claude Code, Cursor, OpenCode and any MCP client that runs local stdio servers.
- Answers in Indonesian, with a JSON block that uses English field names (easy for code and agents).
- Every answer ends with "Sumber: BMKG" and the fetch time in WIB, as BMKG's open data terms require.
- 60-second cache and a 10-second timeout per request, so it stays well inside BMKG's limit of 60 requests per minute per IP.
Tools
| Tool | What it returns | Input |
|---|---|---|
gempa_terbaru | The latest earthquake BMKG published as "Gempabumi Terbaru": time (WIB + UTC), magnitude, depth, coordinates, nearest region, tsunami potential, felt areas (MMI) and the shakemap image link. Usually M 5.0+, but BMKG also uses this feed for smaller quakes that were felt. | none |
gempa_dirasakan | The 15 most recent felt earthquakes, with MMI intensity per area. | limit (1-15), min_magnitude |
gempa_m5 | The 15 most recent M 5.0+ earthquakes, with tsunami potential. | limit (1-15), min_magnitude |
prakiraan_cuaca | 3-hourly forecast for one kelurahan/desa for up to 3 days: weather (ID + EN), temperature, humidity, wind, cloud cover, visibility. | adm4 (required, e.g. 31.71.03.1001), days (1-3) |
All tools are read-only and free. Example JSON (shortened) from gempa_m5:
{
"dataset": "gempaterkini",
"count": 1,
"earthquakes": [
{ "datetime_utc": "2026-11-10T15:51:37+00:00", "time_local": "22:51:37 WIB", "magnitude": 5.1, "depth_km": 10,
"latitude": -0.93, "longitude": 128.6, "region": "116 km TimurLaut HALMAHERASELATAN-MALUT", "potential": "Tidak berpotensi tsunami" }
],
"source": "BMKG",
"fetched_at_wib": "2026-11-11 23:17:52 WIB"
}
Install
Requires Node.js 18+ (node -v). With npx there is nothing else to install: your app runs npx -y mcp-bmkg.
Claude Desktop: Settings → Developer → Edit Config (claude_desktop_config.json), then fully quit and reopen Claude Desktop.
{
"mcpServers": {
"bmkg": {
"command": "npx",
"args": ["-y", "mcp-bmkg"]
}
}
}
Claude Code
claude mcp add bmkg -- npx -y mcp-bmkg
Add --scope user to make it available in every project. Check with claude mcp list.
Cursor: ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), same JSON as Claude Desktop.
OpenCode: opencode.json in the project, or ~/.config/opencode/opencode.json.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"bmkg": {
"type": "local",
"command": ["npx", "-y", "mcp-bmkg"],
"enabled": true
}
}
}
Windows: if the app cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "mcp-bmkg"].
From source: git clone https://github.com/EzkielynaGroup/mcp-bmkg.git, then use "command": "node" with "args": ["/full/path/to/mcp-bmkg.mjs"].
Configuration (optional)
| Variable | Default | Notes |
|---|---|---|
MCP_BMKG_TIMEOUT_MS | 10000 | timeout per request (1000-120000) |
MCP_BMKG_CACHE_MS | 60000 | cache lifetime per URL; 0 disables the cache |
MCP_BMKG_BASE_URL | unset | one base URL for both BMKG hosts, for tests or a mirror. Unset = https://data.bmkg.go.id (earthquakes) and https://api.bmkg.go.id (forecasts) |
Finding the adm4 village code
prakiraan_cuaca needs the Kemendagri level-4 region code of a kelurahan/desa, written PP.KK.CC.DDDD (province, regency/city, district, village). BMKG's forecast page refers to Keputusan Menteri Dalam Negeri Nomor 100.1.1-6117 Tahun 2022 for these codes and gives the example 31.71.03.1001 = Kelurahan Kemayoran, Jakarta Pusat.
This server does not bundle a code lookup: the full list has more than 80,000 villages, and BMKG does not publish a search endpoint for it. Ways to find a code:
- Easiest: add the companion server mcp-wilayah-indonesia (
npx -y mcp-wilayah-indonesia, offline). Itscari_wilayahtool finds a village by name and returnsbmkg_adm4, so you can ask "cuaca besok di Kemayoran" and the assistant chains both servers. - The Kemendagri decision on region codes (the attachment lists every village with its code).
- Community datasets on GitHub that republish the Kemendagri list (search "kode wilayah kemendagri"). Check their license and which decision year they follow.
- Statistics Indonesia (BPS) uses its own codes, which do not always match Kemendagri codes. Do not mix them.
If a code is wrong or BMKG has no forecast for it, the tool says so ("Kode wilayah tidak ditemukan") instead of guessing.
Data source and terms
All data comes live from BMKG (Badan Meteorologi, Klimatologi, dan Geofisika) open data, checked on 11 Nov 2026:
| Data | Endpoint | Updated (per BMKG) |
|---|---|---|
| Latest earthquake | https://data.bmkg.go.id/DataMKG/TEWS/autogempa.json | on every event |
| 15 latest M 5.0+ | https://data.bmkg.go.id/DataMKG/TEWS/gempaterkini.json | on every event |
| 15 latest felt | https://data.bmkg.go.id/DataMKG/TEWS/gempadirasakan.json | on every event |
| Shakemap image | https://data.bmkg.go.id/DataMKG/TEWS/<Shakemap> | per event |
| Village forecast | https://api.bmkg.go.id/publik/prakiraan-cuaca?adm4=<code> | twice a day, 3-hourly, 3 days |
Terms, from data.bmkg.go.id and its forecast page: users must credit BMKG as the data source and show that credit in their app: "Wajib untuk mencantumkan BMKG ... sebagai sumber data dan menampilkannya pada aplikasi/sistem Anda." The access limit is 60 requests per minute per IP. This server therefore ends every answer with "Sumber: BMKG" and caches responses for 60 seconds. If you show results to other people, keep that credit.
This server does not redistribute BMKG data; it fetches it at request time. The recorded responses in test/fixtures/ (BMKG data, 11 Nov 2026) are used only by the offline tests and are not part of the npm package. This project is independent and is not affiliated with BMKG.
Not documented by BMKG: the forecast field tp. The server passes it on as precipitation_mm, which is our reading of it (unverified).
Safety and limits
- Read-only. No files are written, no key or account is used.
adm4is validated locally (00.00.00.0000) before any request; invalid input never reaches BMKG.- Timeout per request (default 10 s), responses over 2 MB are rejected, at most 15 quakes and 40 forecast rows per answer.
- Errors come back as short Indonesian + English messages (timeout, rate limit, code not found, BMKG down), never as stack traces.
- Logs go to stderr; stdout carries only MCP messages.
- For emergencies, follow BMKG's own channels and your local authorities. This tool relays BMKG data and adds no warnings of its own.
FAQ
Is there a free API for Indonesian earthquake data? Yes. BMKG publishes the latest quake, the 15 latest M 5.0+ quakes and the 15 latest felt quakes as free JSON at data.bmkg.go.id, with no key. This server wraps those feeds for AI assistants.
How do I get BMKG weather forecasts by village in Claude or Cursor?
Add this server (npx -y mcp-bmkg) and ask for the forecast with the village's Kemendagri adm4 code, for example "prakiraan cuaca 31.71.03.1001 besok".
Do I need to credit BMKG when I use its data? Yes. BMKG's open data pages require users to show BMKG as the data source in their app or system. Every answer from this server includes "Sumber: BMKG".
How often is BMKG data updated? Earthquake feeds update on every event; village forecasts are produced twice a day in 3-hour steps for 3 days. This server caches each URL for 60 seconds.
Does gempa_terbaru only show M 5.0+ earthquakes?
Not always. It mirrors BMKG's "Gempabumi Terbaru" feed, which can show a smaller quake when it was felt. Use gempa_m5 for the M 5.0+ list.
Development
node --test test/
The tests spawn the server over stdio against a local mock of the BMKG endpoints serving recorded fixtures: no internet needed. They cover every tool plus timeouts, rate limits, bad codes, invalid JSON and caching.
Bahasa Indonesia
Server MCP untuk data gempabumi dan prakiraan cuaca per kelurahan/desa dari data terbuka BMKG. Tanpa API key, cukup Node.js 18+. Contoh: "Ada gempa kuat hari ini? Lalu bagaimana cuaca di Kemayoran (31.71.03.1001) besok siang?"
Tools
gempa_terbaru: gempa terbaru versi BMKG (waktu WIB/UTC, magnitudo, kedalaman, koordinat, wilayah, potensi tsunami, wilayah yang merasakan, link peta guncangan). Biasanya M 5.0+, tetapi BMKG juga memakai feed ini untuk gempa lebih kecil yang dirasakan.gempa_dirasakan: 15 gempa terakhir yang dirasakan, dengan skala MMI. Opsilimit,min_magnitude.gempa_m5: 15 gempa terakhir M 5.0+, dengan potensi tsunami. Opsilimit,min_magnitude.prakiraan_cuaca: prakiraan per 3 jam hingga 3 hari untuk satu kelurahan/desa. Wajibadm4, opsidays(1-3).
Pasang: tambahkan npx -y mcp-bmkg ke aplikasi Anda (contoh konfigurasi Claude Desktop, Claude Code, Cursor, OpenCode ada di atas). Di Windows gunakan cmd /c npx -y mcp-bmkg bila npx tidak bisa dijalankan langsung.
Kode adm4: kode wilayah Kemendagri tingkat IV (kelurahan/desa), format 00.00.00.0000, contoh 31.71.03.1001 (Kemayoran). BMKG merujuk Kepmendagri Nomor 100.1.1-6117 Tahun 2022. Server ini tidak menyertakan daftar kode (lebih dari 80.000 desa). Cara termudah: pasang juga mcp-wilayah-indonesia (npx -y mcp-wilayah-indonesia, offline); alat cari_wilayah mencari desa dari namanya dan memberi bmkg_adm4. Atau cari di lampiran keputusan Kemendagri atau dataset komunitas yang menyalinnya (periksa lisensinya). Kode BPS berbeda, jangan dicampur.
Sumber dan ketentuan: semua data diambil langsung dari BMKG (data.bmkg.go.id dan api.bmkg.go.id). BMKG mewajibkan pengguna mencantumkan BMKG sebagai sumber data dan menampilkannya di aplikasi, dengan batas akses 60 permintaan per menit per IP. Karena itu setiap jawaban berakhir dengan "Sumber: BMKG" beserta waktu pengambilan (WIB), dan jawaban di-cache 60 detik. Proyek ini independen dan tidak berafiliasi dengan BMKG. Field tp pada prakiraan tidak dijelaskan oleh BMKG; kami menampilkannya sebagai precipitation_mm (belum terverifikasi).
Batasan: hanya membaca data, tidak menyimpan file, tanpa key. Timeout 10 detik, cache 60 detik. Untuk keadaan darurat, ikuti kanal BMKG dan pemerintah daerah setempat.
Made by Ezkielyna, an independent AI API gateway for Indonesian developers (QRIS): ezkielyna.store.
License
MIT for the code. Data belongs to BMKG and is fetched at runtime under BMKG's open data terms (credit "BMKG" as the source).
Part of the Ezkielyna developer toolkit
Open-source tools from Ezkielyna, an independent OpenAI- and Anthropic-compatible AI API gateway (pay with QRIS, USDT or Binance Pay; no credit card).
| No API key needed | With an Ezkielyna key |
|---|---|
| mcp-bmkg · mcp-wilayah-indonesia · mcp-hari-libur-indonesia · mcp-rupiah · mcp-qris · ai-model-status-mcp | ezkielyna-mcp · ezkielyna-image-mcp · ezkielyna-audio-mcp · n8n-nodes-ezkielyna |
More: all repositories · awesome-mcp-indonesia · awesome-ai-indonesia
Frequently asked questions
What is BMKG Gempa & Cuaca MCP Server?
Indonesian earthquakes and village weather forecasts from BMKG open data. No API key.
How do I install BMKG Gempa & Cuaca MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. BMKG Gempa & Cuaca MCP Server runs locally from the npm package mcp-bmkg with the command npx -y mcp-bmkg@1.0.0.
Is BMKG Gempa & Cuaca MCP Server free and open source?
Yes. BMKG Gempa & Cuaca MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does BMKG Gempa & Cuaca MCP Server support remote (HTTP) connections?
No remote endpoint is listed for BMKG Gempa & Cuaca MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does BMKG Gempa & Cuaca MCP Server provide?
BMKG Gempa & Cuaca MCP Server provides 4 tools: gempa_dirasakan, gempa_m5, gempa_terbaru, and prakiraan_cuaca. See the full tool list for descriptions and parameters.
How is BMKG Gempa & Cuaca MCP Server's trust score calculated?
BMKG Gempa & Cuaca MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.