SH

shanggqm/hefeng-mcp-weather

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

10 stars 9 forks 品質 44 トレンド 18

an mcp server for hefeng weather api

概要

A Model Context Protocol server that provides weather forecast data for locations in China through HeFeng Weather API. - 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 This MCP server provides the following tool: Get weather forecast data for a specific location. Add this to your claude_desktop_config.json 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.

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.

GitHub で README 全文を見る

インストール

npx hefeng-mcp-weather@latest --apiKey=${API_KEY}
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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