Let your AI assistant look up IP geolocation, ISP, ASN, proxy signals, and more through the IP2Location.io MCP Server. Connect to our hosted endpoint or run the open-source server locally.
YOU: Where is 8.8.8.8 located?
MCP TOOL: get_geolocation
{
"ip": "8.8.8.8",
"country_code": "US",
"asn": "AS15169"
}
ASSISTANT: United States · Google network.
Explore the capabilities available through this IP2Location.io developer integration.
Retrieve country, region, city, coordinates, postal code and time zone when available.
Investigate network ownership, service providers, Autonomous Systems and connection attributes.
Explore proxy, VPN, Tor, data center and threat fields supported by your API plan.
Ask about several IP addresses in one prompt; supported plans can use the Bulk API.
Connect to the managed HTTP endpoint or run the open-source server with uvx.
Use IP intelligence in compatible AI clients and Python agent frameworks.
A clear view of the steps involved, from your preferred developer tool to the returned result.
Choose cloud-hosted HTTP, an npx bridge for stdio-only clients, or a local server. All examples use your own IP2Location.io API key.
For clients that support remote HTTP MCP servers. Add the URL and API key using the client's native remote-server settings; JSON configuration format differs by client.
{
"mcpServers": {
"ip2location": {
"type": "http",
"url": "https://mcp.ip2location.io/",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Keep your API key private and check the connection in your client after saving.
Add this configuration to claude_desktop_config.json, replace YOUR_API_KEY, and restart Claude Desktop. Node.js and npx are required.
{
"mcpServers": {
"ip2location": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://mcp.ip2location.io/",
"--header",
"X-API-Key:YOUR_API_KEY"
]
}
}
}
This method connects Claude Desktop to the hosted IP2Location.io MCP server through an npx bridge.
Install uv / uvx, supply your IP2Location.io API key, and restart your MCP client. Python 3.13+ is required by the repository.
{
"mcpServers": {
"ip2locationio": {
"command": "uvx",
"args": [
"mcp-ip2location-io"
],
"env": {
"IP2LOCATION_API_KEY": "YOUR_API_KEY"
}
}
}
}
The local server runs through uvx and uses the IP2LOCATION_API_KEY environment variable.
Run the following command in your terminal with Claude Code installed. Replace YOUR_API_KEY before executing.
claude mcp add --transport http ip2location https://mcp.ip2location.io/ --header "X-API-Key: YOUR_API_KEY"
This command registers the hosted IP2Location.io MCP server in Claude Code.
Add this configuration to your supported VS Code MCP settings. Verify your VS Code version and supported secret handling.
{
"servers": {
"ip2location": {
"type": "http",
"url": "https://mcp.ip2location.io/",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Use the remote HTTP MCP transport supported by your VS Code installation.
This configuration is intended for MCP clients supporting local stdio servers. Verify the configuration path and client-specific settings.
{
"mcpServers": {
"ip2location": {
"command": "npx",
"args": [
"-y",
"mcp-remote@latest",
"https://mcp.ip2location.io/",
"--header",
"X-API-Key:YOUR_API_KEY"
]
}
}
}
The npx bridge connects the client to the hosted IP2Location.io MCP endpoint.
Use the cloud-hosted endpoint for the simplest supported setup; no local Python environment required with native HTTP clients.
Sign up for a free IP2Location.io account and retrieve your API key.
Use direct HTTP for compatible clients or npx for clients that need a local stdio bridge.
https://mcp.ip2location.io/
Enable the MCP server in your client and try a natural-language prompt.
Where is 8.8.8.8 located?
The server exposes
get_geolocation
, which accepts one IP address or several addresses in a single string.
| Category | Tool / capability | Description |
|---|---|---|
| Tool |
get_geolocation
|
Fetch geolocation and network data for one or multiple IPv4/IPv6 addresses. |
| Required argument |
ip
(string)
|
Single IP or several IPs separated by commas, spaces or new lines. |
| Example |
8.8.8.8
|
Single-IP lookup. |
| Example |
1.1.1.1, 8.8.8.8
|
Multiple-IP lookup; Bulk API access requires an eligible paid plan. |
| Location | Geolocation fields | Country, region, district, city, ZIP/postal code, coordinates and time zone. |
| Network | ISP & ASN fields | ISP, ASN, AS name and other network attributes where available. |
| Security | Proxy & threat fields | Plan-dependent proxy, VPN, Tor, data center and risk intelligence. |
| Output | JSON string | Single-IP data or an object keyed by IP address for multiple-IP results. |
Copy these examples into your terminal or connected AI assistant.
Ask for geographic context.
Where is 8.8.8.8 located? Include country and city.
Get network context.
Find the ISP and ASN associated with 1.1.1.1.
Query an IPv6 address.
Look up 2001:4860:4860::8888.
Use plan-dependent security fields.
What proxy information is available for 8.8.8.8?
A few quick checks before you dig into GitHub issues.
Verify the client configuration and restart the application.
Verify the endpoint, HTTPS access and HTTP transport support. For npx, check Node.js and the bridge command.
Check your API key and the data included in your plan.
Bring the MCP server into your preferred AI workflow and Python agent stack.
Download the server source, install uv, add the local launch configuration in
claude_desktop_config.json
, and restart Claude Desktop.
uv --directory /path/to/ip2locationio/src run server.py
View the open-source MCP project and browse community server directories. These are listings, not a claim of native or managed hosting.
Answers to common questions about this integration.
MCP is a protocol that allows compatible AI clients to discover and invoke tools from connected servers. The IP2Location.io MCP server exposes IP intelligence through a tool named
get_geolocation
.
Yes. Compatible clients can connect to
https://mcp.ip2location.io/
over streamable HTTP. For stdio-only clients, use the
mcp-remote
bridge through npx.
An API key is recommended and required by the hosted setup examples. The underlying REST API supports limited keyless access, but the documented MCP setup uses an API key.
Yes. The
ip
argument supports IPv4 and IPv6, including multiple addresses separated by commas, spaces or new lines. Bulk IP API access requires an eligible paid plan.
You can use the server with MCP-compatible clients, subject to each client’s supported transport and configuration format. Choose direct HTTP where supported or an npx bridge/local stdio configuration otherwise.
Available attributes depend on your subscription plan and the information available for each address. Advanced proxy, threat and mobile data are not guaranteed on every lookup.
No. IP geolocation estimates the geographic association of an IP address; it does not provide the precise physical location of a person or device.
Continue with official source code, setup instructions and developer documentation.
Connect directly to the hosted MCP server or run it locally.