andresilvase

Weather MCP Server

Community andresilvase
Updated

Simple Weather MCP Server

Weather MCP Server

The weather-mcp-server is an MCP server that retrieves weather alerts and forecasts from the National Weather Service API.

Requirements

  • Node.js 18 or newer
  • An MCP-compatible client

Installation

npm install
npm run build

The compiled server is written to build/index.js.

MCP client configuration

Configure your MCP client to launch the built server over stdio. For example:

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

Replace the path with the absolute path to this project.

Used In

This MCP Server is being used in mcp-client.

Available tools

get_alerts

Returns active weather alerts for a US state.

Input:

  • state: two-letter state code, such as CA

get_forecast

Returns the forecast for a geographic location.

Input:

  • latitude: number from -90 to 90
  • longitude: number from -180 to 180

Data source

Weather data is provided by the National Weather Service API.

License

ISC

MCP Server · Populars

MCP Server · New