Enables environment variable management for storing and accessing API keys securely
Used for MCP Protocol specification and repository hosting, allowing users to contribute to the project through pull requests
Provides the agent framework for the weather alert system, enabling interactive conversation with memory and structured function calling
🌦️ MCP Weather Alert Agent
A lightweight AI agent powered by MCP (Modular Connector Protocol) that fetches real-time weather alerts for any U.S. state using the National Weather Service API.
✨ Features
- 🤖 AI Chat Interface - Interactive conversation with memory
- 🌪️ Real-time Weather Alerts - Live data from National Weather Service
- ⚡ Fast Inference - Powered by Groq LLM via LangChain
- 🔧 MCP Integration - Built with
mcp
,mcp-use
, andFastMCP
- 🛠️ Tool-based Architecture - Structured function calling
🎯 Quick Example
🚀 Getting Started
Prerequisites
- Python 3.8+
- Groq API key (Get one here)
Installation
- Clone the repository
- Create virtual environment
- Install dependencies
- Set up environment variables
🛠️ Usage
Option 1: Interactive Chat Agent
Option 2: MCP Dev Server (for testing)
Opens MCP Inspector for tool testing and debugging.
Option 3: MCP Inspector (Visual Interface)
🔧 API Reference
get_alerts(state: str) -> str
Fetches active weather alerts for a U.S. state.
Parameters:
state
(str): Two-letter state code (e.g., "CA", "TX", "NY")
Returns:
- Formatted string with current weather alerts or "No active alerts"
Example:
🧪 Example Interactions
🌐 Tech Stack
Component | Technology |
---|---|
MCP Framework | MCP Protocol |
LLM | Groq |
Agent Framework | LangChain |
Weather API | National Weather Service |
Development | FastMCP |
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
👩💻 Author
Mokshada Raibagkar
⭐ Star this repo if it helped you!
Made with ❤️ and ☕
This server cannot be installed
A lightweight AI agent that fetches real-time weather alerts for any U.S. state using the National Weather Service API.
Related MCP Servers
- -securityFlicense-qualityA lightweight microservice that fetches weather alerts and forecasts from the National Weather Service API, providing U.S. state-level alerts and location-based forecasts.Last updated -Python
- -securityFlicense-qualityA standardized API server that enables AI agents and client applications to fetch current weather information for any location without directly interacting with external weather APIs.Last updated -Python