MCP-Server-Example

Bhumi18/MCP-Server-Example

3.2

If you are the rightful owner of MCP-Server-Example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Weather Server is a tool that provides weather data using the National Weather Service API.

Tools
  1. get-alerts

    Get weather alerts for a U.S. state

  2. get-forecast

    Get weather forecast for a specific latitude and longitude

🌦️ MCP Weather Server

This project implements a simple Model Context Protocol (MCP) server that provides weather data tools using the National Weather Service (NWS) API.

It includes two MCP tools:

  • get-alerts: Get weather alerts for a U.S. state
  • get-forecast: Get weather forecast for a specific latitude and longitude

🚀 Features

  • Built using the @modelcontextprotocol/sdk
  • Uses zod for input validation
  • Communicates over stdio for integration with AI agents (e.g. Ember, Devin)
  • Fetches real-time weather data from the U.S. National Weather Service

🛠️ Requirements

  • Node.js (v18 or higher recommended)
  • npm or yarn