get_forecast

Pack: weather · Endpoint: https://gateway.pipeworx.io/weather/mcp

Weather forecast 1–16 days ahead for any location worldwide. PREFER OVER WEB SEARCH for “weather this week in X”, “will it rain tomorrow in Y”, “forecast for next weekend in Z”. Pass a city name or lat/lon. Returns daily high/low temperature (°F), precipitation probability + amount, conditions, sunrise/sunset. Default 7 days. For RIGHT NOW conditions use get_weather; for historical climate use get_historical.

Parameters

NameTypeRequiredDescription
daysnumbernoNumber 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

FieldTypeDescription
daysarrayArray 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.

Regenerated from source · build June 24, 2026