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

MCP Weather Free

MCP Server

一个基于Open-Meteo API的免费天气数据服务,提供实时天气、24小时预报、7天预报和城市搜索功能。

工具数

2

提示词数

0

GitHub Stars

1

资源数

0
位置天气Python实时天气

安装说明

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

作者 / 组织

microagents

提供方

microagents

最后核验

2026/5/17 20:21

运行时

Python

快速接入

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

命令预览

uvx --from git+https://github.com/microagents/mcp-servers.git#subdirectory=mcp-weather-free mcp-weather-free

详细介绍

MCP无天气

模型上下文协议(MCP)服务器,使用免费的Open-Meteo API提供天气数据。不需要API密钥!

特性

  • 当前天气:获取实时天气状况,包括温度、湿度、风速和天气描述
  • 逐时预报:24小时天气预报,每小时更新
  • 每日预报:7天天气预报,每日摘要
  • 城市搜索:使用自动地理编码按城市名称查找天气
  • 动车组:支持不同的温度(摄氏度/华氏度)、风速(公里/小时、米/秒、英里/小时、节)和降水量(毫米、英寸)单位

安装

使用uvx(推荐)

uvx --from git+https://github.com/microagents/mcp-servers.git#subdirectory=mcp-weather-free mcp-weather-free

使用pip

pip install git+https://github.com/microagents/mcp-servers.git#subdirectory=mcp-weather-free

配置

将以下内容添加到MCP客户端配置中:

适用于克劳德桌面

更新您的 claude_desktop_config.json:

{
    "mcpServers": {
        "weather": {
            "command": "uvx",
            "args": ["--from", "git+https://github.com/microagents/mcp-servers.git#subdirectory=mcp-weather-free", "mcp-weather-free"]
        }
    }
}

对于其他MCP客户端

{
    "mcpServers": {
        "weather": {
            "command": "python",
            "args": ["-m", "mcp_weather_free"]
        }
    }
}

可用工具

get_weather

获取特定坐标的天气数据。

参数:

  • latitude (浮点数,必填):位置的纬度
  • longitude (浮动,必填):位置的经度
  • location_name (字符串,可选):位置的显示名称
  • temperature_unit (字符串,可选):“celsius”(默认)或“fahrenheit”
  • wind_speed_unit (字符串,可选):“公里小时”(默认)、“毫秒”、“英里小时”或“节”
  • precipitation_unit (字符串,可选):“mm”(默认)或“英寸”

例子:

Get weather for latitude: 40.7128, longitude: -74.0060

get_weather_by_city

按城市名称获取天气数据。

参数:

  • city (string,必填):城市名称
  • country_code (字符串,可选):2个字母的国家代码(例如,“US”、“GB”)
  • temperature_unit (字符串,可选):“celsius”(默认)或“fahrenheit”
  • wind_speed_unit (字符串,可选):“公里小时”(默认)、“毫秒”、“英里小时”或“节”
  • precipitation_unit (字符串,可选):“mm”(默认)或“英寸”

例子:

Get weather for city: "New York"

资源

服务器还提供了一个资源端点:

  • weather://current/{latitude}/{longitude} -获取某个位置的格式化当前天气

响应格式

天气数据包括:

  • 位置信息:坐标、时区、海拔
  • 现状:温度、湿度、风、天气描述
  • 每小时预报:未来24小时的天气数据
  • 每日预测:未来7天天气摘要

许可证

该项目根据MIT许可证获得许可。

鸣谢

气象数据由 Open Meteo -免费天气API,无需API密钥。

目录标签

目录标签

位置天气Python实时天气天气数据本地部署天气预报城市搜索气象服务

接入字段

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

stdio

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

none

运行时(runtime,运行环境)

Python

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdiononeremote-capable

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

安装前确认

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

来源信息

继续浏览同类 MCP