Weather Alerts

by shubhechhadey

Not rated
GitHub

About

Provides real-time weather alerts for US states using the National Weather Service API.

Details

Author
shubhechhadey
Categories
Cloud Service, Other, API

Setup

Install Weather Alerts in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/shubhechhadey/mcpproject

Follow the installation instructions in the repository README, then restart your MCP client.

Provides real-time weather alerts for US states using the National Weather Service API.

It is a Python application that provides real-time weather alerts for US states using the National Weather Service (NWS) API. It leverages themcpframework (with FastMCP) and is designed for modern async Python workflows. The project is fully managed withuvfor dependency management and task running.

- Weather Alerts Tool:Fetches and formats active weather alerts for any US state.
- Echo Resource:Simple echo endpoint for testing.
- Async & Modern:Uses Python 3.12+ and async/await patterns.
- MCP Inspector:Visual tool to inspect and test your MCP tools and resources.

. ├── main.py # Simple entry point (prints a message) ├── pyproject.toml # Project metadata and dependencies ├── uv.lock # Locked dependencies for reproducible installs ├── server/ │ └── weather.py # Main server logic and weather tool/resource ├── .venv/ # (optional) Virtual environment ├── .python-version # Python version pin (3.12) ├── .gitignore # Standard Python ignores └── README.md # Project documentation

- Python 3.12+
- uv(install withpip install uvif not already installed)

git clone <your-repo-url> cd mcpproject

Or, if you want to install frompyproject.toml:

To start the MCP development server for the weather tool:

This will also openMCP Inspectorin your browser—a visual tool to explore and test your MCP tools and resources interactively.

To install the weather tool for use as an MCP tool:

With the dev server running, you can use the MCP Inspector or an MCP-compatible client to call theget_alertstool:

- Tool name:get_alerts
- Argument:Two-letter US state code (e.g.,CA,NY)

You can also use the weather alerts tool in Claude Desktop, as shown below:

Weather alerts for California displayed in Claude Desktop using theget_alertstool.

To call this MCP server from Claude Desktop, you need to update yourclaude_desktop_config.jsonfile to include the server For example:

{ { "mcpServers": { "weather": { "command": "C:\\Users\\shubhechhadey\\.local\\bin\\uv.EXE", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "C:\\Users\\shubhechhadey\\projects\\mcpproject\\server\\weather.py" ] } } } }

Fetches precipitation forecast data for a specific location using the Buienradar service.

Query weather information and meteorological warnings for Chinese cities using the QWeather API.

A server for fetching weather information using the OpenWeather API.

Provides hourly weather forecasts using the AccuWeather API.

Access global weather forecasts and historical data through the Open-Meteo API.

Access global weather data and forecasts using the OpenMeteo API, including current conditions, historical data, and location search.

Provides comprehensive weather data and forecasts using the OpenWeatherMap API.

An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.

An MCP server for accessing real-time weather data and forecasts.

Provides weather information using the free and open-source Open-Meteo API. No API key required.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.