MCP Catalogs
首页

mcp-server-weather-js

by hideya·13·综合分 33

Node.js 编写的 MCP 服务器,提供美国天气预报和警报功能。

weatherother
10
Forks
2
活跃 Issue
14 个月前
最近提交
2 天前
收录于

概述

这是一个简单的 MCP 服务器实现,专门用于获取美国的天气信息。它提供两个主要工具:'get-forecast' 基于纬度/经度坐标获取天气预报,以及 'get-alerts' 通过州代码检查天气警报。该服务器作为 npm 包分发,便于使用 npx 与 Claude Desktop 或其他兼容的 MCP 客户端集成。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:检查美国特定位置的天气预报
:接收特定州的天气警报
:将天气信息集成到 AI 工作流程中
:此服务器能提供美国以外地区的天气信息吗?
:天气数据多久更新一次?

什么时候选它

当您需要在AI工作流中对美国天气信息有轻量级需求时,选择此服务器。

什么时候不要选它

如果您需要美国以外的天气数据、历史天气信息或更详细的气象数据,请不要选择它。

此 server 暴露的工具

从 README 抽取出 2 个工具
  • get-alertsstate: string

    Get weather alerts for a US state

  • get-forecastlatitude: number, longitude: number

    Get weather forecast for a location in the US

可对比工具

mcp-server-openweathermapmcp-server-weather-apiweatherapi-mcp

安装

安装

  1. 安装 npm 包:
npm install @h1deya/mcp-server-weather
  1. 添加到 Claude Desktop 配置:

编辑你的 claude_desktop_config.json 并添加:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": [
        "-y",
        "@h1deya/mcp-server-weather"
      ],
    }
  }
}

FAQ

此服务器能提供美国以外地区的天气信息吗?
不能,此服务器专门设计用于提供美国的天气信息。
天气数据多久更新一次?
README 中未指定更新频率,但数据从天气 API 获取。

mcp-server-weather-js 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。