Back to MCP directory
publicPublicdnsLocal runtime

qweather-mcp-server

使用和风天气API查询实时天气的MCP服务器项目

article

README

🚀 和风天气MCP服务器实时天气查询项目

本项目可借助和风天气API查询MCP服务器的实时天气情况。运行时需配置特定环境变量,还推荐使用uv工具来运行项目。

🚀 快速开始

环境变量设置

运行本项目时,需要设置以下环境变量:

  • QWEATHER_HOST:你的API端点地址
  • QWEATH_API_KEY:你的API密钥(目前仅支持API密钥验证,不支持JWT方式)

项目运行

建议采用uv工具来运行项目,具体命令如下:

uv sync
uv run main.py

💡 使用建议

推荐使用uv工具运行项目,它能更便捷地管理项目运行。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client