get_timezone

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

Look up the IANA timezone name, current local time, and UTC offset (hours) for a given latitude and longitude via TimeAPI.io. Requires coordinates — does not accept city names.

Parameters

NameTypeRequiredDescription
latitudenumberyesLatitude
longitudenumberyesLongitude

Example call

Arguments

{
  "latitude": 40.7128,
  "longitude": -74.006
}

curl

curl -X POST https://gateway.pipeworx.io/geo/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_timezone","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_timezone', {
  "latitude": 40.7128,
  "longitude": -74.006
});

More examples

{
  "latitude": 51.5074,
  "longitude": -0.1278
}

Response shape

Always returns: timezone, local_time, utc_offset_hours

FieldTypeDescription
timezonestringIANA timezone name
local_timestringCurrent local time in ISO format
utc_offset_hoursnumberUTC offset in hours (may include decimal for minutes)
Full JSON Schema
{
  "type": "object",
  "properties": {
    "timezone": {
      "type": "string",
      "description": "IANA timezone name"
    },
    "local_time": {
      "type": "string",
      "description": "Current local time in ISO format"
    },
    "utc_offset_hours": {
      "type": "number",
      "description": "UTC offset in hours (may include decimal for minutes)"
    }
  },
  "required": [
    "timezone",
    "local_time",
    "utc_offset_hours"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build July 22, 2026