Skip to main content
Glama
brockly

weather-mcp-server

by brockly

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather data from the National Weather Service API. Built following the MCP TypeScript server guide.

Tools

get_alerts

Get active weather alerts for a US state.

Parameter

Type

Description

state

string

Two-letter state code (e.g. CA, NY)

get_forecast

Get the weather forecast for a location by coordinates.

Parameter

Type

Description

latitude

number

Latitude (-90 to 90)

longitude

number

Longitude (-180 to 180)

Note: Only US locations are supported by the NWS API.

Related MCP server: MCP Weather Server

Setup

npm install
npm run build

Usage with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

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

Usage with Claude Code

Add to your Claude Code settings:

claude mcp add weather node /absolute/path/to/weather/build/index.js

Development

npm install
npm run build
npm start

License

MIT

A
license - permissive license
-
quality - not tested
C
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.

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/brockly/weather-mcp-server'

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