IP2Location.io MCP server for AI agents

Live

BEARER TOKEN

IP GEOLOCATION

Developer Tools

IP2Location.io gives your agent IP geolocation and domain lookups in your IP2Location.io account: look up the location, network, and proxy details of an IP address, list the domains hosted on it, and read WHOIS records.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
IP2Location.io
agent · Acme Q3
Run
Where is 8.8.8.8 located and which network does it belong to?
S
ip2locationio_ip_lookup
96ms
IP intelligence agent
Looked up 8.8.8.8 and returned its country, region, city, and network details.
Sources: IP2Location.io IP lookup, 1 address
ip2locationio
1 address
18:29
Message Claude...

Tools your IP geolocation agent reaches for on IP2Location.io, scoped per user.

CALL ANY TOOL
4 tools for IP geolocation in IP2Location.io: look up one or many IP addresses, list the domains hosted on an IP address, and read a domain's WHOIS record.
ip2locationio_domain_whois_get
Get domain whois
Look up the WHOIS record of a domain name through IP2WHOIS. Returns domain, domain_id, status, create_date, update_date, expire_date, domain_age, whois_server, registrar, registrant, admin, tech and billing contacts, and nameservers. Use this for domain ownership and expiry. Use ip2locationio_hosted_domains_list for the domains on an IP address.
Parameters
Name
Type
Required
Description
domain
string
Required
Domain name to look up, without a protocol or path. Example: locaproxy.com.
ip2locationio_hosted_domains_list
List hosted domains
ip2locationio_ip_bulk_lookup
Ip bulk lookup
ip2locationio_ip_lookup
Ip lookup
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// IP2Location.io tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ip2locationio"], toolNames: [
    "ip2locationio_ip_lookup",
    "ip2locationio_hosted_domains_list",
    "ip2locationio_domain_whois_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Look up this IP address, list the domains hosted on it, and show the WHOIS record for the first domain" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ip2locationio"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Look up this IP address, list the domains hosted on it, and show the WHOIS record for the first domain" }],
  tools,
});

// Execute the tool call with the user's vaulted IP2Location.io access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ip2locationio"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Look up this IP address, list the domains hosted on it, and show the WHOIS record for the first domain" }],
  tools,
});

// Tool call runs with the user's vaulted IP2Location.io access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ip2locationio"] }, pageSize: 100,
});

const agent = new Agent({
  name: "ip_intelligence_agent",
  model: "gemini-2.5-pro",
  instruction: "IP2Location.io tools scoped to this user",
  tools,
});

await agent.run("Look up this IP address, list the domains hosted on it, and show the WHOIS record for the first domain");
Try these prompts
Copy any prompt into your agent. Each maps directly to a IP2Location.io tool. Click to copy, paste into your agent, done.
IP lookups
Copy the prompt
Copied
Look up the location and network of 8.8.8.8.
Copy the prompt
Copied
Check whether this IP address is behind a proxy.
Copy the prompt
Copied
Look up these 20 IP addresses in one request.
Domains
Copy the prompt
Copied
List the domains hosted on 93.184.216.34.
Copy the prompt
Copied
Show the WHOIS record for example.com.
Copy the prompt
Copied
Find out when example.com was registered.
Security checks
Copy the prompt
Copied
Which country does this login IP come from?
Copy the prompt
Copied
Show the network details for this signup IP.
Copy the prompt
Copied
Which other sites share this server's IP address?
SEE HOW AUTH WORKS
Each user connects their own IP2Location.io access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
IP2Location.io
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
IP2Location.io
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
IP2Location.io
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
IP2Location.io
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other developer tools and analytics connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared IP2Location.io access token looks fine in a demo. In production every IP and WHOIS lookup looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
IP2Location.io today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access IP2Location.io as the user or through a shared access token?
As the user. Each user connects their own IP2Location.io access token once, and Scalekit sends it with every call. Audit logs attribute every IP and WHOIS lookup to that user, not a shared service account.
Where is the IP2Location.io access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in IP2Location.io?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the single lookup tools without ip2locationio_ip_bulk_lookup, which needs a paid plan. None of the 4 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes IP2Location.io access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which IP2Location.io tools need a paid plan?
ip2locationio_ip_bulk_lookup needs a paid IP2Location.io plan. Starter, Plus, and Security plans also add fields such as ISP, domain, usage type, and fraud score to the results of ip2locationio_ip_lookup.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""ip2locationio"": {
""url"": ""https://mcp.scalekit.com/ip2locationio"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.ip2locationio]
url = ""https://mcp.scalekit.com/ip2locationio""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""ip2locationio"": {
""url"": ""https://mcp.scalekit.com/ip2locationio"",
""type"": ""http""
}
}
}