get_time_by_ip
Pack: timezone · Endpoint: https://gateway.pipeworx.io/timezone/mcp
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_time_by_ip for the schema, then POST the same URL with its arguments for the data.
Get the current date and time for the timezone of an IP address (resolved via ip-api.com → timeapi.io).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ip | string | yes | IPv4 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
| Field | Type | Description |
|---|---|---|
datetime | string | ISO 8601 datetime in the IP’s timezone |
timezone | string | IANA timezone name for the IP geolocation |
utc_offset | string | UTC 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.