IPLocate
STDIOOfficialMCP server providing comprehensive IP address intelligence including geolocation, network information, and security analysis
MCP server providing comprehensive IP address intelligence including geolocation, network information, and security analysis
An MCP (Model Context Protocol) server for IPLocate.io - providing comprehensive IP address intelligence including geolocation, network information, privacy detection, and abuse contacts.
This MCP server provides tools to look up detailed information about IP addresses:
To follow our quick start setup instructions, you will need:
The easiest way to use this MCP server is through your MCP client. Simply configure your client with the setup instructions below:
One-click setup:
Manual configuration:
In your project directory, create the configuration:
mkdir -p .cursor touch .cursor/mcp.json
Add the following 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.
Open Claude Desktop settings
Cmd + ,Ctrl + ,Go to the "Developer" tab and click "Edit Config"
Add the IPLocate server configuration:
{ "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.
Create the VS Code MCP configuration:
mkdir -p .vscode touch .vscode/mcp.json
Add the following 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.
The server provides the following tools:
lookup_ip_address_detailsGet comprehensive information about an IP address including all available data.
Parameters:
ip (optional): IPv4 or IPv6 address to look up. If not provided, returns information about the caller's IP address.Example:
{ "ip": "8.8.8.8" }
Returns: All available data about the IP address, including geolocation, network information, privacy, and company data.
lookup_ip_address_locationGet geographic location information for an IP address.
Parameters:
ip (optional): IPv4 or IPv6 address to look up.Returns: Country, city, coordinates, timezone, postal code, and more.
lookup_ip_address_privacyCheck whether an IP address is detected as a VPN, proxy, other anonymizing service; is on an abuse blocklist; or is a hosting provider.
Parameters:
ip (optional): IPv4 or IPv6 address to look up.Returns: VPN status, proxy detection, Tor exit node status, hosting provider information.
lookup_ip_address_networkGet network and ASN (Autonomous System Number) information for an IP address.
Parameters:
ip (optional): IPv4 or IPv6 address to look up.Returns: ASN details, network range, ISP information, regional registry.
lookup_ip_address_companyGet company/organization information for an IP address.
Parameters:
ip (optional): IPv4 or IPv6 address to look up.Returns: Company name, domain, country, organization type.
lookup_ip_address_abuse_contactsGet abuse contact information for an IP address to report malicious activity.
Parameters:
ip (optional): IPv4 or IPv6 address to look up.Returns: Abuse contact email, phone, address, and network range.
The server also provides pre-configured prompts to help with common IP analysis tasks:
check_ip_securityAnalyze an IP address for security concerns including VPN, proxy, Tor usage, and abuse history.
Example usage: "Use the check_ip_security prompt to analyze 192.168.1.1"
locate_ip_geographicallyGet detailed geographic information about an IP address.
Example usage: "Use the locate_ip_geographically prompt to find where I am"
investigate_ip_ownershipGet detailed information about who owns and operates an IP address.
Example usage: "Use the investigate_ip_ownership prompt to check who owns 8.8.8.8"
ip_comparisonCompare geographic and network information between two IP addresses.
Example usage: "Use the ip_comparison prompt to compare 1.1.1.1 and 8.8.8.8"
You can make up to 50 requests per day without an API key.
Sign up for a free API key at IPLocate.io to increase your free quota to 1,000 requests per day.
The server automatically reads your API key from the IPLOCATE_API_KEY environment variable. Configure it in your MCP client settings (see the configuration examples above) or set it when running manually.
If you need to run the server manually (for development or testing), you have several options:
npx -y @iplocate/mcp-server
With API key:
On macOS/Linux:
export IPLOCATE_API_KEY=your_api_key_here npx -y @iplocate/mcp-server
On Windows:
set IPLOCATE_API_KEY=your_api_key_here npx -y @iplocate/mcp-server
npm install -g @iplocate/mcp-server mcp-server-iplocate
git clone https://github.com/iplocate/mcp-server-iplocate.git cd mcp-server-iplocate yarn install yarn build yarn start
For development with auto-reload:
yarn dev
You can test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js
The IPLocate API returns comprehensive data about IP addresses. Here's an example response structure:
{ "ip": "8.8.8.8", "country": "United States", "country_code": "US", "city": "Mountain View", "latitude": 37.386, "longitude": -122.0838, "asn": { "asn": "AS15169", "name": "Google LLC", "domain": "google.com" }, "privacy": { "is_vpn": false, "is_proxy": false, "is_tor": false, "is_hosting": true } // ... and more fields }
For full details, see the IPLocate API documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Since 2017, IPLocate has set out to provide the most reliable and accurate IP address data.
We process 50TB+ of data to produce our comprehensive IP geolocation, IP to company, proxy and VPN detection, hosting detection, ASN, and WHOIS data sets. Our API handles over 15 billion requests a month for thousands of businesses and developers.