Weather Alerts is an MCP server that retrieves active meteorological warnings across the United States using the National Weather Service (NWS) API. Built with Python 3.12 and FastMCP, the server connects language models and MCP clients directly to official government weather data. Developers, analysts, and automated assistant users employ this server to inject localized weather hazard information into their conversational workflows. It enables client applications to check real-time weather advisories, watches, and warnings on demand by providing a standard two-letter state abbreviation. In addition to weather fetching capabilities via its dedicated tool, the server includes a simple echo resource designed for testing connectivity and server responsiveness. Because it runs on asynchronous Python and uses modern project tooling, it integrates neatly into client environments such as Claude Desktop or local testing setups utilizing the MCP Inspector.
Category: Maps, Weather & Local Data
Tags: alerts, meteorology, nws, weather
sh git clone https://github.com/shubhechhadey/mcpproject cd mcpproject 2. Install the project dependencies using uv: sh uv pip install -r uv.lock 3. To test or run the server with MCP Inspector, execute: sh uv run mcp dev server/weather.py 4. To configure Claude Desktop, edit claude_desktop_config.json and add the server definition under mcpServers using your local path to uv and server/weather.py: json { "mcpServers": { "weather": { "command": "uv", "args": ["run", "--with", "mcp[cli]", "mcp", "run", "server/weather.py"] } } }Part of MCP Servers
Weather Alerts allows MCP clients to query real-time active alerts from the National Weather Service API for any US state. It exposes a get_alerts tool that accepts two-letter state codes and provides an echo resource for connection testing.
Install Python 3.12 and uv, clone the repository from GitHub, and run uv pip install -r uv.lock. You can run the server locally using uv run mcp dev server/weather.py or register it with Claude Desktop.
Weather Alerts works with any client compatible with the Model Context Protocol. It has verified support for Claude Desktop and the MCP Inspector testing interface via local stdio process execution.
The get_alerts tool requires a two-letter US state postal code as its input argument, such as CA for California or NY for New York, to fetch relevant local advisories.