cwa-mcp-server
v0.1.1MCP server for Taiwan CWA open data: weather forecast, earthquake, warnings, typhoon.
Values you need
| Variable | What it is | |
|---|---|---|
CWA_API_KEY | required 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.1Add 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
- Ask the user for: CWA_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_weather_forecast, get_earthquake_report, get_weather_warning, get_typhoon_warning.
- 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