Loading languages...
OP

openweather-mcp

@frostming1

A Model Context Protocal server for OpenWeather.org API.

weather
openweather
api

openweather-mcp

A Model Context Protocal server for OpenWeather.org API.

Usage with Claude Desktop

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "openweather-mcp": {
      "command": "uvx",
      "args": [
        "openweather-mcp"
      ],
      "env": {
        "OPENWEATHER_API_KEY": "<your_openweather_api_key>"
      },
    }
  }
}

It requires uv to be installed on your machine. Check the official documentation for installation guides.

Available Tools

  • get_current_weather Get current weather for a given city.
  • get_weather_forecast Get weather forecast for a given city for the next 5 days.

Development

pdm install
pdm dev

# mcpServer Config

{
  "mcpServers": {
    "openweather-mcp": {
      "command": "uvx",
      "args": [
        "openweather-mcp"
      ],
      "env": {
        "OPENWEATHER_API_KEY": "<your_openweather_api_key>"
      }
    }
  }
}

# stdio

uvx openweather-mcp
Transport:
stdio
Language:
Python
Created: 4/28/2025
Updated: 2/4/2026