Weather MCP Server
# Weather MCP Server
A Model Context Protocol (MCP) server providing weather information from the National Weather Service API. This server implements MCP tools that can be used by AI models to retrieve weather forecasts and alerts.
## What is Model Context Protocol?
The Model Context Protocol (MCP) enables AI models to access external data and services through a standardized interface. This weather MCP server offers AI models the ability to retrieve real-time weather information for locations in the United States.
## Features
- **Weather Alerts**: Get active weather alerts for any US state
- **Weather Forecasts**: Get detailed weather forecasts for any US location by coordinates
- **MCP Compatible**: Implements the Model Context Protocol for easy integration with AI systems
## Installation
```bash
npm install
```
## Build
```bash
npm run build
```
## Running the Server
```bash
npm start
```
## Development
```bash
npm run dev
```
## Tools Available
### get-alerts
Gets active weather alerts for a US state.
Parameters:
- `state`: Two-letter state code (e.g., CA, NY)
### get-forecast
Gets weather forecast for a location.
Parameters:
- `latitude`: Latitude of the location (-90 to 90)
- `longitude`: Longitude of the location (-180 to 180)
## How It Works
This server connects to the National Weather Service (NWS) API to fetch real-time weather data. It communicates using the Model Context Protocol over stdio, allowing AI models to seamlessly access weather information during conversations.
## License
See the [LICENSE](LICENSE) file for details.TDQS
Scored across 2 tools
get-alerts and get-forecast target clearly different resources (alerts vs. forecast) with no overlap in intent. An agent can trivially choose between them based on whether it needs warnings or a prediction.
Both tools follow the same verb_noun kebab-case pattern (get-alerts, get-forecast). There is no mixing of conventions or verb styles.
Two tools is on the thin side for a weather domain, which typically includes current conditions, hourly forecasts, and location lookup. The surface is coherent but feels minimal rather than well-scoped.
Alerts and forecast cover two core weather use cases, but there are notable gaps: no current observations, no location/geocoding resolution, and no way to specify forecast granularity (hourly vs. daily). Agents needing present conditions would hit a dead end.