MCP server for QWeather API.
This project provides weather information query capabilities through Model Context Protocol (MCP).
Usage
Get your API Key here.
Installing via Smithery
To install qweather-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @overstarry/qweather-mcp --client claude
Configure manually
# stdio server
npx -y qweather-mcp
Environment variables:
QWEATHER_API_BASE=https://api.qweather.com
QWEATHER_API_KEY=<your-api-key>
JSON config
{
"mcpServers": {
"qweather": {
"command": "npx",
"args": ["-y", "qweather-mcp"],
"env": {
"QWEATHER_API_BASE": "<your-api-url>",
"QWEATHER_API_KEY": "<your-api-key>"
}
}
}
}
Available Tools
lookup-city
: Look up city information by nameget-weather-now
: Get current weather for a location
License
MIT.