mcpServer_weather

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

  1. Ensure .NET 8.0 or later is installed.
  2. Clone the repository.
  3. Build the project.
  4. 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