mcp-tw-uv
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-tw-uvWhat's the UV index in Taipei right now?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
☀️ 台灣紫外線指數助手 (mcp-tw-uv)
這是一個 Model Context Protocol (MCP) 伺服器,專門提供台灣各地的即時紫外線 (UV) 指數以及紫外線預報,並根據指數提供防曬建議。
資料來源:中央氣象署 (CWA) 開放資料平台。
O-A0003-001 (紫外線指數日最大值預報)
O-A0005-001 (紫外線指數觀測資料)
✨ 功能
即時觀測 (
get_uv_observation):查詢全台測站目前的紫外線指數。未來預報 (
get_uv_forecast):查詢今天與明天的紫外線最大值預報。防曬建議 (
get_protection_advice):根據指數等級提供 WHO/CWA 標準的防護建議。
Related MCP server: mcp-cwa
🛠 安裝與設定
1. 取得 API Key
你需要一個中央氣象署的授權碼 (API Key)。
前往 CWA 開放資料平台 註冊並取得授權碼。
2. 安裝依賴
本專案需要 Python 3.10+。
# 建立虛擬環境
python3 -m venv .venv
source .venv/bin/activate
# 安裝套件
pip install -r requirements.txt🔌 MCP Client 設定
Claude Desktop
請編輯 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"tw-uv": {
"command": "/Users/simonliuyuwei/clawd/projects/mcp-tw-uv/.venv/bin/python",
"args": [
"/Users/simonliuyuwei/clawd/projects/mcp-tw-uv/src/server.py"
],
"env": {
"CWA_API_KEY": "你的API_KEY"
}
}
}
}Dive (Moltbot)
請在 Dive 的設定介面中新增一個 MCP Server:
Name:
tw-uvType:
stdioCommand:
/Users/simonliuyuwei/clawd/projects/mcp-tw-uv/.venv/bin/pythonArguments:
/Users/simonliuyuwei/clawd/projects/mcp-tw-uv/src/server.pyEnvironment Variables:
CWA_API_KEY:你的API_KEY(請填入實際的 Key)
📝 開發說明
src/server.py: MCP Server 入口點。src/logic.py: 資料擷取與處理邏輯。src/config.py: 設定檔 (API Key, URL)。
⚠️ 注意事項
請確保 API Key 正確,否則伺服器無法擷取資料。
紫外線觀測資料 (
O-A0005-001) 並非所有測站都有提供。
This server cannot be deployed
Maintenance
Related MCP Connectors
Know when the sun can make vitamin D where you are, for your skin type. Live UV data.
Vitamin D synthesis calculator: sun position, UV, IU/min, time to dose, sunburn risk, daily window.
Real-time weather conditions and multi-day forecasts via Open-Meteo — free, no API key required
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data and 5-day forecasts using OpenWeatherMap API. Supports querying by city name, country code, or geographic coordinates with detailed climate information including temperature, humidity, wind, and UV index.10 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Taiwan's Central Weather Administration (CWA) Open Data API, offering 36 tools across 7 categories including weather forecasts, observations, earthquakes, and astronomy.MIT
- AlicenseAqualityDmaintenanceEnables to access Taiwan Central Weather Administration data, including 3-day and 1-week weather forecasts for counties/cities and historical rainfall data.3MIT
- AlicenseNot gradedqualityCmaintenanceProvides weather reports for Zhongshan District, Taipei, Taiwan and other Taiwanese cities using the Open-Meteo API, enabling AI assistants to answer weather queries in natural language.MIT