台灣中央氣象局 MCP 伺服器
@stephen9412
About 台灣中央氣象局 MCP 伺服器
Taiwan Central Weather Administration (CWA) API MCP Server
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"taiwan-weather": {
"command": "npx",
"args": [
"taiwan-cwa-mcp-server"
],
"env": {
"CWA_API_KEY": "您的API金鑰"
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is 台灣中央氣象局 MCP 伺服器?
這是一個基於 Model Context Protocol (MCP) 的伺服器,對接台灣中央氣象局 (CWA) 開放資料 API,讓使用者透過標準化介面輕鬆取得台灣各縣市的天氣預報與歷史雨量資料。適合需要將台灣即時天氣資訊整合到 AI 助理或自訂工具中的開發者。
How to use 台灣中央氣象局 MCP 伺服器?
在 Claude Desktop 或支援 MCP 的用戶端中,將伺服器設定為 npx 命令並提供中央氣象局 API 金鑰(環境變數 CWA_API_KEY)。之後可透過 get_3_days_weather、get_1_week_weather、get_historical_rainfall 三個工具取得天氣資料,每個工具需傳入有效的台灣縣市名稱。
Key features of 台灣中央氣象局 MCP 伺服器
- 取得台灣各縣市未來 3 天天氣預報
- 取得台灣各縣市未來 1 週天氣預報
- 取得過去三天的雨量資料
- 自動資料清理與格式轉換
- 內建錯誤處理與重試邏輯
Use cases of 台灣中央氣象局 MCP 伺服器
- 在 AI 對話中即時查詢特定縣市的天氣預報
- 分析近期雨量趨勢,輔助農業或活動規劃
- 將天氣資訊整合到智慧家庭或排程系統
- 快速建立台灣在地化的天氣查詢工具
FAQ from 台灣中央氣象局 MCP 伺服器
需要申請 API 金鑰嗎?
是的。必須先到中央氣象局開放資料平台申請 API 金鑰,並設定在環境變數 CWA_API_KEY 中。
支援哪些縣市?
支援所有 22 個台灣縣市,包含離島:宜蘭縣、花蓮縣、臺東縣、澎湖縣、金門縣、連江縣、臺北市、新北市、桃園市、臺中市、臺南市、高雄市、基隆市、新竹縣、新竹市、苗栗縣、彰化縣、南投縣、雲林縣、嘉義縣、嘉義市、屏東縣。
提供哪些天氣資料?
天氣預報包含未來 3 天與未來 1 週的溫度、相對濕度等逐時資料;雨量資料提供過去三天各測站的累積雨量(含多種時間間隔)。
如何設定重試與超時?
可在環境變數中自訂 MAX_RETRIES(預設 3)、TIMEOUT_MS(預設 10000)等參數,以控制 API 請求的重試行為。
資料來源是否即時更新?
天氣預報與雨量資料來自中央氣象局開放資料 API,其更新頻率由官方決定,伺服器本身不做快取,每次呼叫均直接向官方取得最新資料。
More Other MCP servers
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.

EverArt
modelcontextprotocolModel Context Protocol Servers
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Comments