MCPHIVE

OpenWeatherMap MCP: Documentation

Updated:

Connection

npx mcp-openweathermap (stdio by default) or HTTP transport, switched via the MCP_TRANSPORT variable. Auth: an OpenWeatherMap API key — for stdio, passed as OPENWEATHER_API_KEY; for HTTP, as a Bearer token in the request header.

Capabilities

Data via a single comprehensive OneCall endpoint: current weather, a 5-day forecast, hourly forecast (up to 48 hours), daily forecast (up to 8 days), minute-by-minute precipitation forecast, active storm alerts, real-time air quality index, reverse geocoding and address-to-coordinates conversion.

Agent flow

"What's the weather in Kazan right now and for the next 48 hours?", "are there any storm alerts for this region?", "what's the current air quality index downtown?".

Note

A community project (by robertn702, MIT), not an official OpenWeatherMap product. OpenWeatherMap's free tier limits request frequency and forecast depth — some data is only available on paid OWM plans.