Weather MCP Server
About
A weather MCP server that provides weather forecasts and alerts using the National Weather Service API
Details
- Author
- choatehall
- Downloads
- 225
- Categories
- Media, API
Jump to
- Get weather forecasts for any US location using latitude and longitude.
- Get active weather alerts for any US state using two-letter state codes.
- Built on the .NET 8.0 runtime.
- Implements the Model Context Protocol (MCP) for client-server communication.
Ensure .NET 8.0 or later is installed, clone the repository, build with dotnet build, and run with dotnet run. The server exposes two tools—GetForecast and GetAlerts—which can be invoked through any MCP client such as Claude for Desktop.
Weather MCP Server
A C# implementation of a Model Context Protocol (MCP) server that provides weather information using the National Weather Service API.
Features
- Get weather forecasts for any location in the US using latitude and longitude
- Get active weather alerts for any US state using state codes
Tools
GetForecast
Get detailed weather forecast for a specific location. - Parameters: - latitude: Latitude of the location - longitude: Longitude of the locationGetAlerts
Get active weather alerts for a US state. - Parameters: - state: Two-letter state code (e.g., CA, NY)Setup
1. Make sure you have .NET 8.0 or later installed
2. Clone this repository
3. Build the project: dotnet build
4. Run the server: dotnet run
Usage
This MCP server can be used with any MCP client (like Claude for Desktop) to get weather information.
Dependencies
- .NET 8.0
- ModelContextProtocol.Server
- System.Net.Http.Json
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

