cwa-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cwa-mcp-serverwhat's the weather forecast for Taipei?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cwa-mcp-server
MCP server that wraps the Central Weather Administration (CWA) open data API, allowing agents to query weather forecasts, earthquake reports, weather warnings, and typhoon alerts, and generate evacuation advisories.
Features
Tool
get_weather_forcast(county)— 36-hour weather forecast for a county/cityTool
get_earthquake_report(limit)— The most recent N noticeable earthquake reportsTool
get_weather_warning(county)— Currently active weather warnings for a county/city (heavy rain, strong winds, etc.)Tool
get_typhoon_warning(limit)— The most recent N typhoon alertsResource
cwa://counties— List of valid county/city namesPrompt
evacuation_advisory(county)— Prompt template that generates an evacuation plan based on real-time weather/warning/earthquake/typhoon data
Related MCP server: mcp-cwa
Get an API Key
Register an account on the Meteorological Data Open Platform (email + password is enough, no approval needed)
After logging in, click "API Authorization Code" → "Get Authorization Code" to generate your key immediately
Installation (General Users)
Already published to PyPI; no need to clone this repo. In the MCP configuration of Claude Desktop / Claude Code, just specify uvx to run, and it will automatically fetch the package:
{
"mcpServers": {
"cwa-weather": {
"command": "uvx",
"args": ["cwa-mcp-server"],
"env": { "CWA_API_KEY": "你申請到的授權碼" }
}
}
}Or use the Claude Code CLI:
claude mcp add cwa-weather -e CWA_API_KEY=你申請到的授權碼 -- uvx cwa-mcp-serverDevelopment (Modifying This Repo's Source Code)
git clone https://github.com/gary2376/cwa-mcp-server
cd cwa-mcp-server
uv sync
cp .env.example .env # 填入 CWA_API_KEY
uv run python tests/test_client.py # 最小自我檢查(不打真網路)
uv run mcp dev src/cwa_mcp/server.py # 本地用 inspector 手動測試 toolsStatus
All four tools (weather forecast, earthquake report, weather warning, typhoon warning) have been validated against the live API with a real key, and have also been connected to Claude Code for real conversation-flow testing, correctly determining risk levels and providing specific recommendations. Published to PyPI and the MCP Server Registry.
Known pitfall fixed: The wheel originally uploaded in v0.1.0 was an empty shell package because uv_build defaults to guessing the module name from project.name (which becomes cwa_mcp_server), and that didn't match the actual source directory src/cwa_mcp/. This caused uvx cwa-mcp-server to fail with ModuleNotFoundError. This has been fixed by adding [tool.uv.build-backend] module-name = "cwa_mcp" to pyproject.toml and rebuilding to verify the wheel contents are correct.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to Hong Kong Observatory weather data APIs, enabling retrieval of forecasts, earthquake info, tide data, and more via natural language.202MIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Taiwan's Central Weather Administration (CWA) Open Data API, offering 36 tools across 7 categories including weather forecasts, observations, earthquakes, and astronomy.MIT
- AlicenseAqualityDmaintenanceEnables to access Taiwan Central Weather Administration data, including 3-day and 1-week weather forecasts for counties/cities and historical rainfall data.3MIT
- AlicenseNot gradedqualityCmaintenanceProvides weather reports for Zhongshan District, Taipei, Taiwan and other Taiwanese cities using the Open-Meteo API, enabling AI assistants to answer weather queries in natural language.MIT
Related MCP Connectors
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
FEMA disasters, NOAA weather alerts, USGS earthquakes. 4 tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gary2376/cwa-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server