mcp-caiyun-weather
A Model Context Protocol (MCP) server for Caiyun (ColorfulClouds) Weather.
Documentation
Caiyun Weather MCP Server
Hosted Server
Caiyun Weather provides a hosted Streamable HTTP MCP server, so you can use
the weather tools without installing or running this package locally.
{
"url": "https://mcp-weather.caiyunapp.com/mcp",
"headers": {
"X-Caiyun-API-Key": "YOUR_CAIYUN_WEATHER_API_KEY"
}
}The outer configuration format depends on your MCP client. Before getting
started, register and apply for a Caiyun Weather API key,
then pass it in the `X-Caiyun-API-Key` request header.
Setup Instructions
Install uv first.
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shWindows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Setup with Claude Desktop
# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
"mcpServers": {
"caiyun-weather": {
"command": "uvx",
"args": ["mcp-caiyun-weather"],
"env": {
"CAIYUN_WEATHER_API_TOKEN": "YOUR_API_KEY_HERE"
}
}
}
}Ask Claude a question requiring weather
e.g. "What's the weather in Beijing Now?"
Local/Dev Setup Instructions
Setup with Claude Desktop
# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
"mcpServers": {
"caiyun-weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-caiyun-weather",
"run",
"mcp-caiyun-weather"
],
"env": {
"CAIYUN_WEATHER_API_TOKEN": "YOUR_API_TOKEN_HERE"
}
}
}
}Debugging
Run:
npx @modelcontextprotocol/inspector \
uv \
--directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-caiyun-weather \
run \
mcp-caiyun-weatherAvailable Tools
- `get_realtime_weather`: Get real-time weather data for a specific location
- Parameters:
- `lng`: The longitude of the location
- `lat`: The latitude of the location
- Returns detailed information including:
- Temperature and apparent temperature
- Sky condition
- Humidity
- Wind speed and direction
- Precipitation intensity
- Air quality metrics (PM2.5, PM10, O3, SO2, NO2, CO)
- AQI (China and USA standards)
- Life indices (UV and Comfort)
- Parameters:
- `get_hourly_forecast`: Get an hourly weather forecast for a configurable number of hours
- Parameters:
- `lng`: The longitude of the location
- `lat`: The latitude of the location
- `hours`: The number of hours to return (`1`–`360`, defaults to `72`)
- Returns hourly forecast including:
- Temperature
- Weather conditions
- Rain probability
- Precipitation intensity (mm/hr)
- Wind speed and direction
- Parameters:
- `get_weekly_forecast`: Get daily weather forecast for the next 7 days
- Parameters:
- `lng`: The longitude of the location
- `lat`: The latitude of the location
- Returns daily forecast including:
- Temperature range (min/max)
- Weather conditions
- Rain probability
- Parameters:
- `get_historical_weather`: Get historical weather data for the past 24 hours
- Parameters:
- `lng`: The longitude of the location
- `lat`: The latitude of the location
- Returns historical data including:
- Temperature
- Weather conditions
- Parameters:
- `get_weather_alerts`: Get weather alerts for a specific location
- Parameters:
- `lng`: The longitude of the location
- `lat`: The latitude of the location
- Returns weather alerts including:
- Alert title
- Alert code
- Alert status
- Alert description
- Parameters:
Note: All tools require a valid Caiyun Weather API token to be set in the environment variable `CAIYUN_WEATHER_API_TOKEN`.
Frequently asked questions
What is mcp-caiyun-weather?
mcp-caiyun-weather is A Model Context Protocol (MCP) server for Caiyun (ColorfulClouds) Weather.
How do I install mcp-caiyun-weather?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-caiyun-weather open source?
Yes — it is hosted on GitHub at https://github.com/caiyunapp/mcp-caiyun-weather and has 21 stars.
Related MCP tools
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth! Python-based implementation. Trusted by 11000+ developers.
Agent Framework For Fintech for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Build effective agents using Model Context Protocol and simple workflow patterns Python-based implementation. Trusted by 7600+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP