
Caiyun Weather
STDIOWeather data service providing real-time and forecast information via Caiyun API.
Weather data service providing real-time and forecast information via Caiyun API.
Before anything, ensure you have access to the API. You can apply for it at https://docs.caiyunapp.com/weather-api/.
Install uv first.
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# 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"
}
}
}
}
e.g. "What's the weather in Beijing Now?"
# 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"
}
}
}
}
Run:
npx @modelcontextprotocol/inspector \ uv \ --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-caiyun-weather \ run \ mcp-caiyun-weather
get_realtime_weather
: Get real-time weather data for a specific location
lng
: The longitude of the locationlat
: The latitude of the locationget_hourly_forecast
: Get hourly weather forecast for the next 72 hours
lng
: The longitude of the locationlat
: The latitude of the locationget_weekly_forecast
: Get daily weather forecast for the next 7 days
lng
: The longitude of the locationlat
: The latitude of the locationget_historical_weather
: Get historical weather data for the past 24 hours
lng
: The longitude of the locationlat
: The latitude of the locationget_weather_alerts
: Get weather alerts for a specific location
lng
: The longitude of the locationlat
: The latitude of the locationNote: All tools require a valid Caiyun Weather API token to be set in the environment variable CAIYUN_WEATHER_API_TOKEN
.