MCP Weather Server
by adhikasp
MCP Weather Server
A simple MCP server that provides hourly weather forecasts using the AccuWeather API.
Setup
- Install dependencies using
uv
:
Copy
- Create a
.env
file with your AccuWeather API key:
Copy
You can get an API key by registering at AccuWeather API.
Running the Server
Copy
API Usage
Get Hourly Weather Forecast
Response:
Copy
The API provides:
- Current weather conditions including temperature, weather description, humidity, and precipitation status
- 12-hour forecast with hourly data including:
- Relative time from current time
- Temperature in Celsius
- Weather description
- Precipitation probability, type, and intensity
You must be authenticated.
Provides hourly weather forecasts using the AccuWeather API, enabling users to access current weather conditions and detailed 12-hour forecasts tailored to specific locations.