LabscoMCP early access ↗
CodeByWaqasMCP SERVER

OpenWeatherMap Weather MCP Server

Current conditions for a place, pulled from OpenWeatherMap in metric units.

by CodeByWaqas ↗Weather & Environmental ConditionsCommunity

LABSCO SUMMARY

One job, one key, metric only.

There is no unit switch and no forecast horizon to configure — it returns current conditions in metric, which is either exactly what you wanted or a conversion away. The one decision is where the key lives: the client env block keeps it out of the repository, the .env file is easier when several things share it.

What it is

A small weather server backed by the OpenWeatherMap API. Ask about a location and it returns the live reading rather than a forecast page: temperature, humidity, wind speed, sunrise and sunset times, and the conditions description.

What you get

  • Real-time weather for a location, returned as structured fields
  • Temperature in metric units — no unit argument to remember
  • Humidity and wind speed alongside it
  • Sunrise and sunset times for the location
  • The weather description in words, so an assistant can quote it directly

Requirements

Python 3.12 or higher and a free OpenWeatherMap API key. Published as weather-mcp-server version 0.1.0. Clone the repo, create a virtual environment, pip install -e ., then register uv with --directory pointing at src/resources, followed by run and server.py, with WEATHER_API_KEY in the entry's env. The key can also live in src/resources/.env.

Setup effort

Add the configuration to your client