cwa-mcp-server
CWA MCP Server is a lightweight and simple Node.js-based MCP server that connects Claude Desktop to the Central Weather Administration (CWA) API of Taiwan. It allows users to access weather forecast data for cities and counties in Taiwan, with easy installation and Docker support.
CWA MCP Server
A simple Model Context Protocol (MCP) server that connects Claude Desktop to the Central Weather Administration (CWA) API in Taiwan to fetch weather data.
Features
- Simple and lightweight Node.js implementation
- Easy to configure and use with Claude Desktop
- Access weather forecast data for all cities and counties in Taiwan
Quick Start
- Obtain CWA API key from https://opendata.cwa.gov.tw/user/authkey
- Make the install script executable
- Run the install script
- Edit the configuration file located at
~/.config/claude/claude_desktop_config.json
to include your API key - Restart Claude Desktop
- Use CWA weather data during conversations with Claude
Available Tools
get_weather_forecast
Get a weather forecast for the next 36 hours by city.
Using Docker
You can also run this MCP server using Docker. Create a docker-compose.yml
file and replace the API key with your actual CWA API key, then start the Docker container.
Supported Regions
Supports the following counties and cities in Taiwan: Yilan County, Hualien County, Taitung County, Penghu County, Kinmen County, Lienchiang County, Taipei City, New Taipei City, Taoyuan City, Taichung City, Tainan City, Kaohsiung City, Keelung City, Hsinchu County, Hsinchu City, Miaoli County, Changhua County, Nantou County, Yunlin County, Chiayi County, Chiayi City, Pingtung County.
Troubleshooting
- Ensure Node.js 18 or higher is installed
- Verify your CWA API key is valid and correctly set in the configuration file
- Use
./test.sh
to test the server and check it is running correctly - Ensure Claude Desktop is configured correctly and restarted after any changes