cwa-mcp-server

v0.1.1
io.github.gary2376/cwa-mcp-server Checked 3 days ago Published 3 months ago

MCP server for Taiwan CWA open data: weather forecast, earthquake, warnings, typhoon.

Values you need

VariableWhat it is
CWA_API_KEYrequired secret CWA 開放資料平台 API 授權碼,至 https://opendata.cwa.gov.tw 免費申請

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

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

For AI agents

  1. Ask the user for: CWA_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_weather_forecast, get_earthquake_report, get_weather_warning, get_typhoon_warning.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json