About Weather MCP Server
A C# MCP server using the National Weather Service API to provide US weather information. It is for MCP clients that need forecasts by coordinates and active alerts by state code.
Key features
- 01Get forecasts by latitude and longitude
- 02Get alerts by state code
- 03Uses National Weather Service API
- 04Implemented in C#
Use cases
- 01Check a US location's weather forecast
- 02Check active alerts for a US state
MCP support
The MCP server exposes tools for weather forecasts and alerts to clients, using the National Weather Service API.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather 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 location
GetAlerts
Get active weather alerts for a US state.
- Parameters:
- state: Two-letter state code (e.g., CA, NY)
Setup
- Make sure you have .NET 8.0 or later installed
- Clone this repository
- Build the project:
dotnet build - 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.