MCP Weather Server

MCP Weather Server

By aditi-joshi-usc GitHub

-

mcp-weather-server weather-alerts
Overview

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?

  1. Receiving timely weather alerts for specific regions.
  2. Accessing detailed weather forecasts for planning outdoor activities.
  3. 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.

Content

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

TechnologyUsage
TypeScriptType-safe development
Node.jsBackend runtime
MCP SDKTool communication with Claude/Cursor
ZodInput schema validation
NWS APIExternal weather data

No tools information available.

-

mcp-weather-server weather
View Details

-

mcp-weather-server weather
View Details
mcp-weather-server
mcp-weather-server by MiesnerJacob

An example Model Context Protocol server that provides weather data to LLMs.

mcp-weather-server weather-data
View Details