China Weather

by nanchengjiumeng

Not rated
GitHub

About

Query weather information and meteorological warnings for Chinese cities using the QWeather API.

Details

Author
nanchengjiumeng
Categories
Cloud Service, Other, API

Setup

Install China Weather in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/nanchengjiumeng/china-weather-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

照抄Mcp官网Demo的基于和风天气API的Model Context Protocol (MCP)服务器,用于查询中国城市的天气信息和气象预警。

code ~/Library/Application\ Support/Claude/claude_desktop_config.json { "mcpServers": { "weather": { "command": "node", "args": [ "your_dir/weather/build/index.js" ] } } }

- 🌤️天气预报: 获取中国任意城市的1-7天天气预报
- ⚠️气象预警: 查询城市的实时气象预警信息
- 🏙️智能城市搜索: 支持中文城市名称搜索
- 📊详细信息: 提供温度、湿度、风力、降水、紫外线等详细天气数据

const QWEATHER_API_BASE = "https://ph5ctubwqh.re.qweatherapi.com"; const API_KEY = "dedccbe28e4d43a28e9db478df8aca71";

- city(string): 城市名称,如:北京、上海、广州等
- days(number, 可选): 预报天数,1-7天,默认3天

{ "city": "北京", "days": 5 }

- 直辖市: 北京、上海、天津、重庆
- 省会城市: 广州、深圳、杭州、南京、武汉、成都、西安等
- 地级市: 苏州、无锡、佛山、东莞、大连等
- 县级市: 昆山、江阴、张家港等

- 📅 日期
- 🌡️ 最高/最低温度
- ☀️ 白天天气状况
- 🌙 夜间天气状况
- 💨 风向风力
- 💧 湿度
- 🌧️ 降水量
- 📊 气压
- 👁️ 能见度
- ☀️ 紫外线指数
- 🌅 日出日落时间

weather/ ├── src/ │ └── index.ts # 主服务器文件 ├── build/ │ └── index.js # 编译后的文件 ├── package.json ├── tsconfig.json └── README.md

- 修改源代码src/index.ts
- 重新构建:npm run build
- 测试运行:npm start

- 和风天气API文档
-
Model Context Protocol
-
MCP SDK

Fetches precipitation forecast data for a specific location using the Buienradar service.

A server for fetching weather information using the OpenWeather API.

Provides hourly weather forecasts using the AccuWeather API.

Access global weather forecasts and historical data through the Open-Meteo API.

Access global weather data and forecasts using the OpenMeteo API, including current conditions, historical data, and location search.

Provides comprehensive weather data and forecasts using the OpenWeatherMap API.

An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.

Provides real-time weather alerts for US states using the National Weather Service API.

An MCP server for accessing real-time weather data and forecasts.

Provides weather information using the free and open-source Open-Meteo API. No API key required.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.