Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • HeFeng Weather MCP Server
  • Weekly Weather
  • Etherscan MCP Tool
  • Image Processor MCP Server
  • GHAS MCP server GitHub Advanced Security
Back to MCP Servers
Weather Alert  Forecast MCP Tool

Weather Alert Forecast MCP Tool

Public
Rafaysherwani/MCP

Provides asynchronous access to U.S. state-level weather alerts and precise location-based forecasts via the National Weather Service API using Model Context Protocol for efficient, formatted output ideal for chatbot and CLI integration.

python
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with Weather Alert Forecast MCP Tool

MCP Server

Unlock the full potential of Weather Alert Forecast MCP Tool through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

mcp_AI

🌤️ Weather Alert & Forecast MCP Tool

A lightweight microservice using FastMCP that fetches weather alerts and forecasts from the National Weather Service API. This tool provides U.S. state-level alerts and location-based forecasts.


🚀 Features

  • Get Active Alerts: Fetch active weather alerts for any U.S. state using its two-letter abbreviation.
  • Get Forecast: Retrieve the upcoming weather forecast for a specific latitude and longitude.
  • Asynchronous Requests: Efficient use of httpx for non-blocking API calls.
  • Formatted Output: Readable string output ideal for chatbot integration or quick CLI access.

👷️ Installation

pip install httpx pip install mcp # Or your local FastMCP package

📦 Usage

Make sure you have Python 3.9+ and mcp installed.

python weather.py

The MCP server will start and listen for commands using the stdio transport.


🧰 Available Tools

get_alerts(state: str)

Fetch active weather alerts for a U.S. state.

Arguments:

  • state: Two-letter state code (e.g., CA, TX, NY)

Returns:
A formatted string of current alerts or a message if none are available.


get_forecast(latitude: float, longitude: float)

Fetch a detailed forecast for a specific location.

Arguments:

  • latitude: Latitude of the location (e.g., 37.7749)
  • longitude: Longitude of the location (e.g., -122.4194)

Returns:
Up to 5 periods of detailed forecast data (e.g., "Tonight", "Monday").


🧪 Example Output

Alert Example:

Event: Flood Warning  
Area: San Joaquin County  
Severity: Moderate  
Description: Flooding is expected in low-lying areas...  
Instructions: Turn around, don’t drown...

Forecast Example:

Tonight:
Temperature: 54°F
Wind: 10 mph NW
Forecast: Clear skies with calm wind.

---
Monday:
Temperature: 68°F
Wind: 5 to 10 mph W
Forecast: Sunny and warm.

📟 License

This project is licensed under the MIT License.

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • HeFeng Weather MCP Server
    HeFeng Weather MCP Server

    Provides real-time and extended weather forecasts for locations in China using Model Context Protoco...

    1 tools
    Added May 30, 2025
  • Weekly Weather
    Weekly Weather

    Provides 8-day global weather forecasts and current conditions with detailed hourly and daily data, ...

    Added May 30, 2025
  • Etherscan MCP Tool
    Etherscan MCP Tool

    Provides Model Context Protocol functionality to retrieve token total supply by address and chain ID...

    6 tools
    Added May 30, 2025
  • Image Processor MCP Server
    Image Processor MCP Server

    A TypeScript-based Model Context Protocol server enabling creation, access, and summarization of tex...

    2 tools
    Added May 30, 2025
  • GHAS MCP server GitHub Advanced Security
    GHAS MCP server GitHub Advanced Security

    Provides Model Context Protocol (MCP) integration for GitHub Advanced Security by enabling read-only...

    Added May 30, 2025