MCP.so
登录
W

Weather

@shuowang-ai

关于 Weather

暂无概览

基本信息

分类

媒体与设计

传输方式

stdio

发布者

shuowang-ai

提交者

王硕

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "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"
      }
    }
  }
}

工具

5

Get real-time weather data for a specific location

Get hourly weather forecast for the next 72 hours

Get daily weather forecast for the next 7 days

Get historical weather data for the past 24 hours

Get weather alerts for a specific location

概览

What is Weather?

Weather is an MCP server that wraps the Caiyun Weather API, enabling AI assistants to retrieve real-time weather, forecasts, historical data, and weather alerts for any location. It is designed for users of Claude Desktop or any MCP client who need on-demand weather information.

How to use Weather?

Install uv, then configure the server in claude_desktop_config.json using the command uvx mcp-caiyun-weather and set the CAIYUN_WEATHER_API_TOKEN environment variable. After setup, ask a question like “What’s the weather in Beijing Now?” to invoke the tools.

Key features of Weather

  • Real-time weather data for a specific location.
  • Hourly forecast for the next 72 hours.
  • Daily forecast for the next 7 days.
  • Historical weather for the past 24 hours.
  • Weather alerts with title, code, status, description.
  • Air quality metrics (PM2.5, PM10, AQI, etc.).

Use cases of Weather

  • Ask your AI assistant for current weather conditions.
  • Plan outdoor activities using hourly or weekly forecasts.
  • Check air quality indices before traveling.
  • Monitor severe weather alerts for a location.
  • Analyze recent historical weather trends.

FAQ from Weather

How do I get an API token?

Apply for a token at https://docs.caiyunapp.com/weather-api/.

What tools does Weather provide?

Five tools: get_realtime_weather, get_hourly_forecast, get_weekly_forecast, get_historical_weather, and get_weather_alerts.

Where do I configure the server?

In the claude_desktop_config.json file under the mcpServers section, accessible via Claude Desktop’s Developer settings.

What parameters do all tools require?

All tools require lng (longitude) and lat (latitude) of the target location.

评论

媒体与设计 分类下的更多 MCP 服务器