Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WEATHER_MCP_AUTHNonone or password. HTTP only.none
WEATHER_MCP_HOMENoHome location as latitude,longitude. Used when a tool is called with no place.
WEATHER_MCP_HOSTNoHTTP bind address.127.0.0.1
WEATHER_MCP_PORTNoHTTP bind port.18791
WEATHER_MCP_BASE_URLNoPublic URL; becomes the OAuth issuer. Required when AUTH=password.
WEATHER_MCP_PASSWORDNoShared password. Required when AUTH=password.
WEATHER_MCP_HOME_NAMENoWhat to call it in replies.Home
WEATHER_MCP_STATELESSNofalse restores per-client sessions.true
WEATHER_MCP_STATE_DIRNoWhere OAuth state is persisted.~/.weather-mcp
WEATHER_MCP_TRANSPORTNostdio or http.stdio
WEATHER_MCP_HOME_TIMEZONENoIANA zone for the home label. Optional; forecasts resolve it from the coordinates regardless.
WEATHER_MCP_WIND_SPEED_UNITNomph, kmh, ms or kn.mph
WEATHER_MCP_TEMPERATURE_UNITNofahrenheit or celsius.fahrenheit
WEATHER_MCP_PRECIPITATION_UNITNoinch or mm.inch

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_locationsA

Find the places a name could refer to, with coordinates and timezone.

Use this when a place name is ambiguous and the context does not settle it -- 'Springfield' is five US cities, 'Portland' two large ones - or when you want coordinates to pass to the other tools directly.

The other tools accept a place name themselves and do not need this first. Reach for it to disambiguate, not as a routine preliminary step.

get_forecastA

Daily weather forecast for a place: highs, lows, rain and wind, day by day.

The main tool. Answers "what is the weather doing this week", "how warm will it be in Boston next Tuesday", and "will it rain while I am there".

Give dates when you have them -- from a calendar event, say -- and they are read as local dates at the destination, not wherever this server is running. Give neither and it covers the next week starting from today at that location, which is the right anchor when the place is in another timezone.

Forecasts reach at most 16 days ahead; that is a limit of the data. For a trip further out, use get_typical_weather, which reports what the weather actually did on those dates in past years rather than pretending to predict.

get_hourly_forecastA

Hour-by-hour forecast for one day: when exactly the rain arrives.

Use this once the day matters more than the week -- "will it rain during the 2pm walk", "is the morning or the afternoon better for the drive". For a multi-day outlook use get_forecast instead; this returns 24 rows and is wasteful for a question about a week.

The day must be within the 16-day forecast horizon, and is read as a local date at the location.

get_typical_weatherA

What the weather actually did on these dates in past years. Not a forecast.

For trips beyond the 16-day forecast horizon, which is most trips at the point they get planned. Returns observed history: the average high and low for this window over recent years, the extremes, and how many of those years saw rain during it.

This is history and must be described as history. It says what to pack, not what will happen. Once the dates come within 16 days, get_forecast replaces it entirely — do not keep quoting averages when a real forecast exists.

The year is taken from the dates only to fix the calendar window; the summary always covers complete past years.

find_best_daysA

Rank the days ahead by how pleasant it will be outside. For planning a hike or similar.

Answers "when should I go", not "what is the weather". Use it when the user wants a day picked out of a range — a hike, a ride, a picnic, painting the fence — rather than the outlook for a day they have already chosen.

Days are scored over the hours actually spent outside (8am to 6pm by default), not over the whole day, because a daily high is one afternoon moment and a daily rain chance includes the hours you were asleep. The temperature scored is feels-like, which already accounts for humidity, wind chill and sun — so a muggy 85°F is correctly ranked below a dry one.

The ranking is a stated preference, not a measurement. Every day comes back with the numbers behind it — feels-like range, rain chance, wind, humidity — so report those alongside the pick rather than the score alone.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/duanefields/weather-mcp'

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