Weather Alert & Forecast MCP Tool
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weather Alert & Forecast MCP Toolget alerts for California"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
httpxfor non-blocking API calls.Formatted Output: Readable string output ideal for chatbot integration or quick CLI access.
Related MCP server: NWS Weather MCP Server
👷️ 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.pyThe 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides weather forecast and alert data for US locations through the National Weather Service API, enabling access to real-time weather alerts by state and detailed forecasts by coordinates.Last updated
- Flicense-qualityDmaintenanceProvides weather alerts for US states and geographic forecasts by leveraging the National Weather Service (NWS) API. It is built with Node.js and TypeScript, featuring a layered architecture and Zod-based input validation.Last updated
- Flicense-qualityDmaintenanceProvides weather forecasts and alerts for US locations using the National Weather Service API. Features secure access via GitHub authentication and supports coordinate-based forecasts and state-specific weather alerts.Last updated
- Alicense-qualityDmaintenanceProvides weather alerts and forecasts for US locations using the National Weather Service API.Last updated97GPL 3.0
Related MCP Connectors
Get US weather forecasts, active alerts, and current observations.
US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.
US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rafaysherwani/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server