Skip to main content
Glama
overstarry

qweather-mcp

by overstarry

qweather-mcp

铁匠徽章

英语 |简体中文

QWeather API 的 MCP 服务器,通过模型上下文协议 (MCP) 提供全面的天气信息查询功能。

✨ 特点

  • 🌤️实时天气查询

  • 📅 多日天气预报(3/7/10/15/30 天)

  • 🔑 简单的 API 密钥配置

  • 🔌 自定义 API 基本 URL 支持

  • 🛠️ 完整的工具集成

Related MCP server: weather-mcp-server

📦安装

通过史密斯里

推荐:使用Smithery自动为 Claude Desktop 安装:

npx -y @smithery/cli install @overstarry/qweather-mcp --client claude

手动配置

  1. 首先,从QWeather 控制台获取您的 API 密钥。

  2. 启动服务器:

# stdio server
npx -y qweather-mcp
  1. 配置环境变量:

QWEATHER_API_BASE=https://api.qweather.com
QWEATHER_API_KEY=<your-api-key>

JSON 配置

添加到您的配置文件:

{
  "mcpServers": {
    "qweather": {
      "command": "npx",
      "args": ["-y", "qweather-mcp"],
      "env": {
        "QWEATHER_API_BASE": "<your-api-url>",
        "QWEATHER_API_KEY": "<your-api-key>"
      }
    }
  }
}

🛠️ 可用工具

获取当前天气

获取指定位置的当前天气信息。

获取天气预报

获取指定位置的天气预报信息,可自定义预报天数:

  • 3天预报

  • 7天预报

  • 10天预报

  • 15天预报

  • 30天预报

预测数据包括:

  • 温度范围(最小/最大)

  • 白天/夜间天气状况

  • 日出/日落时间

  • 沉淀

  • 湿度

  • 风力条件

  • 紫外线指数

获取每分钟降水量

提供未来2小时逐分钟降水预报,包括:

  • 降水类型(雨/雪)

  • 每分钟降水量

  • 精确的时间预测

  • 实时预报描述

获取每小时预报

提供 24、72 或 168 小时的每小时天气预报,包括:

  • 温度变化

  • 天气状况

  • 风向和风力

  • 相对湿度

  • 气压

  • 降水概率

  • 云覆盖

获取天气预警

提供实时天气预警信息,包括:

  • 警告发布机构

  • 警告级别和类型

  • 详细警告内容

  • 警告有效期

  • 相关建议

获取天气指数

提供气象生命指数信息,支持多种指数类型:

  • 运动指数

  • 洗车指数

  • 敷料指数

  • 钓鱼指数

  • 紫外线指数

  • 旅游指数

  • 过敏指数及其他16项生活指数

获取空气质量

提供实时空气质量数据,包括:

  • AQI指数

  • 空气质量等级

  • 主要污染物

  • 健康建议

  • 污染物浓度

每小时获取空气质量

提供未来24小时每小时的空气质量预报:

  • 每小时空气质量指数预测

  • 污染物浓度变化

  • 健康影响评估

  • 保护建议

每日获取空气质量

提供未来3天的空气质量预报:

  • 每日空气质量指数预测

  • 主要污染物预报

  • 空气质量水平变化

  • 健康防护建议

🤝 贡献

欢迎提出问题并提出改进!请查看我们的贡献指南。

📄 许可证

麻省理工学院

🔗 相关链接

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)

  • WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)

  • NOAA Weather MCP — National Weather Service forecasts and alerts

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/overstarry/qweather-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server