MCP server exposing AEMET (Spanish weather agency) forecasts, station data and warnings.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP server that exposes public weather data from AEMET (Agencia Estatal de MeteorologΓa, Spain) to AI agents and MCP-compatible clients.
Three tools, well-typed, backed by AEMET's official OpenData API:
get_municipality_forecast β daily forecast (up to 7 days) for a
Spanish municipality, by INE code.get_station_observation β last ~12h of hourly observation data
(temperature, wind, precipitationβ¦) from a weather station.get_weather_warnings β active weather warnings (CAP alerts) for a
region or all of Spain.No install needed β run it directly with npx:
The server communicates over stdio, so it's meant to be launched by an MCP client rather than run standalone in a terminal.
The server reads the API key from the AEMET_API_KEY environment variable.
It exits with an error at startup if it's missing.
Add to your MCP client config (e.g. claude_desktop_config.json):
Any other MCP client that supports stdio servers works the same way β point
it at npx -y @mmillan76/aemet-mcp with AEMET_API_KEY set in the environment.
Test tool calls interactively with the MCP Inspector:
(the Inspector reads AEMET_API_KEY from your shell environment, so export
it β or source .env β before running the command above)
AEMET OpenData uses a two-step pattern on every endpoint: the first request
returns a JSON envelope with a datos URL, not the actual data; a second
request to that URL returns the real payload. This server hides that detail
β tools just return the final data. Rate limits apply per API key; if you
hit them, the tool returns a clear error instead of retrying silently.
MIT β see LICENSE.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/aemet)<a href="https://allmcps.com/mcp/aemet"><img src="https://allmcps.com/api/badge/aemet?style=directory" alt="AEMET on AllMCPs" /></a>