The CWA MCP Server allows Claude Desktop to access Taiwan's weather forecast data through the Model Context Protocol (MCP).
- Primary Function: Retrieve 36-hour weather forecasts for specified Taiwanese counties/cities
- Data Source: Central Weather Administration (CWA) API
- Tool: Uses
get_weather_forecast
to fetch weather data - Location Coverage: Supports all major Taiwanese locations including 宜蘭縣, 花蓮縣, 臺東縣, 澎湖縣, 金門縣, 連江縣, 臺北市, 新北市, 桃園市, 臺中市, 臺南市, 高雄市, 基隆市, 新竹縣, 新竹市, 苗栗縣, 彰化縣, 南投縣, 雲林縣, 嘉義縣, 嘉義市, 屏東縣
- Setup: Requires a CWA API key and can be run locally or via Docker
Allows running the MCP server in a containerized environment with Docker, providing an alternative deployment option with proper isolation and easier environment management.
Enables access to Taiwan Central Weather Administration (CWA) API to retrieve weather forecast data for cities across Taiwan through a lightweight Node.js implementation.
CWA MCP 伺服器
一個簡單的模型內容協定 (Model Context Protocol, MCP) 伺服器,可將 Claude Desktop 連接到台灣中央氣象署 (CWA) API 以獲取氣象資料。
功能特色
- 簡單、輕量的 Node.js 實作
- 容易設定並與 Claude Desktop 配合使用
- 存取所有台灣縣市的 CWA 氣象預報資料
快速開始
- 取得 CWA API 金鑰:
- 前往 https://opendata.cwa.gov.tw/user/authkey
- 登入(若沒有帳號,請先註冊)
- 點擊「取得授權碼」按鈕
- 複製你的 API 金鑰
- 使安裝腳本可執行:
- 執行安裝腳本:
- 編輯位於
~/.config/claude/claude_desktop_config.json
的設定檔,加入你的 CWA API 金鑰: - 重新啟動 Claude Desktop
- 開始在與 Claude 的對話中使用 CWA 氣象資料!
可用工具
get_weather_forecast
透過縣市名稱獲取台灣未來 36 小時的氣象預報。
在 Claude 中的使用範例:
使用 Docker
你也可以使用 Docker 來執行這個 MCP 伺服器:
- 建立
docker-compose.yml
檔案: - 將
你的_CWA_API_金鑰
替換為你實際的 CWA API 金鑰 - 更新你的 Claude Desktop 設定:
- 啟動 Docker 容器:
- 重新啟動 Claude Desktop
可用地區列表
支援以下縣市名稱:
- 宜蘭縣、花蓮縣、臺東縣、澎湖縣、金門縣、連江縣
- 臺北市、新北市、桃園市、臺中市、臺南市、高雄市
- 基隆市、新竹縣、新竹市、苗栗縣、彰化縣、南投縣
- 雲林縣、嘉義縣、嘉義市、屏東縣
故障排除
- 確保已安裝 Node.js 18 或更高版本
- 檢查你的 CWA API 金鑰是否有效並正確設定在設定檔中
- 使用
./test.sh
測試伺服器以確認其正常運作 - 確保 Claude Desktop 已正確設定,並在設定變更後重新啟動
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
A lightweight Node.js server that connects Claude Desktop to Taiwan's Central Weather Administration (CWA) API, allowing users to retrieve weather forecast data for all cities and counties in Taiwan.
Related MCP Servers
- -securityFlicense-qualityThis SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.Last updated -90Python
- -securityFlicense-qualityThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)Last updated -Python
- -security-license-qualityWeather forecast server which returns 7 days of detailed weather anywhere in the world, using the OpenWeatherMap One Call API 3.0.Last updated -2PythonMIT License
- -securityAlicense-qualityAn MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.Last updated -12TypeScriptMIT License