Skip to main content
Glama

Weather MCP Server

一个从 National Weather Service API 获取天气警报和预报的 MCP 服务器。

要求

  • Node.js 18 或更新版本

  • 兼容 MCP 的客户端

Related MCP server: @cyanheads/nws-weather-mcp-server

安装

npm install
npm run build

编译后的服务器将写入 build/index.js。

MCP 客户端配置

配置你的 MCP 客户端,使其通过 stdio 启动编译后的服务器。例如:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["/absolute/path/to/weather/build/index.js"]
    }
  }
}

将该路径替换为此项目的绝对路径。

可用工具

get_alerts

返回美国某个州的当前天气警报。

输入:

  • state:两个字母的州代码,例如 CA

get_forecast

返回某个地理位置的天气预报。

输入:

  • latitude:从 -90 到 90 的数字

  • longitude:从 -180 到 180 的数字

数据源

天气数据由 National Weather Service API 提供。

许可证

ISC

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers