
Weather MCP Server
A weather MCP server that provides weather forecasts and alerts using the National Weather Service API
What is Weather MCP Server?
Weather MCP Server is a C# implementation of a Model Context Protocol (MCP) server that provides weather information using the National Weather Service API.
How to use Weather MCP Server?
To use the Weather MCP Server, ensure you have .NET 8.0 or later installed, clone the repository, build the project using dotnet build
, and run the server with dotnet run
. It can be accessed by any MCP client to retrieve weather data.
Key features of Weather MCP Server?
- Get weather forecasts for any location in the US using latitude and longitude.
- Get active weather alerts for any US state using state codes.
Use cases of Weather MCP Server?
- Providing real-time weather updates for applications.
- Sending alerts for severe weather conditions to users.
- Integrating weather data into other software solutions.
FAQ from Weather MCP Server?
- What programming language is used for Weather MCP Server?
Weather MCP Server is implemented in C#.
- Is there a specific version of .NET required?
Yes, .NET 8.0 or later is required to run the server.
- Can this server be used with any MCP client?
Yes, it can be used with 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 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