weather
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@weather 北京今天天气如何?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
天气查询 MCP 服务
基于 Node.js 的 MCP (Model Context Protocol) 服务,提供中国城市天气查询功能。
功能特性
query_weather: 查询城市实时天气信息
get_weather_details: 获取详细天气信息,包括未来几天预报
Related MCP server: HeFeng Weather MCP Server
快速安装
方式一:使用 npx(推荐)
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "juweather-mcp-server"],
"env": {
"JUHE_WEATHER_API_KEY": "你的API_KEY"
}
}
}
}方式二:从 GitHub 安装
# 克隆仓库
git clone https://github.com/jaron2026/weather.git
cd weather
# 安装依赖
npm install然后在 Claude Desktop/Cursor 配置:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["你的本地路径/index.js"],
"env": {
"JUHE_WEATHER_API_KEY": "你的API_KEY"
}
}
}
}配置 API Key
访问 聚合数据官网 注册账号
在个人中心获取 API Key(免费)
将 API Key 填入配置文件的
JUHE_WEATHER_API_KEY
使用示例
帮我查一下苏州今天的天气
北京未来几天的天气预报
深圳现在温度多少数据来源
使用 聚合数据 的免费天气 API。
开发
# 克隆项目
git clone https://github.com/jaron2026/weather.git
cd weather
# 安装依赖
npm install
# 调试
npm run inspect项目结构
weather/
├── index.js # MCP 服务主文件
├── package.json # 项目配置
├── .env.example # 环境变量示例
├── .gitignore # Git 忽略文件
└── README.md # 项目文档许可证
MIT
Available Tools
2 toolsget_weather_detailsB
获取城市的详细天气信息,包括未来几天预报
Inputs: city (required).
query_weatherB
查询中国城市的实时天气信息
Inputs: city (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
query_weather focuses on current real-time conditions while get_weather_details offers more comprehensive information with forecast data. There is some overlap because both retrieve weather, but the descriptions provide enough distinction.
Both names use a verb_noun pattern and are readable, but the mix of 'query' and 'get' is a slight inconsistency in retrieval verb choice.
Two tools is a thin surface for a weather server, but it still covers the two core needs: current conditions and forecasts. This is borderline rather than clearly excessive or inadequate.
Real-time weather and multi-day forecast cover the most common weather information needs for Chinese cities. Missing features like alerts or historical data are minor gaps rather than causes of failure.
Maintenance
Related MCP Connectors
MCP server for China weather: current conditions and multi-day forecast by city name or adcode.
MCP server for current weather and multi-day forecasts worldwide, Chinese city names and output.
Free, keyless real-time weather and 7-day forecasts for any city worldwide.
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides weather forecast data for locations in China using the HeFeng Weather API, with real-time, hourly, or daily forecasts and location-based queries.159 npm10ISC
- AlicenseBqualityDmaintenanceProvides weather forecast data for locations in China through HeFeng Weather API, supporting real-time, hourly, and daily forecasts with full Chinese weather descriptions.38 npmISC
- AlicenseNot gradedqualityDmaintenanceEnables querying weather forecasts (1-7 days) and meteorological warnings for Chinese cities using the QWeather API. Supports detailed weather data including temperature, humidity, wind, precipitation, UV index, and real-time weather alerts.2MIT
- FlicenseAqualityDmaintenanceEnables querying real-time weather, forecasts, and warnings for Chinese cities via the QWeather API.3-