io.github.jocarrd/aemet-mcp
MCP server for AEMET: Spain's official forecasts, warnings, observations and climate data.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
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>"
}
}
}
}
Variables d'environnement
AEMET_API_KEYobligatoire secret AEMET OpenData API key. Free at https://opendata.aemet.es/centrodedescargas/altaUsuario
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent 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
Questions fréquentes
Qu'est-ce que io.github.jocarrd/aemet-mcp ?
MCP server for AEMET: Spain's official forecasts, warnings, observations and climate data.
Comment installer io.github.jocarrd/aemet-mcp ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add aemet-mcp -e 'AEMET_API_KEY=<your aemet_api_key>' -- npx -y aemet-mcp@0.3.3. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.jocarrd/aemet-mcp ?
Oui. Il attend AEMET_API_KEY, à renseigner dans sa configuration.
io.github.jocarrd/aemet-mcp est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.jocarrd/aemet-mcp ?
Il est publié par jocarrd. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.