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:从 -9090 的数字

  • longitude:从 -180180 的数字

数据源

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

许可证

ISC

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Get US weather forecasts, active alerts, and current observations.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andresilvase/weather-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server