mcpServer_weather
0
This project is a C# based Model Context Protocol server that offers weather forecasts and alerts for the US using the National Weather Service API. It is designed to work with MCP clients to provide timely weather information.
Weather MCP Server
A C# implementation of a Model Context Protocol (MCP) server providing weather information via the National Weather Service API.
Features
- Get weather forecasts for any US location using latitude and longitude.
- Retrieve active weather alerts for any US state using state codes.
Tools
GetForecast
Get detailed weather forecast for a specific location.
GetAlerts
Retrieve active weather alerts for a US state.
Setup
- Ensure .NET 8.0 or later is installed.
- Clone the repository.
- Build the project.
- Run the server.
Usage
The server can be used with any MCP client to get weather information.
Dependencies
- .NET 8.0
- ModelContextProtocol.Server
- System.Net.Http.Json