AEMET

v0.1.1
io.github.mmillan76/aemet-mcp Checked 3 days ago Published 4 months ago

MCP server exposing AEMET (Spanish weather agency) forecasts, station data and warnings.

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

get_municipality_forecast Get municipality forecast

Get the daily weather forecast (up to 7 days) for a Spanish municipality from AEMET (Spanish State Meteorological Agency), identified by its INE code.

ParameterTypeDescription
municipioCode *stringINE municipality code (5 digits), e.g. 28079 for Madrid. Look it up at https://www.ine.es/daco/daco42/codmun/codmunmapa.htm

get_station_observation Get station observation

Get the last ~12 hours of hourly conventional observation data (temperature, wind, precipitation, etc.) for a specific AEMET automatic weather station.

ParameterTypeDescription
idema *stringAEMET automatic weather station indicator (idema), e.g. 3195 for Madrid-Retiro. Find station codes in the AEMET station catalogue.

get_weather_warnings Get weather warnings

Get the latest active weather warnings (CAP alerts) issued by AEMET for a Spanish region or the whole country: severity level, phenomenon, affected zone and validity.

ParameterTypeDescription
area *stringAEMET area code: 'esp' for all of Spain, or a 2-digit CCAA code (e.g. 61 for Andalucía). Warnings are returned as CAP (Common Alerting Protocol) alerts converted to JSON.