Plugs AEMET OpenData, the public API from Spain's State Meteorological Agency, directly into Claude or any MCP client over stdio. Exposes forecasts, CAP weather warnings, and live station observations from Spain's official weather network. Built on a production TypeScript SDK already running at snowy.es, so the underlying client is battle tested. Requires an AEMET API key. Reach for this when you need Spanish weather data in conversational tools or want to query conditions, alerts, or forecasts for Spanish locations without writing API integration code yourself. The monorepo includes both the MCP server and the standalone client library if you need programmatic access outside the MCP context.
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. Runs locally over stdio. |
packages/aemet-client/README.mdpackages/aemet-mcp/README.mdpackages/aemet-client/README.es.mdRequires 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.
aemet-client is released by pushing a tag v<x.y.z> or
aemet-client-v<x.y.z>. The release workflow checks the tag matches
packages/aemet-client/package.json before publishing to npm via
Trusted Publishing (OIDC, no token).aemet-mcp is released by pushing a tag aemet-mcp-v<x.y.z>
using the same Trusted Publishing setup. pnpm publish rewrites the
workspace:^ dependency on aemet-client to a real semver range.See CONTRIBUTING.md for development guidelines.
MIT © Jorge Carrera
AEMET_API_KEY*secretAEMET OpenData API key. Free at https://opendata.aemet.es/centrodedescargas/altaUsuario