bmkg-api-mcp

v2.0.0
bmkg-api-mcp Checked 3 days ago Published 1 month ago

MCP Server for BMKG Indonesia - Weather, Earthquake, and Region Data for AI Assistants

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_latest_earthquake Latest earthquake

Get the single most recent earthquake recorded by BMKG in Indonesia. Returns magnitude, depth, coordinates, region, time (UTC), tsunami potential, felt reports and a shakemap image URL. Use this for "was there just an earthquake?"; use get_recent_earthquakes for a list.

get_recent_earthquakes Recent strong earthquakes (M 5.0+)

List the 15 most recent earthquakes of magnitude 5.0 or higher in Indonesia. Newest first. Smaller earthquakes are not included: use get_felt_earthquakes for those that people reported feeling.

get_felt_earthquakes Recently felt earthquakes

List the 15 most recent earthquakes that people in Indonesia reported feeling. Includes small earthquakes and, in `felt_report`, the places and intensity (MMI) where each was felt.

get_nearby_earthquakes Earthquakes near a point

Find recent earthquakes within a radius of a coordinate, nearest first. Searches BMKG's recent and felt lists only, so an empty result means "none among the latest recorded", not "none ever". Each result includes `distance_km`.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees, e.g. -6.2088 for Jakarta
longitude *numberLongitude in decimal degrees, e.g. 106.8456 for Jakarta
radius_kmintegerSearch radius in kilometers

get_weather_forecast 3-day weather forecast

Get the 3-day weather forecast for one village (kelurahan/desa) in Indonesia. Returns entries every 3 hours with temperature (°C), humidity (%), weather condition in Indonesian and English, wind and cloud cover, grouped by day. Each entry has both `local_datetime` and `utc_datetime`. Use get_current_weather if only the present conditions are needed.

ParameterTypeDescription
adm4_code *stringVillage-level (adm4) region code, e.g. '31.74.04.1006'. Find it with search_regions.

get_current_weather Current weather

Get the weather right now for one village (kelurahan/desa) in Indonesia. Returns the forecast entry closest to the current time: temperature (°C), humidity (%), weather condition, wind and cloud cover. This is BMKG's forecast for the current 3-hour slot, not a live station reading.

ParameterTypeDescription
adm4_code *stringVillage-level (adm4) region code, e.g. '31.74.04.1006'. Find it with search_regions.

get_weather_warnings Active weather warnings

List BMKG's currently active severe weather warnings (nowcast), one per province. Each item has the province, a description of the hazard, the affected areas and the time it was issued. An empty list means no province has an active warning. Use check_location_warnings to ask about one place.

ParameterTypeDescription
languagestringLanguage of the warning text: Indonesian or English

check_location_warnings Weather warnings for a place

Check whether any active severe weather warning mentions a place. Matches the name against the text of every active warning, so spelling matters: prefer the Indonesian place name. `has_warnings` is false when no active warning mentions it, which is not a forecast of good weather.

ParameterTypeDescription
location *stringName of a kecamatan, city or regency as BMKG writes it, e.g. 'Wiradesa' or 'Jakarta Selatan'
languagestringLanguage of the warning text: Indonesian or English

search_regions Search regions by name

Search Indonesian administrative regions by name, at every level. Returns the code, level (province, district, subdistrict or village) and full path of each match. Weather tools need a village-level code (four parts, like 31.74.04.1006): if a match is a higher level, list its villages with get_villages.

ParameterTypeDescription
query *stringPart of a region name, e.g. 'tebet' or 'pekalongan'
limitintegerMaximum number of results

get_provinces List provinces

List the provinces of Indonesia with their 2-digit codes. Starting point for browsing down to a village. The list follows Permendagri 72/2019 (34 provinces), so the provinces created in Papua after 2022 are not listed.

get_districts List districts in a province

List the districts (kabupaten and kota) of one province.

ParameterTypeDescription
province_code *string2-digit province code, e.g. '31' for DKI Jakarta

get_subdistricts List subdistricts in a district

List the subdistricts (kecamatan) of one district.

ParameterTypeDescription
district_code *stringDistrict code, e.g. '31.74' for Jakarta Selatan

get_villages List villages in a subdistrict

List the villages (kelurahan and desa) of one subdistrict. Each village code is an adm4 code that the weather tools accept.

ParameterTypeDescription
subdistrict_code *stringSubdistrict code, e.g. '31.74.04' for Pasar Minggu