IP2Location.Io MCP Server

IP2Location.io API integration to retrieve the geolocation information for an IP address.

Remote serverstreamable-http

What is the IP2Location.Io MCP server?

Ip2location.io mcp server connects IP2Location.Io to AI assistants that speak the Model Context Protocol. IP2Location.io API integration to retrieve the geolocation information for an IP address.

What IP2Location.Io does

This is a simple Model Context Protocol (MCP) server implementation for IP2Location.io API. It will return a detailed geolocation information for any given IPv4 or IPv6 address.

Key capabilities

  • Comprehensive Geolocation Data — Retrieves a wide range of information, including country, region, city, latitude, longitude, ZIP code, time zone, and more
  • Network Details — Provides network-related data such as ASN, ISP, domain, and network speed
  • Security Insights — Detects proxy information, including proxy type and provider
  • Simple Integration — Built as a FastMCP tool, allowing for easy integration into compatible systems
  • Asynchronous — Utilizes httpx for non-blocking asynchronous API requests

Installing the ip2location.io mcp server

Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.

Configuration

Before the server will start you need to supply 2 environment variables: IP2LOCATION_API_KEY, YOUR_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. IP2Location.Io sits in that group. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This is a hosted server — you point your client at an endpoint rather than running a local process, so there is nothing to keep updated on your machine.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the ip2location.io mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the IP2Location.Io MCP server

{
  "mcpServers": {
    "ip2location": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote@latest",
        "https://mcp.ip2location.io/",
        "--header",
        "X-API-Key:YOUR_API_KEY"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
IP2LOCATION_API_KEYCredential the server authenticates with.Yes
YOUR_API_KEYCredential the server authenticates with.Yes

Frequently asked questions

It connects IP2Location.Io to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with IP2Location.Io directly.