io.github.jocarrd/aemet-mcp
MCP server for AEMET: Spain's official forecasts, warnings, observations and climate data.
Install
Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).
aemet-mcpclaude mcp add aemet-mcp -e 'AEMET_API_KEY=<your aemet_api_key>' -- npx -y aemet-mcp@0.3.3
{
"mcpServers": {
"aemet-mcp": {
"command": "npx",
"args": [
"-y",
"aemet-mcp@0.3.3"
],
"env": {
"AEMET_API_KEY": "<your aemet_api_key>"
}
}
}
}
Environment variables
AEMET_API_KEYrequired secret AEMET OpenData API key. Free at https://opendata.aemet.es/centrodedescargas/altaUsuario
Documentation
From the project's README on GitHub, refreshed weekly. Links open on GitHub.
aemet-client monorepo
Tools for working with AEMET OpenData, the public API of Spain's State Meteorological Agency.
| Package | Description | npm |
|---|---|---|
aemet-client | Typed TypeScript SDK + CLI for AEMET OpenData. Used in production at snowy.es. | |
aemet-mcp | Model Context Protocol server: plug AEMET into Claude Desktop, Cursor, Windsurf or any MCP client. Forecasts, warnings, live observations, climate history and beach forecasts. Runs locally over stdio. |
Quick links
- Just want to use AEMET from code? →
packages/aemet-client/README.md - Want your LLM to answer Spanish weather questions? →
packages/aemet-mcp/README.md - Spanish docs →
packages/aemet-client/README.es.md
Develop
Requires Node.js ≥ 20.18 and pnpm ≥ 10.
pnpm install
pnpm -r build
pnpm -r test
pnpm -r typecheck
pnpm lint
To work on a single package:
pnpm --filter aemet-client test
pnpm --filter aemet-mcp dev
The E2E suite (pnpm --filter aemet-client test:e2e) hits the real AEMET
API and is skipped unless AEMET_API_KEY is set. CI runs it behind a
repository secret.
Release
aemet-clientis released by pushing a tagv<x.y.z>oraemet-client-v<x.y.z>. The release workflow checks the tag matchespackages/aemet-client/package.jsonbefore publishing to npm via Trusted Publishing (OIDC, no token).aemet-mcpis released by pushing a tagaemet-mcp-v<x.y.z>using the same Trusted Publishing setup.pnpm publishrewrites theworkspace:^dependency onaemet-clientto a real semver range.
See CONTRIBUTING.md for development guidelines.
License
MIT © Jorge Carrera
Frequently asked questions
What is io.github.jocarrd/aemet-mcp?
MCP server for AEMET: Spain's official forecasts, warnings, observations and climate data.
How do I install io.github.jocarrd/aemet-mcp?
It runs on your machine. In Claude Code: claude mcp add aemet-mcp -e 'AEMET_API_KEY=<your aemet_api_key>' -- npx -y aemet-mcp@0.3.3. For other clients, paste the JSON configuration from this page into their MCP settings.
Does io.github.jocarrd/aemet-mcp need an API key?
Yes. It expects AEMET_API_KEY, which you set in its configuration.
Is io.github.jocarrd/aemet-mcp open source?
Yes. Its code is on GitHub under the MIT license.
Who maintains io.github.jocarrd/aemet-mcp?
It is published by jocarrd. AI.tn lists it but does not maintain or endorse it.
From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.