@wangzmwzm/qweather-mcp
v1.1.1
Published
QWeather MCP server (latitude/longitude version)
Maintainers
Readme
qweather-mcp
English | 简体中文
和风天气 API 的 MCP 服务器,通过模型上下文协议(Model Context Protocol,MCP)提供全面的天气信息查询功能。
✨ 特性
- 🌤️ 实时天气查询
- 📍 经纬度查询(不再进行城市名匹配)
- 📅 多天天气预报(3/7/10/15/30天)
- 🔑 简单的API密钥配置
- 🔌 自定义API基础URL支持
- 🛠️ 完整的工具集成
📦 安装
一次性发布你自己的包
本 fork 使用 scoped 包名:
npm login
npm publish --access public包名:@wangzmwzm/qweather-mcp
手动运行
npx -y @wangzmwzm/qweather-mcp必要环境变量
QWEATHER_API_BASE=https://api.qweather.com
QWEATHER_API_KEY=<your-api-key>JSON 配置
{
"mcpServers": {
"qweather": {
"command": "npx",
"args": ["-y", "@wangzmwzm/qweather-mcp"],
"env": {
"QWEATHER_API_BASE": "https://api.qweather.com",
"QWEATHER_API_KEY": "<your-api-key>"
}
}
}
}🛠️ 可用工具
所有工具都使用 纬度 与 经度 参数(单位:度)。
get-weather-nowget-weather-forecastget-minutely-precipitationget-hourly-forecastget-weather-warningget-weather-indicesget-air-qualityget-air-quality-hourlyget-air-quality-daily
📄 许可证
MIT

