mcp-ip2location-io
v1.1.1IP 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
| Variable | What it is | |
|---|---|---|
IP2LOCATION_API_KEY | required 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.1Add 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
- Ask the user for: IP2LOCATION_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_geolocation.
- 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