A comprehensive weather MCP server with US alerts and global weather data.
- US Weather Alerts: Get active weather alerts for any US state using NWS API (free, no API key needed).
- Global Current Weather & Alerts: Get current weather and alerts for any city worldwide using OpenWeatherMap API (free API key required).
After cloning, run the following commands:
git clone <repo-url>
cd mcp_server_weather_agent
uv syncIf uv is not installed, install it first:
python -m pip install uvThe global weather tool uses OpenWeatherMap and requires a free API key for detailed weather and alerts.
Create a .env file in the project root with:
OPENWEATHER_API_KEY=your_api_key_hereAlternatively, set the variable directly in your shell:
export OPENWEATHER_API_KEY=your_api_key_hereGet your free key at OpenWeatherMap API.
Start the weather chat client:
uv run server/client.pyThis launches the interactive MCP chat client and connects to the weather server.
- "Get weather alerts for CA" (US state alerts)
- "What's the weather in Mumbai?" (global weather)
- "Weather in London" (global weather)
Both tools work simultaneously!
- Create Free API from groq
- Create Open API from OpenWeather
