get_forecast
Pack: weather · Endpoint: https://gateway.pipeworx.io/weather/mcp
Get 7-10 day weather forecast for trip planning. Returns daily high/low temperatures, precipitation chance, and conditions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
latitude | number | yes | Latitude of the location |
longitude | number | yes | Longitude of the location |
days | number | no | Number of forecast days (1-16, default 7) |
Example call
Arguments
{
"latitude": 40.7128,
"longitude": -74.006
}
curl
curl -X POST https://gateway.pipeworx.io/weather/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_forecast","arguments":{"latitude":40.7128,"longitude":-74.006}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_forecast', {
"latitude": 40.7128,
"longitude": -74.006
});
More examples
{
"latitude": 34.0522,
"longitude": -118.2437,
"days": 10
}
Response shape
Always returns: days
| Field | Type | Description |
|---|---|---|
days | array | Array of daily forecast objects |
Full JSON Schema
{
"type": "object",
"properties": {
"days": {
"type": "array",
"description": "Array of daily forecast objects",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "Date in YYYY-MM-DD format"
},
"high_f": {
"type": "number",
"description": "High temperature in Fahrenheit"
},
"low_f": {
"type": "number",
"description": "Low temperature in Fahrenheit"
},
"precipitation_mm": {
"type": "number",
"description": "Precipitation sum in millimeters"
},
"conditions": {
"type": "string",
"description": "Weather condition description from WMO code"
}
},
"required": [
"date",
"high_f",
"low_f",
"precipitation_mm",
"conditions"
]
}
}
},
"required": [
"days"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"weather": {
"url": "https://gateway.pipeworx.io/weather/mcp"
}
}
}
See Getting Started for client-specific install steps.