Skip to main content
Glama

weather-mcp — 中文天气/空气质量 MCP Server

演示

操作演示

功能总览

当前天气 + 未来预报 + 空气质量一体查询。免 key、免注册(Open-Meteo)。 中文城市名模糊解析("北京"/"上海市"都能识别)。

Related MCP server: AQICN MCP Server

为什么做这个

  • "天气+空气质量"组合 MCP = 零竞品(调研确认)

  • 现有中文天气 MCP 最高才 21★,质量差(依赖高德/和风 key)

  • 中文城市名模糊解析(AI 常答错城市坐标)是差异化

核心能力

工具

说明

current_weather

当前天气:温度/体感/湿度/风速/降水概率/天气状况

weather_forecast

未来 N 天预报(最高/最低温+降水+天气)

air_quality

空气质量:PM2.5/PM10/CO/NO2/SO2/O3 + AQI估算+等级

weather_all ⭐

天气+空气一体查询(一次调用全部)

数据源

  • Open-Meteo(免 key):全球含中国,天气 + 空气质量(CAMS模型)

  • 内置 10 个高频城市(北京/上海/广州/深圳等)避免 geocoding 偶发失败

  • 城市名自动缓存

安装

pip install weather-mcp-server

使用

{
  "mcpServers": {
    "weather": {
      "command": "weather-mcp",
      "args": []
    }
  }
}

示范

weather_all(city="深圳")
→ 当前22.8°C阴 + 3天预报(最高30°C)+ PM2.5空气质量

License

MIT。


系列(Chinese MCP Suite)

中文内容创作/工具 MCP 全家桶,全本地、CPU、离线:

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables querying real-time air quality index (AQI) data for Chinese cities, including PM2.5, PM10, and other pollutant information with health recommendations from the World Air Quality Index Project API.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables querying weather forecasts (1-7 days) and meteorological warnings for Chinese cities using the QWeather API. Supports detailed weather data including temperature, humidity, wind, precipitation, UV index, and real-time weather alerts.
    2
    -