MCP 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., "@MCP Weatherwhat's the weather forecast for Shanghai this week?"
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_weather
项目简介
mcp_weather 是一个基于 MCP(Model Context Protocol)协议的天气查询服务端项目。 它是通过用户输入或者模型智能判断输入城市 地区,使用spider获取中国天气网站未来7天的天气信息。
主要功能
城市未来7天天气查询
支持用户输入或大模型智能匹配城市/地区参数
支持SSE和stdio两种传输方式
轻量级部署,易于集成
Related MCP server: HeFeng Weather MCP Server
快速开始
本地运行
1. 克隆仓库
git clone https://github.com/tanghui886/MCP_WEATHER.git
cd MCP_WEATHER2. 安装依赖
pip install -r requirements.txt3. 启动服务
python -m mcpserver.get_weather_mcpserver --port 8000 --transport sse参数说明:
--port: 服务监听端口,默认 8000
--transport: 传输方式,支持 stdio 或 sse
主要接口/工具 • get_weather:查询天气信息 参数:input_str(城市 地区) 输入示例:北京 海淀
MCP sever configuration
{
"mcpServers": {
"MCP_WEATHER": {
"command": "npx",
"args": [
"-y",
"MCP_WEATHER"
]
}
}
}项目结构
MCP_WEATHER/
├── fc/ # 功能模块
│ └── get_weather.py # 天气获取主逻辑
├── mcpserver/ # MCP服务端
│ ├── __init__.py
│ └── get_weather_mcpserver.py # 服务启动入口
├── spider/ # 爬虫模块
│ ├── get_city_list.py # 城市列表获取
│ └── get_weather_by_cityId.py # 根据城市ID获取天气
├── README.md # 项目文档
└── requirements.txt # 依赖列表联系方式
维护者github: tanghui886
邮箱: 471450059@qq.com
问题反馈: GitHub IssuesThis server cannot be deployed
Maintenance
Related MCP Connectors
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 via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Get current weather for any city and create images from your prompts. Streamline planning, reports…
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.124 npm9ISC
- AlicenseBqualityDmaintenanceProvides weather forecast data for locations in China through HeFeng Weather API, supporting real-time, hourly, and daily forecasts with full Chinese weather descriptions.312 npmISC
- AlicenseBqualityDmaintenanceEnables real-time weather queries for cities worldwide using Open-Meteo API. Provides 7-day forecasts with detailed information including temperature, wind, humidity, precipitation, and comfort level assessments in both Chinese and English.18 npmMIT
- FlicenseNot 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.2-