Back to MCP directory
publicPublicdnsLocal runtime

hefeng-mcp-weather

基于和风天气API提供中国各地的天气预报数据。

article

README

HeFeng Weather MCP Server

A Model Context Protocol server that provides weather forecast data for locations in China through HeFeng Weather API.

Features

  • Get real-time weather data
  • Get hourly weather forecast (24h/72h/168h)
  • Get daily weather forecast (3d/7d/10d/15d/30d)
  • Support location query by longitude and latitude coordinates
  • Full Chinese weather description

API

This MCP server provides the following tool:

get-weather

Get weather forecast data for a specific location.

Usage with MCP Host(eg. Claude Desktop)

Add this to your claude_desktop_config.json

NPX

{
  "mcpServers": {
    "hefeng-weather": {
      "command": "npx",
      "args": ["hefeng-mcp-weather@latest", "--apiKey=${API_KEY}"]
    }
  }
}

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client