mcp-gempa-bmkg
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-gempa-bmkg Tolong cek gempa terbaru BMKG dan potensi tsunaminya."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-gempa-bmkg
Contoh MCP server sederhana dengan Python. Server ini mengambil info gempa dari data terbuka BMKG, lalu bisa dipakai di Claude Desktop dan Antigravity.
Repo ini pendamping video "Bikin MCP Server Sendiri dari Nol" di kanal Tips Unix.
⚠️ Hanya untuk belajar, bukan sistem peringatan dini resmi. Untuk info gempa dan tsunami resmi, pakai kanal resmi BMKG, misalnya aplikasi InfoBMKG atau https://www.bmkg.go.id.
Isi server
Jenis | Nama | Fungsi |
Tool |
| Gempa terbaru (satu kejadian), lengkap dengan keterangan potensi tsunami dari BMKG |
Tool |
| Daftar gempa yang dirasakan warga (maks. 15 terbaru), bisa difilter |
Resource |
| Keterangan sumber data |
Prompt |
| Template ringkasan gempa yang tenang untuk grup keluarga |
Semuanya ada di satu file, server.py, dan memakai SDK resmi mcp versi 2 (MCPServer).
Related MCP server: TMD Earthquake MCP Server
Syarat
Python 3.11 atau lebih baru
Node.js, hanya untuk MCP Inspector (
mcp dev)
Install
git clone https://github.com/<akun-kamu>/mcp-gempa-bmkg.git
cd mcp-gempa-bmkg
uv syncKalau mau membangun dari nol seperti di video:
uv init mcp-gempa-bmkg
cd mcp-gempa-bmkg
uv add "mcp[cli]" httpxLalu buat server.py. httpx harus ditambahkan sendiri karena tidak ikut terpasang bersama mcp versi 2.
Catatan:
uv initversi baru juga membuat foldersrc/. Folder itu tidak dipakai di proyek ini dan boleh dihapus.
Uji dengan MCP Inspector
uv run mcp dev server.pyInspector terbuka di browser. Klik Connect, lalu coba tab Tools, Resources, dan Prompts.
Sambungkan ke aplikasi AI
Ketiga aplikasi memakai entri yang sama. Ganti /PATH/LENGKAP/mcp-gempa-bmkg dengan path lengkap folder proyek. Di Windows, tulis path dengan \\, misalnya C:\\Users\\kamu\\mcp-gempa-bmkg.
{
"mcpServers": {
"gempa-bmkg": {
"command": "uv",
"args": ["--directory", "/PATH/LENGKAP/mcp-gempa-bmkg", "run", "server.py"]
}
}
}Claude Desktop
Buka Settings → Developer → Edit Config. File config ada di:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Tambahkan entri di atas, simpan, lalu keluar penuh dari Claude Desktop dan buka lagi.
Antigravity CLI (agy) dan aplikasi Antigravity
Keduanya memakai file config global yang sama: ~/.gemini/config/mcp_config.json.
Dari aplikasi Antigravity: menu … di panel agent → MCP Servers → Manage MCP Servers → View raw config.
Dari Antigravity CLI: edit file di atas, jalankan ulang
agy, lalu ketik/mcpuntuk melihat status server.
Gemini CLI
Gemini CLI tidak lagi melayani akun Google gratis sejak 18 Juni 2026 (penggantinya Antigravity CLI). Kalau kamu masih memakainya dengan API key atau lisensi enterprise, tambahkan entri yang sama di ~/.gemini/settings.json.
3 kesalahan paling umum
Memakai
print(). Lewat stdio, stdout khusus untuk pesan JSON-RPC, jadiprint()biasa bisa memutus koneksi. Pakailogging, yang menulis ke stderr, atauprint(..., file=sys.stderr).Path relatif di config. Aplikasi AI tidak tahu folder proyekmu. Tulis path lengkap ke folder proyek. Kalau
uvtidak ditemukan, tulis juga path lengkap keuv(cek denganwhich uvdi macOS/Linux atauwhere uvdi Windows).Lupa restart. Setelah config diubah, keluar penuh dari aplikasinya (bukan sekadar menutup jendela), lalu buka lagi.
Sumber data
Data gempa: BMKG (Badan Meteorologi, Klimatologi, dan Geofisika), https://data.bmkg.go.id. Sesuai ketentuan BMKG, cantumkan BMKG sebagai sumber data dan tampilkan di aplikasi atau sistemmu.
Lisensi
MIT "# MCP-SERVER"
Available Tools
2 toolsgempa_dirasakanB
Daftar gempa yang dirasakan warga (maks. 15 terbaru), bisa difilter magnitudo minimum.
Inputs: min_magnitudo. Returns: result
gempa_terkiniB
Gempa terbaru (satu kejadian) di Indonesia, dari data BMKG.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have mostly distinct purposes: one returns the single latest earthquake event, while the other returns a list of felt earthquakes with an optional magnitude filter. There is some conceptual overlap because both expose recent earthquake data, but the descriptions make the boundary reasonably clear.
Both names follow a consistent Indonesian snake_case pattern using the common prefix gempa_ followed by a descriptive qualifier. The convention is predictable and readable.
Two tools is thin for an earthquake information server; it covers only the latest event and a short felt-earthquake list. While each tool earns its place, the surface feels under-scoped rather than comfortably complete.
The server covers two common recent-earthquake use cases but lacks obvious operations such as fetching earthquake details by event ID, searching historical events, filtering by region/date, or accessing tsunami-related information. These are notable gaps for an agent needing broader BMKG earthquake data.
Related MCP Connectors
Live USGS earthquake data: latest quakes, quakes near a US place, and was that an earthquake?
Recent earthquakes worldwide or near a place, from USGS. Free, no key.
Real-time earthquake events from the US Geological Survey
Search USGS and EMSC seismic data — real-time feeds, event queries, and earthquake counts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides access to the USGS Earthquake Catalog for querying earthquake events via the FDSNWS API, enabling natural language questions about earthquake data.318 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides access to earthquake data from the Thai Meteorological Department (TMD) API. Enables querying recent earthquakes, filtering by location and magnitude, and obtaining statistics.1-
- AlicenseNot gradedqualityDmaintenanceEnables fetching latest earthquake data from Kandilli Observatory, searching earthquakes by region, and obtaining regional statistics through MCP tools.MIT
- FlicenseNot gradedqualityCmaintenanceEnables users to explore live earthquake data from USGS, with an interactive widget for filtering and visualizing seismic events worldwide.-