# NWS (National Weather Service) MCP

> NWS (National Weather Service) provides direct access to official, real-time U.S. weather data via this MCP. You can pull active watches and warnings nationwide or narrow them down by a specific area. It delivers detailed textual forecasts and hourly predictions for grid locations, plus the latest atmospheric readings from monitored stations across the country.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Tags:** meteorological-data, weather-forecast, real-time-alerts, geospatial-data, grid-points, environmental-monitoring

## Description

Need current weather info that you can trust? This connection pulls official data straight from the National Weather Service. Whether you're planning logistics routes or building an environmental dashboard, you get precise meteorological facts for any US location.

Your agent handles all the complexity: it first converts basic coordinates into the specific grid points needed by the NWS system. Then, it can fetch a full textual prediction and detailed hourly breakdowns for that spot. You don't just get general forecasts; you monitor critical alerts—like flood watches or heat advisories—for entire states or specific regions. Plus, you access real-time updates from physical weather stations, giving you the minute-by-minute status of temperature, wind, and visibility.

## Tools

### get_active_alerts_by_area
Finds active weather warnings and advisories that apply to a specific geographical region or state.

### get_active_alerts
Retrieves a complete list of every currently issued weather warning, nationwide.

### get_alert
Pulls all the specific details for one particular weather alert once you have its identifier.

### get_forecast
Gives a full, descriptive text prediction for a defined grid location.

### get_hourly_forecast
Outputs the predicted weather conditions hour by hour for a specific spot.

### get_latest_station_observation
Fetches the most recent set of atmospheric readings from a single, specified weather station.

### get_point
Converts latitude and longitude coordinates into official NWS grid points used for data lookup.

### get_station_observations
Retrieves historical or multiple sets of observations from a specific station over time.

### get_stations
Provides an overall list and catalog of all available weather observation stations in the region.

## Prompt Examples

**Prompt:** 
```
What is the weather forecast for coordinates 34.0522, -118.2437?
```

**Response:** 
```
I'll first find the NWS grid point for those coordinates... Found it: Office LOX, Grid (154, 44). Now fetching the forecast: It will be sunny today with a high near 75°F. Tonight, mostly clear with a low around 58°F.
```

**Prompt:** 
```
Are there any active weather alerts in Texas right now?
```

**Response:** 
```
Checking active alerts for Texas (TX)... I found 3 active alerts: a Heat Advisory for South Texas, a Flood Watch for the Coastal Bend, and a Special Weather Statement for the Panhandle. Would you like details on any of these?
```

**Prompt:** 
```
Get the latest weather observation for station KLAX.
```

**Response:** 
```
Fetching the latest data for KLAX (Los Angeles International Airport)... As of 10 minutes ago: Temperature is 68°F, Humidity is 62%, Wind is from the West at 12 mph, and Visibility is 10 miles.
```

## Capabilities

### Check for all active alerts
Retrieves a comprehensive list of current weather watches, warnings, and advisories across the entire U.S.

### Get localized area alerts
Filters active weather alerts to target specific geographic areas or states you define.

### Determine grid location from coordinates
Translates any latitude and longitude pair into the official NWS office and required data grid points.

### Retrieve detailed forecasts
Fetches comprehensive, written predictions for a specific grid point, including hourly breakdowns.

### Get real-time station readings
Pulls the latest atmospheric observations (wind speed, humidity, temp) directly from designated weather stations.

## Use Cases

### Optimizing outdoor event logistics
A festival planner asks their agent: 'What's the weather risk for our main park tomorrow?' The agent uses `get_hourly_forecast` and checks for active warnings via `get_active_alerts_by_area` to provide a detailed safety briefing, allowing them to reschedule equipment setup if wind speeds are forecast too high.

### Building a supply chain dashboard
A logistics company needs real-time visibility. They use `get_latest_station_observation` and `get_stations` to monitor weather conditions at all major transfer hubs, immediately flagging any station reporting high winds that might delay incoming shipments.

### Assessing risk before construction work
A civil engineer asks: 'Should we pour concrete near coordinates X, Y?' The agent uses `get_point` first to find the NWS grid and then runs a detailed query with `get_forecast`, advising on temperature ranges and potential freeze warnings.

### Developing geo-aware applications
A developer wants an app that alerts users. They use `get_active_alerts` to pull the full list of current national emergencies, then filter this data using `get_alert` to show only those relevant to a user's specific zip code.

## Benefits

- You get official data right from the source. Instead of relying on general weather sites, you use this MCP to pull validated alerts directly from the National Weather Service.
- Stop guessing about timing. With `get_hourly_forecast`, your agent gives you predictions hour by hour for a specific location, which is critical for scheduling operations.
- Planning travel? Use `get_active_alerts_by_area` to check if warnings are active in an entire state or region before you even map the route.
- Need current conditions? The `get_latest_station_observation` tool pulls live data, so you know exactly what's happening at a station right now—not just what it predicts.
- Coordinates to data: You never have to worry about NWS formatting. Use `get_point` first, and the MCP handles converting basic GPS coordinates into usable grid points automatically.

## How It Works

The bottom line is you get reliable, actionable weather intelligence without having to manually interact with government API portals.

1. You initiate a query by providing coordinates or an area name to find the correct NWS data grid point.
2. The MCP uses that grid point and location context to make specific calls, pulling whether it's a forecast, alerts list, or station observation feed.
3. Your agent receives structured, official weather data, ready for immediate use in your application or script.

## Frequently Asked Questions

**How do I check if there are any active weather alerts using the NWS MCP?**
You use `get_active_alerts`. This tool gives you a complete list of every current warning nationwide. You can then refine this data by running `get_active_alerts_by_area` to focus on a specific state.

**What is the difference between get_forecast and get_hourly_forecast?**
`get_forecast` provides a general, detailed textual description of the expected weather for the area. `get_hourly_forecast` gives you specific, time-stamped predictions (like temperature or wind speed) for each passing hour.

**Does NWS MCP need coordinates first?**
Yes, always run `get_point` first. This function takes your latitude and longitude and converts them into the official grid ID that the other forecasting tools require to pull data.

**How do I get current weather readings from a station?**
For a snapshot of conditions right now, use `get_latest_station_observation` and provide the specific station identifier. If you need historical or multiple observations, use `get_station_observations`.

**Can I get alerts for an entire state using NWS MCP?**
Yes, run `get_active_alerts_by_area`. This tool lets you filter the national warning list down to just the specific area or state you're interested in.