About Qweather Mcp Server Unofficial
Unofficial QWeather MCP wraps the QWeather API for applications and AI agents that need weather data. Its tools cover location lookup, forecasts, warnings, lifestyle indices, and air quality.
Key features
- 01Search cities by name or coordinates
- 02Find points of interest
- 03Retrieve current conditions and forecasts
- 04Access regional weather warnings
- 05Get lifestyle indices
- 06Retrieve current and forecast air quality
Use cases
- 01Check current weather for a location
- 02Compare daily or hourly forecasts
- 03Review active warnings for a region
- 04Consult air quality and lifestyle conditions
MCP support
The server exposes QWeather API data through MCP tools. It requires a QWeather API key and configured API host.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEUnofficial QWeather MCP
An unofficial MCP (Multiagent Conversation Protocol) wrapper for the QWeather API. This package provides tools to easily access QWeather's comprehensive weather data services through MCP, allowing integration with AI agents, chatbots, and other applications.
Features
- City Lookup: Search for cities by name, coordinates, LocationID or Adcode
- POI Lookup: Find points of interest like scenic spots and stations
- Real-time Weather: Get current weather conditions for global locations
- Weather Forecasts: Daily forecasts for 3-30 days and hourly forecasts up to 7 days
- Weather Warnings: Access real-time disaster warnings and warning lists by region
- Weather Indices: Get lifestyle indices like UV index, sports conditions, etc.
- Air Quality: Real-time and forecast air quality data with detailed pollutant information
Installation
pip install unoff-qweather-mcp
Authentication
This package requires a QWeather API key. You'll need to:
- Register for an account at QWeather Developer Platform
- Create an API key in the developer console
- Set the following environment variables:
export QWEATHER_API_KEY="your_api_key_here"
export QWEATHER_API_HOST="api.qweather.com" # or another appropriate host based on your subscription
The API host depends on your subscription tier. See QWeather API Configuration for details.
Usage
Running as an Claude MCP
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
# Clone and config the env
git clone https://github.com/HongpengM/unoff-qweather-mcp.git
# Set up your environment variables by copying the example file
copy env.example .env
# Run the MCP server
uv --directory /path/to/your_dir run src/unoff_qweather/qweather.py
Using the published version:
{
"mcpServers": {
"qweather": {
"command": "uvx",
"args": [
"unoff-qweather-mcp"
],
"env": {
"QWEATHER_API_KEY": "your_api_key_here",
"QWEATHER_API_HOST": "api.qweather.com"
}
}
}
}
For local pulled repository:
{
"mcpServers": {
"qweather": {
"command": "uv",
"args": [
"--directory",
"/path/to/your_dir",
"run",
"src/unoff_qweather/qweather.py"
],
"env": {
"QWEATHER_API_KEY": "your_api_key_here",
"QWEATHER_API_HOST": "api.qweather.com"
}
}
}
}
Available Tools
This package provides the following MCP tools:
lookup_city- Search for cities by name or coordinateslookup_poi- Find points of interestweather_now- Get current weather conditionsweather_forecast_days- Get daily weather forecasts (3-30 days)weather_forecast_hours- Get hourly weather forecasts (24-168 hours)warning_city_list- Get cities with active weather warningsweather_warning- Get detailed weather warnings for a locationweather_indices- Get lifestyle indices (UV, sports, etc.)air_quality_now- Get current air quality dataair_quality_forecast- Get air quality forecasts
For detailed parameter information, see each function's docstring in the code.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Disclaimer
This is an unofficial wrapper and not affiliated with or endorsed by QWeather. Users must comply with QWeather's terms of service when using this package.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.