Skip to main content
Glama

OpenWeatherMap MCP Server

by robertn702

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer port for HTTP transport3000
MCP_ENDPOINTNoHTTP endpoint path/stream
MCP_TRANSPORTNoTransport type: stdio or httpStreamstdio
OPENWEATHER_API_KEYNoYour OpenWeatherMap API key (required for stdio transport only)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
OpenWeatherMap API Documentation

Tools

Functions exposed to the LLM to take actions

NameDescription
get-current-weather

Get current weather conditions for a location

get-weather-forecast

Get weather forecast for up to 5 days

get-hourly-forecast

Get hourly weather forecast for up to 48 hours

get-daily-forecast

Get daily weather forecast for up to 8 days

get-minutely-forecast

Get minute-by-minute precipitation forecast for next hour

get-weather-alerts

Get active weather alerts and warnings

get-current-air-pollution

Get current air quality data

get-location-info

Get location information from coordinates (reverse geocoding)

get-onecall-weather

Get comprehensive weather data (current + 7-day forecast)

get-air-pollution

Get air quality index and pollution data

geocode-location

Convert location name to coordinates or vice versa

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robertn702/mcp-openweathermap'

If you have feedback or need assistance with the MCP directory API, please join our Discord server