lookup_ip

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

Get geolocation and network info for any IP address (e.g., “8.8.8.8”). Returns city, region, country, coordinates, org, postal code, timezone.

Parameters

NameTypeRequiredDescription
ipstringyesIPv4 or IPv6 address to look up (e.g., “8.8.8.8”)

Example call

Arguments

{
  "ip": "8.8.8.8"
}

curl

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

TypeScript (@pipeworx/sdk)

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

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

More examples

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

Response shape

Always returns: ip, city, region, country, latitude, longitude, org, postal, timezone

FieldTypeDescription
ipstringThe IP address that was looked up
citystring | nullCity name associated with the IP address
regionstring | nullRegion or state associated with the IP address
countrystring | nullCountry code associated with the IP address
latitudenumber | nullLatitude coordinate of the IP geolocation
longitudenumber | nullLongitude coordinate of the IP geolocation
orgstring | nullOrganization or ISP name
postalstring | nullPostal code associated with the IP address
timezonestring | nullTimezone associated with the IP address
Full JSON Schema
{
  "type": "object",
  "properties": {
    "ip": {
      "type": "string",
      "description": "The IP address that was looked up"
    },
    "city": {
      "type": [
        "string",
        "null"
      ],
      "description": "City name associated with the IP address"
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "Region or state associated with the IP address"
    },
    "country": {
      "type": [
        "string",
        "null"
      ],
      "description": "Country code associated with the IP address"
    },
    "latitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "Latitude coordinate of the IP geolocation"
    },
    "longitude": {
      "type": [
        "number",
        "null"
      ],
      "description": "Longitude coordinate of the IP geolocation"
    },
    "org": {
      "type": [
        "string",
        "null"
      ],
      "description": "Organization or ISP name"
    },
    "postal": {
      "type": [
        "string",
        "null"
      ],
      "description": "Postal code associated with the IP address"
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ],
      "description": "Timezone associated with the IP address"
    }
  },
  "required": [
    "ip",
    "city",
    "region",
    "country",
    "latitude",
    "longitude",
    "org",
    "postal",
    "timezone"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026