forecast
Pack: open-meteo · Endpoint: https://gateway.pipeworx.io/open-meteo/mcp
“What’s the weather in [city]” / “weather forecast for [location]” / “will it rain tomorrow” / “temperature in [place] this week” / “wind / precipitation / humidity forecast” — global weather forecast up to 16 days ahead, hourly or daily, at any lat/lng. Returns temperature, precipitation, wind, humidity, cloud cover, weather codes by default; pass hourly/daily arg for custom variables. Free, keyless, no signup (Open-Meteo / ECMWF + national weather services). Pair with geocode to convert “Paris” → lat/lng first.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | |
longitude | number | yes | |
hourly | string | no | Comma-separated hourly variables. Default sensible set. |
daily | string | no | Comma-separated daily variables. Default sensible set. |
forecast_days | number | no | 1-16 (default 7) |
past_days | number | no | 0-92 (default 0) |
timezone | string | no | IANA timezone or “auto” |
temperature_unit | string | no | celsius (default) | fahrenheit |
wind_speed_unit | string | no | kmh | ms | mph | kn |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006,
"temperature_unit": "fahrenheit",
"forecast_days": 10
}
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":"forecast","arguments":{"latitude":40.7128,"longitude":-74.006,"temperature_unit":"fahrenheit","forecast_days":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('forecast', {
"latitude": 40.7128,
"longitude": -74.006,
"temperature_unit": "fahrenheit",
"forecast_days": 10
});
More examples
{
"latitude": 51.5074,
"longitude": -0.1278,
"hourly": "temperature_2m,precipitation,wind_speed_10m",
"daily": "weather_code,temperature_2m_max,temperature_2m_min",
"timezone": "Europe/London"
}
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 forecast data |
daily_units | object | Units for daily variables |
daily | object | Daily forecast 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 forecast 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 forecast 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.