Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-ipgeolocation-ipgeolocation-io-mcp": {
"command": "npx",
"args": [
"-y",
"ipgeolocation-io-mcp"
],
"env": {
"IPGEOLOCATION_API_KEY": "<YOUR_VALUE>",
"IPGEOLOCATION_MCP_CACHE_TTL_MS": "300000",
"IPGEOLOCATION_MCP_MAX_BULK_ITEMS": "1000",
"IPGEOLOCATION_REQUEST_TIMEOUT_MS": "15000",
"IPGEOLOCATION_MCP_MAX_ERROR_CHARS": "4000",
"IPGEOLOCATION_MCP_MAX_RESULT_ITEMS": "250",
"IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES": "500",
"IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS": "200000"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| IPGEOLOCATION_API_KEY secret | Yes | Your IPGeolocation.io API key for most tools. get_my_ip works without a key. API access and credits depend on your plan. |
| IPGEOLOCATION_MCP_CACHE_TTL_MS | No | Optional. Leave empty for 300000 ms (5 minutes). Sets normal-response expiry and pagination idle expiry; successful page reads extend snapshot expiry. Range: 1000 to 3600000 ms. Default: 300000 |
| IPGEOLOCATION_MCP_MAX_BULK_ITEMS | No | Optional. Leave empty for 1000. The effective batch limit is the lower of this and IPGEOLOCATION_MCP_MAX_RESULT_ITEMS, which defaults to 250. Larger batches fail before an API call. Range: 1 to 50000. Default: 1000 |
| IPGEOLOCATION_REQUEST_TIMEOUT_MS | No | Optional. Leave empty for 15000 ms (15 seconds). Sets the upstream request deadline, including response-body reading. Range: 1000 to 120000 ms. Default: 15000 |
| IPGEOLOCATION_MCP_MAX_ERROR_CHARS | No | Optional. Leave empty for 4000 characters per error message. The complete response byte budget can shorten messages further. Range: 200 to 50000. Default: 4000 |
| IPGEOLOCATION_MCP_MAX_RESULT_ITEMS | No | Optional. Leave empty for 250 bulk items. Sets the bulk input and result ceiling and caps IPGEOLOCATION_MCP_MAX_BULK_ITEMS. Nested response arrays remain complete. Range: 1 to 50000. Default: 250 |
| IPGEOLOCATION_MCP_CACHE_MAX_ENTRIES | No | Optional. Leave empty for 500 cache entries. Counts normal responses and pagination snapshots, not bytes. Range: 10 to 5000. Default: 500 |
| IPGEOLOCATION_MCP_MAX_RESPONSE_CHARS | No | Optional. Leave empty for 200000 UTF-8 bytes per tool result, including text and structured content. Oversized successes use cached pages; oversized errors shorten messages. Range: 10000 to 2000000. Default: 200000 |