# qweather-mcp [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/overstarry/qweather-mcp  
**GitHub Stars:** 7  
**npm Downloads (last month):** 274  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/qweather-mcp

## Description
a qweather mcp server

## Tools
Capabilities this server exposes over MCP:

- **get-weather-now** — Real-time weather API provides current weather conditions for global cities. Available data includes: temperature, feels-like temperature, weather conditions, wind direction, wind force scale, relative humidity, precipitation, atmospheric pressure, and visibility. The data is updated in real-time to provide the most accurate current weather information.
- **get-weather-forecast** — Weather forecast API provides detailed weather predictions for global cities, supporting forecasts from 3 to 30 days. Available data includes: sunrise/sunset times, moonrise/moonset times, temperature range, weather conditions, wind direction and speed, relative humidity, precipitation, atmospheric pressure, cloud cover, and UV index. The forecast is updated daily to ensure accuracy.
- **get-minutely-precipitation** — Minute-level precipitation forecast API provides precise precipitation predictions for the next 2 hours in global cities. Available data includes precipitation type (rain/snow) and precipitation amount for each minute. This high-precision forecast is particularly useful for outdoor activity planning and real-time weather monitoring.
- **get-hourly-forecast** — Hourly weather forecast API provides detailed weather information for global cities for the next 24-168 hours. Available data includes: temperature, weather conditions, wind force, wind speed, wind direction, relative humidity, atmospheric pressure, precipitation probability, dew point temperature, and cloud cover. The forecast data is updated hourly to ensure accuracy.
- **get-weather-warning** — Weather Warning API provides real-time weather warning data issued by official authorities in China and multiple countries/regions worldwide. The data includes warning issuer, publication time, warning title, detailed warning information, warning level, warning type, and other relevant information.
- **get-weather-indices** — Weather indices forecast API provides various life indices for cities worldwide. Supports both 1-day and 3-day forecasts. Available indices types:

- Type 0: All indices types
- Type 1: Sport (Indicates suitability for outdoor sports activities)
- Type 2: Car Wash (Suggests whether it's suitable for washing cars)
- Type 3: Dressing (Provides clothing recommendations based on weather)
- Type 4: Fishing (Shows how favorable conditions are for fishing)
- Type 5: UV (Ultraviolet radiation intensity level)
- Type 6: Travel (Indicates suitability for traveling and sightseeing)
- Type 7: Allergy (Risk level for allergies and pollen)
- Type 8: Cold Risk (Risk level for catching a cold)
- Type 9: Comfort (Overall comfort level of the weather)
- Type 10: Wind (Wind conditions and their effects)
- Type 11: Sunglasses (Need for wearing sunglasses)
- Type 12: Makeup (How weather affects makeup wear)
- Type 13: Sunscreen (Need for sun protection)
- Type 14: Traffic (Weather impact on traffic conditions)
- Type 15: Sports Spectating (Suitability for watching outdoor sports)
- Type 16: Air Quality (Air pollution diffusion conditions)

Note: Not all indices are available for every city. International cities mainly support types 1, 2, 4, and 5.
- **get-air-quality** — Real-time Air Quality API provides air quality data for specific locations with 1x1 kilometer precision. Includes AQI based on local standards of different countries/regions, AQI levels, colors, primary pollutants, QWeather universal AQI, pollutant concentrations, sub-indices, health advice, and related monitoring station information.
- **get-air-quality-hourly** — Hourly Air Quality Forecast API provides air quality data for the next 24 hours, including AQI, pollutant concentrations, sub-indices, and health advice. The data includes various air quality standards (such as QAQI, GB-DEFRA, etc.) and specific concentrations of pollutants like PM2.5, PM10, NO2, O3, SO2.
- **get-air-quality-daily** — Daily Air Quality Forecast API provides air quality predictions for the next 3 days, including AQI values, pollutant concentrations, and health recommendations. The data includes various air quality standards and specific concentrations of pollutants like PM2.5, PM10, NO2, O3, SO2.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "qweather-mcp": {
    "command": "npx",
    "args": ["-y","qweather-mcp"],
    "env": {
      "QWEATHER_API_BASE": "",
      "QWEATHER_PROJECT_ID": "",
      "QWEATHER_KEY_ID": "",
      "QWEATHER_PRIVATE_KEY_PATH": "",
      "QWEATHER_PRIVATE_KEY": "",
      "QWEATHER_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `QWEATHER_API_BASE`, `QWEATHER_PROJECT_ID`, `QWEATHER_KEY_ID`, `QWEATHER_PRIVATE_KEY_PATH`, `QWEATHER_PRIVATE_KEY`, `QWEATHER_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What qweather-mcp does

The qweather-mcp MCP server exposes QWeather data as tools that an MCP-compatible client can call. It covers current weather, daily forecasts, hourly forecasts, short-term precipitation, weather warnings, lifestyle indices, and air quality.

The daily forecast tool supports 3, 7, 10, 15, and 30-day ranges. Forecast responses can include temperature highs and lows, day and night conditions, sunrise and sunset, precipitation, humidity, wind, and UV information. The hourly tool supports 24, 72, or 168 hours and returns details such as temperature, wind, humidity, pressure, precipitation probability, and cloud coverage.

## How it works

The qweather-mcp MCP server starts as a Node-based stdio process. An MCP client launches it with `npx -y qweather-mcp`, then supplies QWeather credentials through environment variables. Requests made through the tools are sent to the configured QWeather API base URL.

Two authentication modes are available. JWT mode uses a QWeather project ID, credential ID, and an Ed25519 private key supplied through a file path or directly as PEM content. The server signs EdDSA tokens, backdates their issue time by 30 seconds, gives them a 15-minute lifetime, and reuses them until shortly before expiry. API key mode uses `QWEATHER_API_KEY` and is intended as the legacy option.

## Setup and configuration

Create credentials in the QWeather Console before starting the server. Set `QWEATHER_API_BASE` to the API host required by the account. For JWT authentication, also set `QWEATHER_PROJECT_ID`, `QWEATHER_KEY_ID`, and either `QWEATHER_PRIVATE_KEY_PATH` or `QWEATHER_PRIVATE_KEY`. If both private-key variables are present, the file path takes precedence. Literal `\\n` sequences in the direct key value are converted to line breaks.

For API key authentication, set `QWEATHER_API_KEY` instead of the complete JWT configuration. Complete JWT settings take precedence if both authentication types are present. Partial JWT settings without a usable API key cause startup failure; missing credentials also produce a startup error. The selected authentication mode is written to stderr when the process starts.

A basic MCP client configuration uses `npx` as the command, `-y qweather-mcp` as its arguments, and the required variables in the client's `env` block. Smithery provides an installation command for Claude Desktop.

## Tools and capabilities

The qweather-mcp MCP server provides these tool groups:

- `get-weather-now` for current conditions at a location.
- `get-weather-forecast` for configurable multi-day forecasts.
- `get-minutely-precipitation` for rain or snow predictions at minute resolution over the next two hours.
- `get-hourly-forecast` for 24-, 72-, or 168-hour forecasts.
- `get-weather-warning` for warning authorities, levels, types, validity, content, and recommendations.
- `get-weather-indices` for sports, car washing, clothing, fishing, UV, tourism, allergy, and other lifestyle indices.
- `get-air-quality` for current AQI, pollutants, health advice, and air-quality levels.
- `get-air-quality-hourly` for the next 24 hours of air-quality forecasts.
- `get-air-quality-daily` for three-day air-quality forecasts.

## Limitations and notes

QWeather credentials and an appropriate API base URL are required; the server does not provide weather data without access to the QWeather API. API key authentication is documented as a legacy mode, while QWeather recommends JWT authentication and has announced API key deprecation for 2027. The material documents stdio operation and does not describe another transport. Forecast availability and returned fields depend on the corresponding QWeather API data for the requested location.

_Full upstream README: https://allmcps.com/mcp/qweather-mcp/readme_

