# Weather Forecast MCP [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/boy-373/weather-mcp-china  
**GitHub Stars:** 1  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/weather-forecast-mcp

## Description
MCP server for current weather and multi-day forecasts worldwide, Chinese city names and output.

## Tools
Capabilities this server exposes over MCP:

- **query_weather** — 查询全球城市的实时天气和未来几天预报。city城市名中英文均可，days预报天数1~7默认3天。主源Open-Meteo，备源wttr.in。

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "weather-forecast-mcp": {
    "url": "https://mcp.pianam.cn/weather-mcp/mcp"
  }
}
```

## Documentation

## What Weather Forecast MCP MCP server does

Weather Forecast MCP MCP server exposes weather lookups through the Model Context Protocol. Its main tool, `query_weather`, accepts a city name and an optional number of forecast days. City names may be written in Chinese or English, including examples such as 北京, 青岛, and Tokyo.

The response combines current conditions with a daily forecast. Current data includes the weather description, temperature, feels-like temperature, humidity, wind direction, and wind speed. Each forecast day includes the date, weather description, high and low temperatures, and precipitation probability. The service translates weather codes and wind directions into Chinese output.

## How it works

The hosted service uses Streamable HTTP and is available at `https://mcp.pianam.cn/weather-mcp/mcp`. An MCP client connects to that URL and can then call `query_weather` as an agent tool. The endpoint does not require authentication, an account, or an API key.

Open-Meteo supplies geocoding and forecast data as the primary source. Its city resolution includes Chinese-language handling and ranks administrative cities to reduce collisions between places with the same name. If the primary source fails, the server falls back to wttr.in. Responses are cached for 600 seconds.

The tool accepts `days` from 1 through 7; the default is 3. This makes the Weather Forecast MCP MCP server suitable for conversational weather checks, itinerary planning, and applications that need a bounded short-range forecast rather than historical or long-term climate data.

## Setup and configuration

The quickest option is to add the hosted endpoint to an MCP client configuration:

```json
{
  "mcpServers": {
    "weather": {
      "type": "http",
      "url": "https://mcp.pianam.cn/weather-mcp/mcp"
    }
  }
}
```

Some clients accept the same entry with only the `url` field. The README specifically documents Claude Desktop, Cursor, Cline, and Cherry Studio configurations.

For local deployment, clone the repository, install the dependencies from `requirements.txt`, and run `weather_mcp_server.py`. The process listens on `127.0.0.1:8004` by default, and clients can connect through `/mcp`. Docker users can pull the published image or build one from the repository; the container defaults to port 8000 and listens on `0.0.0.0`.

Optional environment variables include `MCP_HOST`, `MCP_PORT`, `MCP_ALLOWED_HOSTS`, and `MCP_ALLOWED_ORIGINS`. Neither the hosted endpoint nor the self-hosted setup requires an API key or account.

## Tools and capabilities

- `query_weather(city, days=3)` for current conditions and daily forecasts.
- Chinese and English city-name input.
- Forecast ranges from one to seven days.
- Chinese weather descriptions and wind-direction output.
- Open-Meteo primary data with wttr.in fallback.
- Streamable HTTP access for remote or local MCP clients.

## Limitations and notes

The public endpoint applies a limit of 200 requests per minute for each IP address. Cached results may remain available for up to 600 seconds, so repeated calls may not represent a newly fetched observation. Self-hosting changes the endpoint and deployment responsibility but does not add separate weather data providers or API credentials.

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

