Token导航 LogoToken导航TokenDH.com
Weather Forecast Server logo
地图位置stdio官方级别未说明来源级核验

Weather Forecast Server

MCP Server

一个基于MCP协议的天气预测服务器,提供全球范围内的实时天气和多日天气预报功能,支持中英文地点查询,可轻松集成到MCP客户端应用中。

工具数

1

提示词数

0

GitHub Stars

4

资源数

0
PythonClaude实时天气ClaudeCursor

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

shibing624

提供方

shibing624

最后核验

2026/5/17 20:19

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install weather-forecast-server

详细介绍

](https://mseep.ai/app/shibing624-weather-forecast-server)

天气预报MCP服务器

用于使用wttr.in服务检索天气信息的模型上下文协议(MCP)服务器。

概述

此MCP服务器提供用于访问全球各地当前天气状况和预报的工具。 它可以很容易地与MCP客户端集成,包括Claude和其他支持MCP协议的LLM应用程序。

特性

  • 获取任何位置的当前天气
  • 获取多日天气预报(最多3天)
  • 支持中文/英文和其他语言的地名
  • 与MCP客户端应用程序轻松集成

安装

来自pip

您可以使用以下命令安装MCP天气服务器 uv:

uv pip install weather-forecast-server

或者使用pip:

pip install weather-forecast-server

来源

git clone https://github.com/shibing624/mcp-server-weather.git
cd weather-forecast-server
pip install -e .

用法

Python演示

from weather_forecast_server import get_weather
print(get_weather('baoding')) # can be "baoding" or "保定"

![](https://github.com/shibing624/weather-forecast-server/blob/main/docs/weather-baoding.jpg)

作为独立的MCP服务器运行

使用stdio传输运行服务器:

uvx weather-forecast-server

uv run weather-forecast-server

python -m weather_forecast_server

然后,您可以将服务器与支持stdio传输的任何MCP客户端一起使用。

与Cursor集成

要将天气MCP服务器添加到Cursor,请使用以下命令添加stdio MCP:

uv run weather-forecast-server

![](https://github.com/shibing624/weather-forecast-server/blob/main/docs/cursor-baoding.jpg)

可用工具

  • get_weather -获取某个地点的当前天气状况(最多3天)

联系

  • 问题和建议: ](https://github.com/shibing624/weather-forecast-server/issues)
  • 电子邮件:xuming624@qq.com
  • 微信:添加我(微信ID:xuming624),并留言:“名称公司NLP”,加入我们的NLP讨论组。

许可证

该项目已获得许可 Apache许可证2.0 并且可以自由地用于商业目的。 请提供以下链接 weather-forecast-server 项目和产品描述中的许可证。

贡献

我们欢迎为改进这个项目做出贡献!在提交pull请求之前,请:

  1. 在中添加适当的单元测试 tests 目录
  2. python -m pytest 确保所有测试通过
  3. 提交您的PR,明确说明更改内容

致谢

目录标签

目录标签

PythonClaude实时天气天气预测本地部署MCP协议多日预报中英文支持

支持客户端

ClaudeCursor

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

1

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP