mcp-ip2location-io

v1.1.1
io.github.ip2location/mcp-ip2location-io Checked 3 days ago Published 6 months ago

IP Geolocation MCP server that query the geolocation information using IP2Location.io API.

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

Values you need

VariableWhat it is
IP2LOCATION_API_KEYrequired secret Your IP2Location.io API key for detailed geolocation information.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mcp-ip2location-io -e 'IP2LOCATION_API_KEY=<IP2LOCATION_API_KEY>' -- uvx --with 'mcp<2' mcp-ip2location-io==1.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-ip2location-io": {
      "args": [
        "--with",
        "mcp<2",
        "mcp-ip2location-io==1.1.1"
      ],
      "command": "uvx",
      "env": {
        "IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-ip2location-io": {
      "args": [
        "--with",
        "mcp<2",
        "mcp-ip2location-io==1.1.1"
      ],
      "command": "uvx",
      "env": {
        "IP2LOCATION_API_KEY": "<IP2LOCATION_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "IP2LOCATION_API_KEY",
      "id": "ip2location-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-ip2location-io": {
      "args": [
        "--with",
        "mcp<2",
        "mcp-ip2location-io==1.1.1"
      ],
      "command": "uvx",
      "env": {
        "IP2LOCATION_API_KEY": "${input:ip2location-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-ip2location-io]
command = "uvx"
args = ["--with", "mcp<2", "mcp-ip2location-io==1.1.1"]
env = { "IP2LOCATION_API_KEY" = "<IP2LOCATION_API_KEY>" }

For AI agents

  1. Ask the user for: IP2LOCATION_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: get_geolocation.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json