# Weather [Health: Active]

**Category:** 🌳 Environment & Nature  
**Repository:** https://github.com/Thx93/mcp-weather-server  
**GitHub Stars:** 1  
**npm Downloads (last month):** 300  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/weather-17

## Description
US weather for AI agents: active NWS alerts by state, 5-period forecasts by lat/lon. Paid per call.

## Tools
Capabilities this server exposes over MCP:

- **get-alerts** — Get active weather alerts for a US state. Give the two-letter state code (for example CA or NY) and get every active National Weather Service alert for it: the event type, the area it covers, its severity, what is happening, and the official instruction. US locations only. No API key and no account: discovery is free, a call costs $0.01 in USDC on Base via x402, and nothing is charged when the request returns no data. Free tools: health and tools/list.
- **get-forecast** — Get the weather forecast for a point on the map. Give latitude and longitude and get the next five forecast periods for it: the period name, its temperature, wind speed and direction, and the plain-language forecast. US locations only. No API key and no account: discovery is free, a call costs $0.01 in USDC on Base via x402, and nothing is charged when the request returns no data. Free tools: health and tools/list.
- **health** — Check that the service is up. Costs nothing.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What Weather does

Weather exposes National Weather Service data through MCP tools intended for AI clients. It covers two focused tasks:

- `get-alerts` retrieves every active alert for a US state from a two-letter state code. Results include the event, affected area, severity, description, and official instruction.
- `get-forecast` retrieves up to five forecast periods for a US coordinate. Each period includes its name, temperature, wind speed, wind direction, and plain-language forecast.
- `health` checks whether the service is available and is free to call.

The weather tools are read-only and do not change data. Their output uses object-shaped schemas: alerts are returned under `alerts`, while forecasts are returned with `latitude`, `longitude`, and `periods` fields.

## How it works

The server requests data from `api.weather.gov`, the National Weather Service API. The API is US-only, keyless, and does not require an account. Locations outside its coverage return a failed tool result instead of an inferred forecast.

Local installations communicate with an MCP host over standard input and output. A hosted copy is available at `https://agent-evidence.thx93.dev/weather/mcp` over streamable HTTP. The hosted service exposes the same alert and forecast tools, along with free discovery through `health` and `tools/list`.

Requests to the weather tools have a 10-second timeout. Upstream failures, timeouts, invalid coverage, and similar problems are represented as MCP tool results with `isError: true`, allowing a client to display the failure or retry without treating it as a JSON-RPC protocol failure. Missing values from the NWS response are rendered as `Unknown` rather than the literal string `null`.

## Setup and configuration

Use Node.js 24 or newer and npm for a local installation. From the package, install dependencies, build the project, and launch the compiled entry point:

```bash
npm install
npm run build
node build/index.js
```

The process is designed to be started by an MCP host rather than run interactively. A client can launch the published package with:

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

The repository can also be installed directly from GitHub; its install preparation step builds the server. No API key, account, or environment variable is needed for local use.

The hosted endpoint charges 0.01 USDC per `get-alerts` or `get-forecast` call on Base through x402. Calls that return no data are not charged. Service discovery and health checks are free. Running the server locally has no per-call service charge.

## Tools and capabilities

`get-alerts` requires a two-letter US state code such as `CA` or `NY`. It returns all active NWS alerts for that state rather than selecting a single alert.

`get-forecast` requires a latitude and longitude. It limits the response to the next five forecast periods, keeping the result bounded for agent context windows.

Both weather tools advertise read-only and non-destructive annotations. They also declare that they access an external, open-world data source. Structured content and output schemas are provided for clients that consume typed tool results.

## Limitations and notes

Coverage is limited to the United States and its territories supported by the National Weather Service. The service reports NWS data and does not add an independent weather judgment. Forecast and alert calls depend on the availability and response time of `api.weather.gov`.

The hosted endpoint requires x402-compatible payment handling for paid weather calls. The local server uses the free NWS API and does not require payment credentials.

The project is licensed under ISC.

_Full upstream README: https://allmcps.com/mcp/weather-17/readme_

