current_weather

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

Get the current weather for a city or coordinates: temperature, “feels like”, conditions, humidity, wind speed, and cloud cover. Example: current_weather({ city: “London”, units: “metric” })

Parameters

NameTypeRequiredDescription
citystringnoCity name, optionally with country code, e.g. “London” or “London,GB”. 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).

Example call

Arguments

{
  "city": "London",
  "units": "metric",
  "_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":"current_weather","arguments":{"city":"London","units":"metric","_apiKey":"your-openweather-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('current_weather', {
  "city": "London",
  "units": "metric",
  "_apiKey": "your-openweather-api-key"
});

More examples

{
  "lat": 51.5074,
  "lon": -0.1278,
  "units": "imperial",
  "_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