MCP Connector

Access Real-Time Weather and Forecast Data

MCP server for real-time weather, air quality, forecasts, and astronomical data via Caiyun Weather API, with Chinese localization.

Works with caiyun weather api

Maintainer of this project? Claim this page to edit the listing.


91
Spark score
out of 100
Updated 10 months ago
Version 1.0.0
Models
universal

Add to Favorites

Why it matters

Integrate comprehensive real-time weather data, air quality monitoring, forecasts, and astronomical information into your applications. This asset leverages the Caiyun Weather API to provide detailed meteorological insights.

Outcomes

What it gets done

01

Retrieve current weather conditions including temperature, humidity, and air quality.

02

Access hourly and daily weather forecasts up to 15 days in advance.

03

Obtain minute-level precipitation forecasts and weather alerts.

04

Query historical weather data and astronomical information.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-knowair-weather-mcp | bash

Capabilities

Tools your agent gets

get_realtime_weather

Get real-time weather data including temperature, humidity, wind speed, air pressure, visibility, and air quality

get_hourly_forecast

Hourly weather forecast for 1-360 hours with temperature, precipitation, wind speed, and air quality data

get_daily_forecast

Daily weather forecast for 1-15 days with temperature range, precipitation, wind speed, and lifestyle indices

get_air_quality_station_forecast

Comprehensive 15-day hourly air quality forecast combining station data and API forecasts

get_minutely_precipitation

Minute-level precipitation forecast for the next 2 hours with intensity and probability predictions

get_comprehensive_weather

One-stop comprehensive weather report including real-time data, forecasts, alerts, and astronomical information

get_weather_alerts

Get current active weather alert details and information

get_astronomy_info

Astronomy information for 1-15 days including sunrise/sunset, moonrise/moonset, and moon phases

get_historical_weather

Query historical weather data from the past 1-72 hours

Overview

KnowAir Weather MCP Server

KnowAir Weather MCP Server provides real-time weather, air quality, forecasts, and astronomical data via the Caiyun Weather API, with Chinese-localized output and health-relevant AQI trend analysis. Use it for detailed weather and air-quality queries, especially strong for Chinese cities' minute-level precipitation forecasting; requires a valid Caiyun Weather API token.

What it does

KnowAir Weather MCP Server provides real-time weather, air quality monitoring, forecasts, and astronomical data powered by the Caiyun Weather API. It covers realtime conditions (temperature, feels-like, humidity, wind, visibility, air quality), hourly forecasts up to 360 hours, daily forecasts up to 15 days, minute-level precipitation forecasts for the next 2 hours, historical weather for the past 72 hours, active weather alerts, and astronomical data (sunrise/sunset, moon phases). A newer combined tool provides realtime, forecast, alert, and astronomy data in one call. It also includes a dedicated air-quality-station-enhanced forecast that blends 5 days of high-precision monitoring station data with 6-15 day API forecasts, including AQI/PM2.5/PM10/O3 trend analysis and health recommendations.

Weather phenomena and life indices (UV index, clothing index, comfort index, cold/flu risk, car-wash suitability) are fully localized into Chinese with emoji-based formatting for readability.

When to use - and when NOT to

Use this connector when you want an assistant to answer weather and air-quality questions - current conditions, multi-day forecasts, precipitation timing, or health-relevant air quality trends - for a given longitude/latitude, with rich Chinese-localized output.

Do not use it without a valid Caiyun Weather API token, and note it primarily targets Chinese cities for minute-level precipitation forecasting; coverage and precision may be strongest there compared to other regions.

Inputs and outputs

Most tools take lng (longitude) and lat (latitude), plus a time range parameter specific to the tool (hours, days, hours_back). Outputs are structured weather/air-quality data - temperature, humidity, wind, AQI/PM2.5/PM10/O3/NO2/SO2/CO readings, precipitation intensity, alerts, or astronomical timing - formatted with Chinese labels and emoji indicators.

Capabilities

  • get_realtime_weather: current temperature, feels-like, humidity, wind, air quality, and life indices
  • get_hourly_forecast: hourly forecast for 1-360 hours with air quality and trend analysis
  • get_daily_forecast: daily forecast for 1-15 days with temperature range, precipitation probability, and life indices
  • get_air_quality_station_forecast: 15-day air quality forecast blending monitoring-station and API data with trend analysis and health advice
  • get_minutely_precipitation: minute-level precipitation intensity for the next 2 hours
  • get_comprehensive_weather: one-stop combined realtime + forecast + alerts + astronomy report
  • get_weather_alerts: currently active weather alerts
  • get_astronomy_info: sunrise/sunset and moon phase data for 1-15 days
  • get_historical_weather: historical weather for the past 1-72 hours

How to install

Requires a Caiyun Weather API token (docs.caiyunapp.com/weather-api) and uv:

{
  "mcpServers": {
    "knowair-weather": {
      "command": "uvx",
      "args": ["mcp-knowair-weather"],
      "env": { "CAIYUN_WEATHER_API_TOKEN": "YOUR_API_KEY_HERE" }
    }
  }
}

Requires Python 3.12+.

Who it's for

Users who want detailed, Chinese-localized weather and air quality data - including health-relevant AQI trend analysis - in an AI assistant.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.