forecast

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

Get a multi-step weather forecast (3-hour intervals) for a city or coordinates: temperature, conditions, wind speed, and precipitation probability over time. Example: forecast({ city: “Tokyo”, count: 8 })

Parameters

NameTypeRequiredDescription
citystringnoCity name, optionally with country code, e.g. “Tokyo” or “Tokyo,JP”. Provide this OR lat/lon.
latnumbernoLatitude. Use with lon instead of city.
lonnumbernoLongitude. Use with lat instead of city.
unitsstringnoTemperature units: “metric” (C, default), “imperial” (F), or “standard” (K).
countnumbernoNumber of 3-hour forecast steps to return (default 8 = next 24h, max 40 = 5 days).

Example call

Arguments

{
  "city": "Tokyo,JP",
  "count": 8,
  "_apiKey": "your-openweather-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/openweather/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"forecast","arguments":{"city":"Tokyo,JP","count":8,"_apiKey":"your-openweather-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('forecast', {
  "city": "Tokyo,JP",
  "count": 8,
  "_apiKey": "your-openweather-api-key"
});

More examples

{
  "lat": 35.6762,
  "lon": 139.6503,
  "count": 40,
  "units": "metric",
  "_apiKey": "your-openweather-api-key"
}

Connect

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

{
  "mcpServers": {
    "openweather": {
      "url": "https://gateway.pipeworx.io/openweather/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 2, 2026