what is MCP Weather Server?
MCP Weather Server is a lightweight TypeScript and Node.js server that provides real-time weather alerts and forecast data using the National Weather Service API. It is built on the Model Context Protocol (MCP) to demonstrate how AI tools can consume external APIs.
how to use MCP Weather Server?
To use MCP Weather Server, you can invoke its API endpoints to get current weather alerts for a specific US state or to retrieve detailed weather forecasts based on geographic coordinates.
key features of MCP Weather Server?
get-alerts
: Returns current weather alerts for a given US state code (e.g., "CA" for California).get-forecast
: Provides a detailed weather forecast based on latitude and longitude.
use cases of MCP Weather Server?
- Receiving timely weather alerts for specific regions.
- Accessing detailed weather forecasts for planning outdoor activities.
- Integrating weather data into other applications or services.
FAQ from MCP Weather Server?
- What technology stack is used in MCP Weather Server?
The server is built using TypeScript and Node.js, utilizing the MCP SDK for tool communication and the NWS API for weather data.
- Is MCP Weather Server free to use?
Yes! MCP Weather Server is open-source and available for anyone to use.
- How can I contribute to MCP Weather Server?
You can contribute by visiting the GitHub repository and submitting pull requests or issues.
MCP Weather Server
A lightweight TypeScript + Node.js server built using the Model Context Protocol (MCP) to provide real-time weather alerts and forecast data using the National Weather Service API.
This is my first MCP tool, integrated with Claude Desktop and Cursor, and designed to demonstrate how AI tools can consume external APIs via tool invocation.
Features
get-alerts
Returns current weather alerts for a given US state code (e.g., "CA"
for California).
get-forecast
Returns a detailed weather forecast based on geographic coordinates (latitude
, longitude
).
🛠️ Tech Stack
Technology | Usage |
---|---|
TypeScript | Type-safe development |
Node.js | Backend runtime |
MCP SDK | Tool communication with Claude/Cursor |
Zod | Input schema validation |
NWS API | External weather data |