- Home
- MCP servers
- MCP OpenWeather Weather
MCP OpenWeather Weather
- go
15
GitHub Stars
go
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mschneider82-mcp-openweather": {
"command": "/home/YOURUSER/git/mcp-openweather/mcp-openweather",
"args": [],
"env": {
"OWM_API_KEY": "PUT_API_KEY_HERE"
}
}
}
}MCP Weather Service is a simple MCP server that provides current weather conditions and a 5-day forecast by querying the OpenWeatherMap API. It is useful for chat clients, agents, or workflows that need live weather data integrated into an MCP workflow without managing separate API calls.
How to use
The MCP Weather Service exposes weather data to an MCP client via the standard MCP integration. You can request current conditions and a 5-day forecast for a city, with configurable units and language support. Use an MCP client to invoke the weather tool with the city name and optional parameters to tailor the results to your needs.
How to install
Prerequisites: Go 1.20+ and an OpenWeatherMap API key.
-
Get an OpenWeatherMap API key from the OpenWeather API portal.
-
Clone the repository and navigate to the project directory.
``bash
git clone https://github.com/mschneider82/mcp-openweather.git
cd mcp-openweather
- Build the MCP Weather Service binary.
go build -o mcp-weather
- Optional: install via Smithery to integrate with Claude Desktop.
npx -y @smithery/cli install @mschneider82/mcp-openweather --client claude
Run the service locally
- Set your API key and run the built binary. The command path shown in the README is an example; adjust it to match your environment.
export OWM_API_KEY="PUT_API_KEY_HERE"
./mcp-weather