Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-caiyun-weather

MCP.Pizza Chef: caiyunapp

The mcp-caiyun-weather is an MCP server that integrates the Caiyun (ColorfulClouds) Weather API to deliver real-time weather information. It enables LLMs and applications to query current weather conditions and forecasts by exposing structured weather data through the Model Context Protocol. This server supports seamless integration with clients like Claude Desktop, requiring an API token for access, and facilitates natural language weather queries within AI workflows.

Use This MCP server To

Provide real-time weather updates in chatbots or virtual assistants Enable natural language weather queries in AI copilots Integrate weather data into productivity or planning applications Support location-based weather forecasting in conversational agents Automate weather condition checks for scheduling or alerts

README

Caiyun Weather MCP Server

Setup Instructions

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"

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-weather

Available 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
      • 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)
  • get_hourly_forecast: Get hourly weather forecast for the next 72 hours

    • Parameters:
      • lng: The longitude of the location
      • lat: The latitude of the location
    • Returns hourly forecast including:
      • Temperature
      • Weather conditions
      • Rain probability
      • Wind speed and direction
  • 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
  • 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
  • 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

Note: All tools require a valid Caiyun Weather API token to be set in the environment variable CAIYUN_WEATHER_API_TOKEN.

mcp-caiyun-weather FAQ

How do I obtain the API token for mcp-caiyun-weather?
You can apply for the Caiyun Weather API token at https://docs.caiyunapp.com/weather-api/.
What environment variables are required to run the mcp-caiyun-weather server?
You need to set the CAIYUN_WEATHER_API_TOKEN environment variable with your API key.
How do I integrate mcp-caiyun-weather with Claude Desktop?
Configure the mcpServers section in claude_desktop_config.json with the command 'uvx' and args ['mcp-caiyun-weather'], including your API token in the environment variables.
What platforms are supported for installing dependencies?
The server setup instructions include installation commands for MacOS, Linux, and Windows.
Can mcp-caiyun-weather handle natural language weather questions?
Yes, it supports queries like 'What's the weather in Beijing now?' through integrated clients.
Is the mcp-caiyun-weather server open source?
Yes, it is available on GitHub with setup and usage instructions.
What is the role of 'uv' in the setup?
'uv' is a lightweight runtime used to run the mcp-caiyun-weather server.
Can this server be used with other LLM providers besides Claude?
Yes, it is compatible with any MCP client supporting the protocol, including OpenAI, Claude, and Gemini.