OpenWeather MCP Server

$uvx --from atlantis-open-weather-mcp start-weather-server --api-key your_key_here
README.md

Provides real-time weather data and forecasts for locations worldwide

OpenWeather MCP Server

This is a copy of https://github.com/Zippland/weather-mcp ported to uvx

Usage

1. Get an OpenWeatherMap API Key

Visit OpenWeatherMap and register an account to obtain an API key.

2. Use in MCP Client Configuration

Add the following configuration to your MCP-supported client:


{
  "mcpServers": {
    "openweather": {
      "command": "uvx",
      "args": [
        "--from",
        "atlantis-open-weather-mcp",
        "start-weather-server",
        "--api-key",
        "your key here"
      ]
    }
  }
}

3. Available Tools

get_weather

Get current weather and forecast for a specified location.

Parameters:

  • location: Location name, e.g., "Beijing", "New York", "Tokyo"
  • api_key: OpenWeatherMap API key (optional, will read from environment variable if not provided)
  • timezone_offset: Timezone offset in hours, e.g., 8 for Beijing, -4 for New York. Default is 0 (UTC time)
get_current_weather

Get current weather for a specified location.

Parameters:

  • location: Location name, e.g., "Beijing", "New York", "Tokyo"
  • api_key: OpenWeatherMap API key (optional, will read from environment variable if not provided)
  • timezone_offset: Timezone offset in hours, e.g., 8 for Beijing, -4 for New York. Default is 0 (UTC time)

Usage Example

AI assistant call example:

User: What's the weather like in Nuuk right now?

AI: Let me check the current weather in Nuuk for you.
[Calling get_current_weather("Nuuk",0)]

Current weather in Nuuk: 2°C, partly cloudy, humidity 65%, wind speed 3.5m/s.

Troubleshooting

If the server fails to start, check the URL and key

Tools (2)

get_weatherGet current weather and forecast for a specified location.
get_current_weatherGet current weather for a specified location.

Environment Variables

api_keyrequiredOpenWeatherMap API key

Configuration

claude_desktop_config.json
{"mcpServers": {"openweather": {"command": "uvx", "args": ["--from", "atlantis-open-weather-mcp", "start-weather-server", "--api-key", "your key here"]}}}

Try it

What's the weather like in Nuuk right now?
Give me the current weather and forecast for Tokyo.
What is the temperature and humidity in Beijing?
Check the weather in New York and adjust for the local timezone offset.

Frequently Asked Questions

What are the key features of OpenWeather MCP Server?

Real-time weather data retrieval. Global location support by name. Current conditions and temperature reporting. Weather forecasting capabilities. Timezone offset support for local time accuracy.

What can I use OpenWeather MCP Server for?

Checking current weather conditions in specific cities. Retrieving weather forecasts for travel planning. Monitoring humidity and wind speed for outdoor activities. Integrating live weather data into AI assistant workflows.

How do I install OpenWeather MCP Server?

Install OpenWeather MCP Server by running: uvx --from atlantis-open-weather-mcp start-weather-server --api-key your_key_here

What MCP clients work with OpenWeather MCP Server?

OpenWeather MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use OpenWeather MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free