Weather MCP Server
by choatehall
A C# implementation of a Model Context Protocol (MCP) server that provides weather information using the National Weather Service API. It allows users to retrieve weather forecasts and active weather alerts for locations within the US.
Last updated: N/A
What is Weather MCP Server?
This is a Model Context Protocol (MCP) server built in C# that retrieves weather data from the National Weather Service (NWS) API. It provides weather forecasts and active weather alerts for locations in the United States.
How to use Weather MCP Server?
To use this server, you need to clone the repository, build the project using .NET 8.0 or later, and run the server. Then, use an MCP client (like Claude for Desktop) to send requests to the server using the 'GetForecast' and 'GetAlerts' tools.
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
Uses the National Weather Service API
Built with C# and .NET 8.0
Use cases of Weather MCP Server
Integrating weather information into a chatbot or virtual assistant
Providing weather data to other applications via the MCP protocol
Creating a weather-aware application
Displaying weather information in a user interface
FAQ from Weather MCP Server
What is MCP?
What is MCP?
Model Context Protocol, a protocol for communication between applications.
What is the National Weather Service API?
What is the National Weather Service API?
A service that provides weather data.
What .NET version is required?
What .NET version is required?
.NET 8.0 or later.
How do I get the latitude and longitude?
How do I get the latitude and longitude?
Use a mapping service like Google Maps.
What state codes are supported?
What state codes are supported?
Two-letter US state codes (e.g., CA, NY).