CWA MCP Server logo

CWA MCP Server

by lincw

A simple Model Context Protocol (MCP) server that connects Claude Desktop to the Taiwan Central Weather Administration (CWA) API to fetch weather data. It allows users to access Taiwan's weather forecast information directly within Claude.

View on GitHub

Last updated: N/A

What is CWA MCP Server?

This is a Node.js server implementing the Model Context Protocol (MCP) to provide Claude Desktop with access to weather forecast data from the Taiwan Central Weather Administration (CWA) API.

How to use CWA MCP Server?

  1. Obtain a CWA API key. 2. Make the install script executable and run it. 3. Configure Claude Desktop with the server details and your CWA API key. 4. Restart Claude Desktop. 5. Use the get_weather_forecast tool in your conversations with Claude.

Key features of CWA MCP Server

  • Lightweight Node.js implementation

  • Easy setup and integration with Claude Desktop

  • Access to CWA weather forecast data for all cities and counties in Taiwan

  • Docker support for easy deployment

Use cases of CWA MCP Server

  • Asking Claude about the weather in a specific city in Taiwan

  • Integrating real-time weather data into Claude's responses

  • Building weather-aware applications with Claude

  • Getting weather forecasts for planning purposes

FAQ from CWA MCP Server

How do I get a CWA API key?

Visit https://opendata.cwa.gov.tw/user/authkey, log in (or register), and click '取得授權碼' to obtain your API key.

What Node.js version is required?

Node.js version 18 or higher is required.

How do I test if the server is working?

Use the ./test.sh script to test the server's functionality.

What if I get an error?

Ensure your CWA API key is valid and correctly configured. Also, check if Node.js is installed correctly and that Claude Desktop is properly configured.

How do I use Docker to run the server?

Create a docker-compose.yml file, replace 你的_CWA_API_金鑰 with your actual API key, update your Claude Desktop configuration, and run docker-compose up -d.