Weather MCP Server (NWS)
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level: debug, info, warn, error, or silent. Logs go to stderr. | info |
| NWS_API_BASE | No | Override the NWS API base URL, normally only to test against a mock. | https://api.weather.gov |
| NWS_TIMEOUT_MS | No | Per-request timeout in milliseconds (1000–120000). | 15000 |
| NWS_USER_AGENT | No | Identifies your client to the NWS API. Adding a contact, e.g. my-app/1.0 (you@example.com), is good practice. | mcp-weather-server/1.0.0 (local MCP server) |
| NWS_MAX_RETRIES | No | Number of retries on network error, timeout, or 5xx responses (0–5). | 1 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Weather tools backed by the US National Weather Service. Coverage is limited to the United States and its territories. Use get_alerts with a 2-letter state code, and get_forecast with decimal coordinates.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_alertsA | Get active weather alerts (warnings, watches, advisories) issued by the US National Weather Service for a US state or territory. Returns event type, affected area, severity, description and instructions. |
| get_forecastA | Get the US National Weather Service forecast for a latitude/longitude inside the United States or its territories. Returns up to 7 days of 12-hour periods with temperature, conditions, wind speed and direction. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 2 tools
get_alerts and get_forecast target clearly different resources (alerts vs. forecasts) with distinct input parameters (state vs. lat/lon). No overlap in purpose.
Both follow a consistent get_noun pattern. Perfectly predictable.
Only 2 tools for a weather server is thin; a forecast-by-address or point-metadata lookup would round it out. Still, both tools earn their place and the scope is narrow.
Core forecast and alert retrieval are covered, but there's no way to resolve a place name or zip to lat/lon, forcing the agent to know coordinates. Hourly forecasts and historical data are also absent.