agent515/us-weather-mcp
3.1
If you are the rightful owner of us-weather-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A simple Model Context Protocol (MCP) server for fetching weather forecasts and alerts using the US National Weather Service (NWS) API.
Tools
2
Resources
0
Prompts
0
Weather MCP Service
A simple Model Context Protocol (MCP) server for fetching weather forecasts and alerts using the US National Weather Service (NWS) API.
Features
- Get current weather alerts for any US state.
- Get a 5-period weather forecast for any latitude/longitude in the US.
Usage
Requirements
- Python 3.10+
Installation
Install uv if you don't have it:
pip install uv
# or
curl -Ls https://astral.sh/uv/install.sh | sh
Install dependencies (from pyproject.toml):
uv pip install .
Running the Server
uv run weather.py
The server runs using MCP over stdio.
API Tools
get_alerts(state: str): Get active weather alerts for a US state (e.g., "CA").get_forecast(latitude: float, longitude: float): Get a weather forecast for a given location.
License
MIT