aemet-mcp

v0.3.3
io.github.jocarrd/aemet-mcp Checked 1 day ago Published 1 month ago

MCP server for AEMET: Spain's official forecasts, warnings, observations and climate data.

Values you need

VariableWhat it is
AEMET_API_KEYrequired secret AEMET OpenData API key. Free at https://opendata.aemet.es/centrodedescargas/altaUsuario

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add aemet-mcp -e 'AEMET_API_KEY=<AEMET_API_KEY>' -- npx -y aemet-mcp@0.3.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "aemet-mcp": {
      "args": [
        "-y",
        "aemet-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "AEMET_API_KEY": "<AEMET_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "aemet-mcp": {
      "args": [
        "-y",
        "aemet-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "AEMET_API_KEY": "<AEMET_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AEMET_API_KEY",
      "id": "aemet-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "aemet-mcp": {
      "args": [
        "-y",
        "aemet-mcp@0.3.3"
      ],
      "command": "npx",
      "env": {
        "AEMET_API_KEY": "${input:aemet-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.aemet-mcp]
command = "npx"
args = ["-y", "aemet-mcp@0.3.3"]
env = { "AEMET_API_KEY" = "<AEMET_API_KEY>" }

For AI agents

  1. Ask the user for: AEMET_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_forecast, get_warnings, get_nearest_observation, get_climate_history, get_beach_forecast, get_mountain_forecast, get_maritime_forecast, get_air_quality.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json