historical

Pack: open-meteo · Endpoint: https://gateway.pipeworx.io/open-meteo/mcp

“What was the weather on [date]” / “historical weather for [location]” / “temperature in [city] last summer” / “rainfall during [period]” / “past weather data” — ERA5 reanalysis covering 1940-present at any global lat/lng. Returns hourly or daily temperature, precipitation, wind, humidity etc. for any date range. Use for climate analysis, retrospective event weather, or training data.

Parameters

NameTypeRequiredDescription
latitudenumberyes
longitudenumberyes
start_datestringyesYYYY-MM-DD
end_datestringyesYYYY-MM-DD
hourlystringno
dailystringno
timezonestringno

Example call

Arguments

{
  "latitude": 48.8566,
  "longitude": 2.3522,
  "start_date": "2023-01-01",
  "end_date": "2023-12-31"
}

curl

curl -X POST https://gateway.pipeworx.io/open-meteo/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"historical","arguments":{"latitude":48.8566,"longitude":2.3522,"start_date":"2023-01-01","end_date":"2023-12-31"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('historical', {
  "latitude": 48.8566,
  "longitude": 2.3522,
  "start_date": "2023-01-01",
  "end_date": "2023-12-31"
});

More examples

{
  "latitude": 35.6762,
  "longitude": 139.6503,
  "start_date": "2020-06-01",
  "end_date": "2020-08-31",
  "daily": "temperature_2m_max,precipitation_sum"
}

Response shape

FieldTypeDescription
latitudenumberQuery latitude
longitudenumberQuery longitude
generationtime_msnumberAPI response generation time in milliseconds
utc_offset_secondsintegerUTC offset in seconds for the requested timezone
timezonestringIANA timezone string
elevationnumberElevation of the location in meters
hourly_unitsobjectUnits for hourly variables
hourlyobjectHourly historical data
daily_unitsobjectUnits for daily variables
dailyobjectDaily historical data
Full JSON Schema
{
  "type": "object",
  "properties": {
    "latitude": {
      "type": "number",
      "description": "Query latitude"
    },
    "longitude": {
      "type": "number",
      "description": "Query longitude"
    },
    "generationtime_ms": {
      "type": "number",
      "description": "API response generation time in milliseconds"
    },
    "utc_offset_seconds": {
      "type": "integer",
      "description": "UTC offset in seconds for the requested timezone"
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone string"
    },
    "elevation": {
      "type": "number",
      "description": "Elevation of the location in meters"
    },
    "hourly_units": {
      "type": "object",
      "description": "Units for hourly variables",
      "additionalProperties": {
        "type": "string"
      }
    },
    "hourly": {
      "type": "object",
      "description": "Hourly historical data",
      "properties": {
        "time": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "ISO 8601 timestamps"
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "daily_units": {
      "type": "object",
      "description": "Units for daily variables",
      "additionalProperties": {
        "type": "string"
      }
    },
    "daily": {
      "type": "object",
      "description": "Daily historical data",
      "properties": {
        "time": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "ISO 8601 date strings"
        }
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "open-meteo": {
      "url": "https://gateway.pipeworx.io/open-meteo/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026