get_time_by_ip

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

Get the current date and time based on the geolocation of an IP address.

Parameters

NameTypeRequiredDescription
ipstringyesIPv4 or IPv6 address to look up

Example call

Arguments

{
  "ip": "8.8.8.8"
}

curl

curl -X POST https://gateway.pipeworx.io/timezone/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_time_by_ip","arguments":{"ip":"8.8.8.8"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_time_by_ip', {
  "ip": "8.8.8.8"
});

More examples

{
  "ip": "2001:4860:4860::8888"
}

Response shape

Always returns: datetime, timezone, utc_offset

FieldTypeDescription
datetimestringISO 8601 datetime in the IP’s timezone
timezonestringIANA timezone name for the IP geolocation
utc_offsetstringUTC offset in ±HH:MM format
Full JSON Schema
{
  "type": "object",
  "properties": {
    "datetime": {
      "type": "string",
      "description": "ISO 8601 datetime in the IP's timezone"
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone name for the IP geolocation"
    },
    "utc_offset": {
      "type": "string",
      "description": "UTC offset in ±HH:MM format"
    }
  },
  "required": [
    "datetime",
    "timezone",
    "utc_offset"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026