mcp-server-client-demo

mcp-server-client-demo

0

The Weather MCP Server is a Model Context Protocol server that provides timely weather information using the National Weather Service API. It supports state-specific weather alerts and location-based forecasts, featuring TypeScript for enhanced maintainability.

Weather MCP Server

A server (Model Context Protocol) that provides weather information via the National Weather Service (NWS) API.

Features

  • Retrieve weather alerts by state
  • Weather forecasts by geographic coordinates
  • Support for GeoJSON formats
  • TypeScript interface for better maintainability

Prerequisites

  • Node.js (v16 or higher)
  • npm or yarn
  • TypeScript
  • ts-node (for running in development)

Usage

The server exposes two main tools:

  1. Retrieve weather alerts for a state with a two-letter code (e.g., "CA", "NY").

  2. Retrieve weather forecasts for a location with latitude and longitude.