This MCP server implements Model Context Protocol tooling for the QWeather API. It provides weather information query capabilities via MCP, with documentation referenced in the repository readme excerpt, including language links (English and simplified Chinese). The server is described specifically as a “qweather mcp server” for comprehensive weather queries.
🛠️ Key Features
MCP server for QWeather API
Weather information query capabilities through MCP
🚀 Use Cases
Query comprehensive weather information from QWeather via MCP
⚠️ Limitations
The provided excerpt does not include tool count, specific endpoints, authentication details, or supported query parameters.
📋 Verification/Metadata (from README excerpt)
Listed with multiple security/verification badges: “Verified on MseeP,” “MseeP.ai Security Assessment Badge,” and “smithery badge” (links shown in the excerpt).
Configure environment variables (pick one of the two auth modes below).
🔐 JWT Authentication (recommended)
QWeather has announced that API Key authentication will be deprecated in 2027 and recommends migrating to JWT (EdDSA + Ed25519). Generate an Ed25519 key pair, upload the public key to the QWeather console, and configure:
bash
QWEATHER_API_BASE=https://<your-host>.qweatherapi.com
QWEATHER_PROJECT_ID=<project-id>
QWEATHER_KEY_ID=<credential-id>
# Either pass the PEM path…
QWEATHER_PRIVATE_KEY_PATH=/path/to/ed25519-private.pem
# …or the PEM content directly (newlines preserved)# QWEATHER_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"
If both QWEATHER_PRIVATE_KEY_PATH and QWEATHER_PRIVATE_KEY are provided, the path takes precedence. For QWEATHER_PRIVATE_KEY, the literal two-character sequence \n is auto-converted to real newlines, so the single-line form above works in shells, .env files, and JSON configs.
JWT details: tokens are signed with alg=EdDSA, iat is back-dated 30s to tolerate clock skew, exp = iat + 900s (15 min, well under QWeather's 24h cap), and tokens are cached and reused until ~30s before expiry. See the official authentication docs.