Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

BMKG Gempa & Cuaca

by EzkielynaGroupversion 1.0.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.EzkielynaGroup/mcp-bmkg

How to install

What it does

Indonesian earthquakes and village weather forecasts from BMKG open data. No API key.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install BMKG Gempa & Cuaca. Follow https://mcp.popnx.com/i/ezkielynagroup-mcp-bmkg.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server BMKG Gempa & Cuaca for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "bmkg": { "command": "npx", "args": [ "-y", "mcp-bmkg" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the BMKG Gempa & Cuaca tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "bmkg": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-bmkg"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use BMKG Gempa & Cuaca and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using BMKG Gempa & Cuaca or shows a BMKG Gempa & Cuaca tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_BMKG_TIMEOUT_MS Timeout per BMKG request in ms (default 10000)
  • MCP_BMKG_CACHE_MS Cache lifetime per URL in ms (default 60000)
  • MCP_BMKG_BASE_URL Override base URL for both BMKG hosts (tests or mirrors)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect BMKG Gempa & Cuaca yet

BMKG Gempa & Cuaca runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect BMKG Gempa & Cuaca

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server BMKG Gempa & Cuaca for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user bmkg -- npx -y mcp-bmkg 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the BMKG Gempa & Cuaca tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user bmkg -- npx -y mcp-bmkg
  4. Type /mcp in Claude Code

    You should see BMKG Gempa & Cuaca listed as connected

  5. Try it

    Use BMKG Gempa & Cuaca and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using BMKG Gempa & Cuaca or shows a BMKG Gempa & Cuaca tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_BMKG_TIMEOUT_MS Timeout per BMKG request in ms (default 10000)
  • MCP_BMKG_CACHE_MS Cache lifetime per URL in ms (default 60000)
  • MCP_BMKG_BASE_URL Override base URL for both BMKG hosts (tests or mirrors)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server BMKG Gempa & Cuaca for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "bmkg": { "command": "npx", "args": [ "-y", "mcp-bmkg" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the BMKG Gempa & Cuaca tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use BMKG Gempa & Cuaca and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using BMKG Gempa & Cuaca or shows a BMKG Gempa & Cuaca tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_BMKG_TIMEOUT_MS Timeout per BMKG request in ms (default 10000)
  • MCP_BMKG_CACHE_MS Cache lifetime per URL in ms (default 60000)
  • MCP_BMKG_BASE_URL Override base URL for both BMKG hosts (tests or mirrors)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server BMKG Gempa & Cuaca for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "bmkg": { "type": "stdio", "command": "npx", "args": [ "-y", "mcp-bmkg" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the BMKG Gempa & Cuaca tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use BMKG Gempa & Cuaca and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using BMKG Gempa & Cuaca or shows a BMKG Gempa & Cuaca tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • MCP_BMKG_TIMEOUT_MS Timeout per BMKG request in ms (default 10000)
  • MCP_BMKG_CACHE_MS Cache lifetime per URL in ms (default 60000)
  • MCP_BMKG_BASE_URL Override base URL for both BMKG hosts (tests or mirrors)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use BMKG Gempa & Cuaca💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user bmkg -- npx -y mcp-bmkg

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "bmkg": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-bmkg"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "bmkg": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-bmkg"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "bmkg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-bmkg"
      ]
    }
  }
}

Values you fill in

  • MCP_BMKG_TIMEOUT_MS env
    Timeout per BMKG request in ms (default 10000)
  • MCP_BMKG_CACHE_MS env
    Cache lifetime per URL in ms (default 60000)
  • MCP_BMKG_BASE_URL env
    Override base URL for both BMKG hosts (tests or mirrors)

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
1.0.0
Published to registryi
Nov 12, 2026
Code last changedi
Nov 12, 2026
Maker
EzkielynaGroup
Packages
npm: mcp-bmkg
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 20, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account EzkielynaGroup, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 8 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for mcp-bmkg@1.0.0

Checks only this package version, not every dependency · checked Nov 16, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/ezkielynagroup-mcp-bmkg.svg)](https://mcp.popnx.com/en/servers/ezkielynagroup-mcp-bmkg)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 0% of the other 1972 servers in this category
  • Published to the registry more recently than 84% of the other 1972 servers in this category
  • Basic checks equal to or better than 99% of the other 1972 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is BMKG Gempa & Cuaca safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 8 days ago, and the latest version (1.0.0) reached the registry 8 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 10 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 38Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
BMKG Gempa & Cuaca
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseMITNOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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

ToolWhat it returnsInput
gempa_terbaruThe 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_dirasakanThe 15 most recent felt earthquakes, with MMI intensity per area.limit (1-15), min_magnitude
gempa_m5The 15 most recent M 5.0+ earthquakes, with tsunami potential.limit (1-15), min_magnitude
prakiraan_cuaca3-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)

VariableDefaultNotes
MCP_BMKG_TIMEOUT_MS10000timeout per request (1000-120000)
MCP_BMKG_CACHE_MS60000cache lifetime per URL; 0 disables the cache
MCP_BMKG_BASE_URLunsetone 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:

  1. Easiest: add the companion server mcp-wilayah-indonesia (npx -y mcp-wilayah-indonesia, offline). Its cari_wilayah tool finds a village by name and returns bmkg_adm4, so you can ask "cuaca besok di Kemayoran" and the assistant chains both servers.
  2. The Kemendagri decision on region codes (the attachment lists every village with its code).
  3. Community datasets on GitHub that republish the Kemendagri list (search "kode wilayah kemendagri"). Check their license and which decision year they follow.
  4. 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:

DataEndpointUpdated (per BMKG)
Latest earthquakehttps://data.bmkg.go.id/DataMKG/TEWS/autogempa.jsonon every event
15 latest M 5.0+https://data.bmkg.go.id/DataMKG/TEWS/gempaterkini.jsonon every event
15 latest felthttps://data.bmkg.go.id/DataMKG/TEWS/gempadirasakan.jsonon every event
Shakemap imagehttps://data.bmkg.go.id/DataMKG/TEWS/ per event
Village forecasthttps://api.bmkg.go.id/publik/prakiraan-cuaca?adm4= 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.
  • adm4 is 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. Opsi limit, min_magnitude.
  • gempa_m5: 15 gempa terakhir M 5.0+, dengan potensi tsunami. Opsi limit, min_magnitude.
  • prakiraan_cuaca: prakiraan per 3 jam hingga 3 hari untuk satu kelurahan/desa. Wajib adm4, opsi days (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

Only the beginning is shown; read the rest in the repo