OpenWeather

OpenWeather

Interact with the free openweathermap API to get the current and forecast weather for a location.

13
Stars
11
Forks
0
Releases

Overview

MCP Weather Service provides a straightforward MCP integration that fetches weather data from the free OpenWeatherMap API. It exposes two core capabilities: current weather conditions for a given city and a 5-day forecast. The service supports configurable units (Celsius, Fahrenheit, Kelvin) and multi-language descriptions, enabling usage in diverse locales. It is built as a Go-based MCP server and requires Go 1.20+ and an OpenWeatherMap API key (provided via the OWM_API_KEY environment variable). Installation steps include cloning the repository, building the binary, and an optional Smithery installation path for Claude Desktop users. Configuration is done through environment variables, specifically OWM_API_KEY. The MCP usage pattern uses the standard tool interface with city (required), units (optional: c|f|k), and lang (optional: en|de|fr|...). Example responses demonstrate the current conditions and forecast details, such as temperature, humidity, wind, pressure, and sunrise/sunset timestamps. Error handling mentions common failures like missing API key, invalid city, and network timeouts. This service is intended for developers and MCP integrators who want to incorporate weather data into MCP-powered workflows and agents.

Details

Owner
mschneider82
Language
Go
License
MIT License
Updated
2025-12-07

Features

Current weather conditions

Provides up-to-date current weather data for a specified city.

5-day weather forecast

Returns a 5-day forecast with daily temperature details.

Configurable units

Supports Celsius, Fahrenheit, or Kelvin for temperature reporting.

Multi-language support

Offers locale options (e.g., en, de, fr) for weather descriptions.

Simple MCP integration

Designed to be easily plugged into MCP workflows via the standard tool and parameters.

Audience

DevelopersBuild MCP-powered integrations to retrieve current weather and 5-day forecasts for a location using OpenWeatherMap.
MCP integrators / bot buildersEmbed weather data into MCP workflows and agents, with multi-language support and configurable units.

Tags

weatherOpenWeatherMapMCPcurrent weather5-day forecastunitslanguageintegrationSmithery