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
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | |
longitude | number | yes | |
start_date | string | yes | YYYY-MM-DD |
end_date | string | yes | YYYY-MM-DD |
hourly | string | no | |
daily | string | no | |
timezone | string | no |
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
| Field | Type | Description |
|---|---|---|
latitude | number | Query latitude |
longitude | number | Query longitude |
generationtime_ms | number | API response generation time in milliseconds |
utc_offset_seconds | integer | UTC offset in seconds for the requested timezone |
timezone | string | IANA timezone string |
elevation | number | Elevation of the location in meters |
hourly_units | object | Units for hourly variables |
hourly | object | Hourly historical data |
daily_units | object | Units for daily variables |
daily | object | Daily 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.