Ghosst141/weather-mcp-server
3.1
If you are the rightful owner of weather-mcp-server 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.
The Weather MCP Server is a Python-based server that provides weather data tools using the Model Context Protocol.
Tools
2
Resources
0
Prompts
0
Weather MCP Server - README
This is a Python MCP Server that provides weather data tools (get_alerts, get_forecast) via the Model Context Protocol.
1. Prerequisites
- Python 3.10+ installed
- National Weather Service API (no API key required)
2. Setup
- Create & activate virtual environment
python -m venv .venv
source .venv/bin/activate # Linux/Mac
.venv\Scripts\activate # Windows
- Install dependencies
pip install -r requirements.txt
- Run MCP server
python weather_server.py
It should start listening at:
http://127.0.0.1:8000
3. Provided Tools
get_alerts(state)
Fetches active weather alerts for a US state.
- Args:
state(string, 2-letter state code) - Returns: Formatted string of alerts
get_forecast(latitude, longitude)
Fetches a 5-period weather forecast for a location.
-
Args:
latitude(float)longitude(float)
-
Returns: Formatted forecast string