Purpose
mcp-server-iplocate is an MCP (Model Context Protocol) server that connects IPLocate.io's IP address intelligence capabilities to MCP-compatible AI clients, for querying an IP address's geolocation, network information, privacy and security detection, company data, and abuse contacts.
Main capabilities
The server provides the following tools:
- Retrieve comprehensive information about an IP address, including geolocation, network information, privacy, and company data; the ip parameter is optional, and when not provided, information about the caller's own IP is returned.
- Query geolocation: country, city, coordinates, time zone, postal code, etc.
- Privacy and security detection: determine whether it is a VPN, proxy, or other anonymizing service, whether it is on an abuse blacklist, and whether it is a hosting provider; returns VPN status, proxy detection, Tor exit node status, and hosting provider information.
- Query network and ASN information: ASN details, network range, ISP information, regional registry.
- Query company/organization information: company name, domain, country, organization type.
- Retrieve abuse contact information: email, phone, address, and network range for reporting malicious activity.
The server also provides preset prompts to assist with common IP analysis tasks:
- Analyze the security risks of an IP, including VPN, proxy, Tor usage, and abuse history.
- Retrieve detailed geographic information for an IP.
- Investigate the owner and operator of an IP.
- Compare the geographic and network information of two IPs.
Usage
Quick start requires Node.js 18 or higher, as well as a compatible MCP client (such as Cursor, Claude Desktop). Configuration is divided into one-click setup and manual configuration:
Cursor manual configuration: create the configuration in the project directory:
mkdir -p .cursor
touch .cursor/mcp.json
Add to .cursor/mcp.json:
{
"mcpServers": {
"iplocate": {
"command": "npx",
"args": ["-y", "@iplocate/mcp-server"],
"env": {
"IPLOCATE_API_KEY": "your_api_key_here"
}
}
}
}
Replace your_api_key_here with your actual API key from IPLocate.io.
Claude Desktop configuration: open settings (macOS: Cmd + ,; Windows: Ctrl + ,), go to the "Developer" tab and click "Edit Config", then add the IPLocate server configuration above.
VS Code configuration: create the configuration:
mkdir -p .vscode
touch .vscode/mcp.json
Add to .vscode/mcp.json:
{
"servers": {
"iplocate": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@iplocate/mcp-server"],
"env": {
"IPLOCATE_API_KEY": "your_api_key_here"
}
}
}
}
Replace your_api_key_here with your actual API key from IPLocate.io.
API key: without an API key, a maximum of 50 requests per day. Registering a free API key at IPLocate.io increases the free quota to 1,000 requests per day. Registration steps: visit https://iplocate.io/signup Create a free account and get an API key from the dashboard. The server automatically reads the key from the IPLOCATE_API_KEY environment variable, configures it in the MCP client settings, or sets it when running manually.
Running the server manually: If you need to run it manually (for development or testing), you can use npx (recommended), install from npm, install from source, and use auto-reload during development. You can use MCP Inspector to test the server.
Use cases
Suitable for scenarios that require quickly querying intelligence such as IP geolocation, network ownership, privacy risks, and abuse contacts through an AI client, for example security analysis, network troubleshooting, content localization, and compliance investigations.
Limitations
Usage requires Node.js 18 or later and a compatible MCP client. When no API key is configured, the daily request limit is 50; a free key allows 1,000 per day. The project uses the MIT license. For the full response structure and details of the IPLocate API, please refer to the IPLocate API documentation.