mcp-weather-alert-tool

mcp-weather-alert-tool

3.2

If you are the rightful owner of mcp-weather-alert-tool 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.

This project demonstrates how to build an MCP tool using the FastMCP Python SDK, integrating with Claude Desktop to retrieve weather alerts by U.S. state.

The MCP Weather Alerts Tool is designed to implement a custom Model Context Protocol (MCP) server using the FastMCP Python SDK. It integrates with Claude Desktop to enable an AI assistant to retrieve real-time weather alerts from the api.weather.gov API. The tool fetches and returns structured information such as event, severity, description, and instructions for weather alerts. The project can be tested interactively via MCP Inspector, providing a seamless interface for debugging MCP endpoints. The tech stack includes tools like mcp[cli] for MCP server toolkit, httpx for async HTTP client operations, and uv for modern Python package management. The project is structured to facilitate easy setup and integration with Claude Desktop, allowing users to query weather alerts through a simple prompt.

Features

  • Implements a custom MCP server with FastMCP
  • Uses httpx to call real-time weather alerts from api.weather.gov
  • Returns structured information: event, severity, description, and instructions
  • Integrates with Claude Desktop
  • Can be tested interactively via MCP Inspector