mcp-weather logo

mcp-weather使用 AccuWeather API 的 Model Context Protocol (MCP) 服务器,可提供每小时和每日天气预报。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

mcp-weather 是一个 Model Context Protocol (MCP) 服务器,使用 AccuWeather API 提供每小时和每日天气预报。它允许大型语言模型,例如 Claude,访问实时天气数据。 服务器获取准确的最新天气预报,供应温度、条件、降水等的公制和英制单位数据。支持的工具包括‘hourly’天气预报工具,‘weather-get_hourly’,和‘daily’天气预报工具,‘weather-get_daily’,使用户能够访问相关信息。 使用此工具,需要在 Node.js 18 中安装并设置 AccuWeather API 密钥,通过 .env 或用户 shell 进行设置。 在 Claude Desktop 和其他 MCP 相容客户端中集成 MCP 服务器配置可让用户根据自己客户的要求在会话中访问天气数据。

主要功能

  • 小时级天气预报工具(weather-get_hourly)
  • 每日天气预报工具(weather-get_daily)
  • 公制(°C)和英制(°F)单位支持
  • 获取准确的最新天气预报

价格

模型
Free
评分
暂无评价

使用场景

小时级天气预报

获取下一 12 小时的当前位置(例如纽约市)的小时级天气预报

每日天气预报

为特定地点(例如伦敦)提供最多 15 天的每日天气预报

优点 & 缺点

优点

  • 提供准确实时的天气预报
  • 支持每小时和每日预报
  • 支持公制和英制单位显示
  • 容易集成到大型语言模型和 MCP 相容客户端中

缺点

  • 需要 AccuWeather API 密钥
  • 仅限使用 AccuWeather 数据源
  • 需要 Node.js ≥18 运行

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

Is mcp-weather compatible with Claude Desktop or other MCP clients?

Yes. You can configure it in a Claude Desktop (or any MCP‑compatible) client by adding an entry to the client’s `mcpServers` config, specifying the command `npx @timlukahorstmann/mcp-weather` and the API key environment variable.

Asked by Sami Virtanen · May 5, 2026

How far into the future can I get weather data with mcp-weather?

The hourly tool provides forecasts for the next 12 hours, while the daily tool can return forecasts for up to 15 days (default is 5 days).

Asked by Idris Suleiman · Mar 10, 2026

Can mcp-weather return forecasts in both metric and imperial units?

Yes. Both the hourly (`weather-get_hourly`) and daily (`weather-get_daily`) tools accept a `units` parameter, allowing you to choose Celsius (metric) or Fahrenheit (imperial).

Asked by Frank Müller · Feb 18, 2026

What do I need to run mcp-weather and how do I set up the AccuWeather API key?

You need Node.js version 18 or higher and an AccuWeather API key. Export the key as an environment variable (e.g., `export ACCUWEATHER_API_KEY=your_key`) or place it in a .env file before starting the server.

Asked by Kirsi Laine · Feb 6, 2026

提问

服务配缩器 的替代品