AEMET MCP server
MCP server exposing AEMET (Spanish weather agency) forecasts, station data and warnings.
0 stars22 downloads/wk
Reviews
Write oneNobody has reviewed AEMET yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
AEMET tools (3)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_municipality_forecastGet the daily weather forecast (up to 7 days) for a Spanish municipality
get_station_observationGet the last ~12 hours of hourly conventional observation data (temperature,
get_weather_warningsGet the latest active weather warnings (CAP alerts) issued by AEMET for a Spanish
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan6 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 61 days ago12/15
- Maintainer identityregistry namespace matches repository owner6/10
What the publisher says
From the AEMET repository's README, as published. We do not edit it. Read it on GitHub
aemet-mcp
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:
Spanish municipality, by INE code.
- getmunicipalityforecast — daily forecast (up to 7 days) for a
(temperature, wind, precipitation…) from a weather station.
- getstationobservation — last ~12h of hourly observation data
region or all of Spain.
- getweatherwarnings — active weather warnings (CAP alerts) for a
Prerequisites
https://opendata.aemet.es/centrodedescargas/altaUsuario
- Node.js 20+
- A free AEMET OpenData API key: request one at
Installation
No install needed — run it directly with npx:
npx -y @mmillan76/aemet-mcpThe server communicates over stdio, so it's meant to be launched by an MCP client rather than run standalone in a terminal.
Configuration
The server reads the API key from the AEMETAPIKEY environment variable. It exits with an error at startup if it's missing.
Claude Desktop / Claude Code
Add to your MCP client config (e.g. claudedesktopconfig.json):
{
"mcpServers": {
"aemet": {
"command": "npx",
"args": ["-y", "@mmillan76/aemet-mcp"],
"env": {
"AEMET_API_KEY": "your-api-key-here"
}
}
}
}Any other MCP client that supports stdio servers works the same way — point it at npx -y @mmillan76/aemet-mcp with AEMETAPIKEY set in the environment.
Local development
git clone https://github.com/mmillan76/aemet-mcp.git
cd aemet-mcp
npm install
cp .env.example .env # fill in AEMET_API_KEY
npm run buildTest tool calls interactively with the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js(the Inspector reads AEMETAPIKEY from your shell environment, so export it — or source .env — before running the command above)
Notes on the AEMET API
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.
License
MIT — see LICENSE.
Nothing above is checked by us. What we check is on the safety report.
Install directly
Runs npx -y @mmillan76/aemet-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add aemet-mcp -- npx -y @mmillan76/aemet-mcp
AEMET: common questions
- Is AEMET MCP server safe?
- Mostly: it is graded B (75/100). Read the AEMET safety report
- How do I install AEMET?
- It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
- Does AEMET need an API key?
- Yes. The registry entry asks for
AEMET_API_KEY. - Is AEMET maintained?
- The last commit was 61 days ago (2026-07-26). The latest release is v0.1.1.
- What can I use instead of AEMET?
- Servers from other publishers that do the same job: Jma MCP server, Cwa MCP server and Weather Data MCP Server. Compare all AEMET alternatives.
Alternatives to AEMET
Same job from other publishers: the closest match first, then the best rated.
JmaJMA (Japan Meteorological Agency) MCP — keyless weather forecasts, warnings,not reviewedGrowingB- CwaMCP server for Taiwan CWA open data: weather forecast, earthquake, warnings, typhoon.not reviewedNewB
- Weather Data MCP Server17 weather tools, no API keys: forecasts, alerts, air quality, marine, radar, lightning, wildfiresnot reviewedEstablishedA
- Noaa SpaceweatherNOAA SWPC space weather: storm scales, Kp index, aurora forecasts, solar wind, activity, alerts.not reviewedGrowingA
- Smarter WeatherSmarter Weather MCP: forecasts, alerts, outlooks, observations, AQI, grids, and map imagery.not reviewedGrowingA