Skip to main content

Taiwan CWA Weather MCP Server - Access Taiwan weather data through Model Context Protocol

Project description

Taiwan CWA Weather MCP Server

Access Taiwan Central Weather Administration (CWA) weather data and forecasts through the Model Context Protocol.

Features

  • Get weather forecasts for all Taiwan counties and cities
  • List available locations
  • Support for location aliases
  • Real-time data from Taiwan CWA OpenData API

Tools

get_weather

Get weather forecast data for a specific Taiwan location.

Parameters:

  • given_location (string): The county or city name (supports both Chinese and aliases)

Returns: Weather forecast data including temperature, rainfall probability, weather conditions, and comfort level.

list_available_locations

List all available Taiwan counties/cities and their aliases.

Returns: Complete list of supported locations and their alternative names.

Installation

pip install tw-cwa-weather-mcp

Configuration

You need a Taiwan CWA API key to use this server. Create a file named GOV_api_key.txt in the server directory with your API key.

Get your API key from: https://opendata.cwa.gov.tw/

Usage

Add to your MCP client configuration:

{
  "mcpServers": {
    "taiwan-weather": {
      "command": "python",
      "args": ["-m", "tw_cwa_weather_mcp"]
    }
  }
}

Development

This server uses FastMCP to provide Taiwan weather data through the Model Context Protocol.

License

MIT License

Author

nigue3025

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tw_cwa_weather_mcp-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tw_cwa_weather_mcp-1.0.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file tw_cwa_weather_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: tw_cwa_weather_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for tw_cwa_weather_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b877a27ca9469909e88ada2d7a05837916736f71a5f43effd0b7733222789d63
MD5 f41beddb5783dc567fbe07e28b3f950a
BLAKE2b-256 47a3df8f67add4bdedf367fbc084179b9b441e9045231539a510bab9a9d74e85

See more details on using hashes here.

File details

Details for the file tw_cwa_weather_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tw_cwa_weather_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a57c8c0dbb363540f0956c154c0b42fc40a201af7c935bb886ca3ebdab675f0
MD5 f6cded5ec9de402269a55780c7c00ccc
BLAKE2b-256 b3de30b98030d1fc758ab8183921258a8a49195ca119c56deea30b2d2c90893f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page