dorianlgs/weather-mcp-auth
3.1
If you are the rightful owner of weather-mcp-auth and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple MCP weather server using FastMCP and the National Weather Service API.
Tools
2
Resources
0
Prompts
0
Weather MCP Server
A simple MCP (Model Context Protocol) weather server written in Python using FastMCP and the National Weather Service API.
Features
- Weather Alerts: Get active weather alerts for any US state
- Weather Forecasts: Get detailed weather forecasts for specific coordinates
- FastMCP Integration: Built with FastMCP for easy MCP tool registration
- NWS API: Uses the official National Weather Service API
Tools
get_alerts(state: str)
Get weather alerts for a US state.
Parameters:
state: Two-letter US state code (e.g., "CA", "NY", "TX")
get_forecast(latitude: float, longitude: float)
Get weather forecast for specific coordinates.
Parameters:
latitude: Latitude coordinatelongitude: Longitude coordinate
Installation
This project uses uv for dependency management.
- Install dependencies:
uv sync
Usage
Run the MCP server:
uv run weather.py
The server will start and listen for MCP connections.
Requirements
- Python 3.10+
- uv package manager
Dependencies
httpx>=0.28.1- HTTP client for API requestsmcp[cli]>=1.2.0- Model Context Protocol implementation
API
This server uses the National Weather Service API which provides free access to weather data for the United States.