# NWS MCP for AI Agents AI Agent Connect

> NWS (National Weather Service) MCP. This Connector connects your AI client to the official National Weather Service API to provide real-time weather data, forecasts, and active alerts for any location in the United States. It handles the complexity of grid mapping and station lookups so you can get accurate meteorological information instantly.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_ne6tHz4lmGpXaoc5GixPi8m4DNlh98lOLedZ7150/ai-agent-connect
- **Tags:** meteorological-data, weather-forecast, real-time-alerts, geospatial-data, grid-points, environmental-monitoring

## Description

The NWS (National Weather Service) MCP connects your agent to official government weather data for any location in the United States. Instead of jumping between different tabs to check for storm warnings or manual weather logs, you can ask your AI client for the current status of a specific city or a set of coordinates. This Connector handles the heavy lifting of translating your request into the specific grid points the National Weather Service uses. You can get detailed textual forecasts, hourly updates, and critical alerts for watches and warnings nationwide. This is a huge win for anyone who needs to stay ahead of moving weather patterns without the friction of manual searching. If you're building an application that needs live environmental context, this tool pulls the same data that professionals rely on. You can also monitor specific stations for real-time atmospheric readings like humidity and wind speed. Vinkius makes it easy to plug this into your existing workflow, so you can get official updates delivered directly into your conversation. It's about getting the right data at the right time without the copy-pasting.

## Tools

### get_active_alerts_by_area
Get active weather alerts for a specific state or region. This is useful for monitoring large geographic areas.

### get_active_alerts
Get all currently active weather alerts across the country. Use this to see a nationwide overview of weather hazards.

### get_alert
Get details for a specific weather alert. This provides the full context for a single warning or advisory.

### get_forecast
Get a textual forecast for a specific grid location. This gives you a clear summary of expected conditions.

### get_hourly_forecast
Get an hourly forecast for a specific grid location. This helps with precise timing for outdoor activities.

### get_latest_station_observation
Get the latest observation for a specific station. This provides real-time data like temperature and wind speed.

### get_point
Get NWS office and grid information for a latitude and longitude. This is the first step for mapping coordinates to weather data.

### get_station_observations
Get observations for a specific station. Use this to see a history of readings from a fixed location.

### get_stations
Get a list of all observation stations. This is helpful for finding the nearest weather station to a specific point.

## Prompt Examples

**Prompt:** 
```
Is it safe to drive through Florida right now?
```

**Response:** 
```
Checking active alerts for Florida (FL)...

I found 2 active alerts:
* **Flood Watch** for the Coastal Bend
* **Heat Advisory** for South Florida

Conditions are currently hazardous in those specific areas. Would you like me to check a different region or get more details on one of these?
```

**Prompt:** 
```
What's the weather like at LAX?
```

**Response:** 
```
Fetching the latest data for KLAX (Los Angeles International Airport)...

**Current Observations:**
* **Temperature:** 68°F
* **Humidity:** 62%
* **Wind:** West at 12 mph
* **Visibility:** 10 miles

Conditions are currently clear with a light breeze.
```

**Prompt:** 
```
Give me a 3-hour forecast for these coordinates: 34.05, -118.24
```

**Response:** 
```
I'll first find the NWS grid point for those coordinates... Found it: Office LOX, Grid (154, 44).

**Hourly Forecast:**
* **Next Hour:** Sunny, High 75°F
* **+1 Hour:** Sunny, High 74°F
* **+2 Hours:** Mostly sunny, High 73°F

It looks like clear skies will continue for the next few hours.
```

## Capabilities

### Map coordinates to grid points
Turn raw latitude and longitude into the specific NWS grid locations needed for accurate data.

### Fetch textual forecasts
Get detailed written summaries of the weather for a specific location.

### Get hourly weather updates
Retrieve a breakdown of how weather conditions will change hour by hour.

### Monitor active weather alerts
Check for active watches, warnings, and advisories in a specific state or area.

### Retrieve real-time station observations
Pull the latest atmospheric readings from specific weather stations.

## Use Cases

### Rerouting a delivery fleet
A logistics manager asks about alerts in a storm zone and uses `get_active_alerts_by_area` to see if a route is safe for trucks.

### Building a weather-aware app
A developer uses `get_point` to map user locations to NWS grids and then fetches data to display in a custom dashboard.

### Planning an outdoor event
A planner asks for the hourly forecast for a specific zip code using `get_hourly_forecast` to decide on a backup plan for a wedding.

### Analyzing climate trends
A data scientist pulls a list of stations with `get_stations` and then gathers observations for each to study local patterns.

## Benefits

- Get official government data directly. Use `get_active_alerts` to see verified warnings from the National Weather Service.
- Map coordinates to grid points. Use `get_point` to turn raw latitude and longitude into usable weather data.
- Plan your day with hourly details. Use `get_hourly_forecast` to see how weather conditions will change over the next several hours.
- Monitor specific states or areas. Use `get_active_alerts_by_area` to track weather in one region at a time.
- Access real-time station readings. Use `get_latest_station_observation` to see exact wind, temp, and humidity.
- Automate weather checks. Your agent can pull data automatically without you needing to visit multiple websites.

## How It Works

The bottom line is you get official government weather data delivered directly to your AI chat.

1. Subscribe to the NWS MCP on Vinkius.
2. Provide your required User-Agent string in the configuration.
3. Ask your agent for weather data in a specific city or coordinate.

## Frequently Asked Questions

**Can the NWS MCP give me real-time storm warnings?**
Yes, it pulls active watches, warnings, and advisories directly from the National Weather Service. You can ask your agent to check for alerts in a specific state or for the entire country.

**How does the NWS MCP handle different US states?**
You can query alerts by state code or area name. The Connector will filter the official government data to show you only what is happening in that specific region.

**Can I use the NWS MCP for my own weather app?**
Yes, this is a common use case. You can use the Connector to fetch official grid data and station observations to populate your own application's weather displays.

**Does the NWS MCP provide hourly updates?**
It does. The Connector can pull specific hourly forecasts for a grid location, allowing you to see how conditions are expected to change throughout the day.

**What kind of data does the NWS MCP pull from stations?**
It retrieves the latest atmospheric readings from specific weather stations, including temperature, humidity, wind speed, and visibility.

**Do I need a special key for the NWS MCP?**
No, it connects to the public NWS API. However, you will need to provide a User-Agent string in your configuration to comply with their service policies.

**How do I get a forecast for a specific latitude and longitude?**
First, use the `get_point` tool with your coordinates to find the office ID and grid coordinates (gridX, gridY). Then, pass those values into the `get_forecast` tool to receive the textual forecast.

**Can I check for active weather warnings in a specific state?**
Yes! Use the `get_active_alerts_by_area` tool and provide the two-letter state code (e.g., 'TX' for Texas or 'FL' for Florida) to see all current watches and warnings for that area.

**How do I see the current temperature at a specific airport?**
Use the `get_latest_station_observation` tool with the station's ICAO ID (e.g., 'KJFK' for New York JFK or 'KLAX' for Los Angeles International) to get the most recent atmospheric readings.