MCP Server for IP address geolocation and network data from IPLocate.io
An MCP (Model Context Protocol) server for IPLocate.io - providing comprehensive IP address intelligence including geolocation, network information, privacy detection, and abuse contacts.
Features
This MCP server provides tools to look up detailed information about IP addresses:
- Geolocation: Country, city, coordinates, timezone, postal code and more
- Network Information: ASN name, number, type, network range, ISP information
- Privacy & Security: VPN detection, proxy detection, Tor exit nodes, hosting providers
- Company Data: Organization name, domain, business type
- Abuse Contacts: Email, phone, and address for reporting malicious activity
Requirements
To follow our quick start setup instructions, you will need:
- Node.js 18 or higher
- npm
- A compatible MCP client. For example, Cursor, Claude Desktop.
Quick Start
The easiest way to use this MCP server is through your MCP client. Simply configure your client with the setup instructions below:
Configure your MCP client
One-click setup:
Manual configuration:
- In your project directory, create the configuration:
- Add the following to
.cursor/mcp.json
:Replaceyour_api_key_here
with your actual API key from IPLocate.io.
- Open Claude Desktop settings
- On macOS:
Cmd + ,
- On Windows:
Ctrl + ,
- On macOS:
- Go to the "Developer" tab and click "Edit Config"
- Add the IPLocate server configuration:Replace
your_api_key_here
with your actual API key from IPLocate.io.
- Create the VS Code MCP configuration:
- Add the following to
.vscode/mcp.json
:Replaceyour_api_key_here
with your actual API key from IPLocate.io.
Available tools
The server provides the following tools:
lookup_ip_address_details
Get 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:
Returns: All available data about the IP address, including geolocation, network information, privacy, and company data.
lookup_ip_address_location
Get 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_privacy
Check 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_network
Get 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_company
Get 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_contacts
Get 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.
Available prompts
The server also provides pre-configured prompts to help with common IP analysis tasks:
check_ip_security
Analyze 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_geographically
Get detailed geographic information about an IP address.
Example usage: "Use the locate_ip_geographically prompt to find where I am"
investigate_ip_ownership
Get 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_comparison
Compare 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"
Add your API key
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.
Sign up for a free API key
- Visit https://iplocate.io/signup
- Create a free account
- Get your API key from the dashboard
Using an API key with this server
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.
Running the server manually
If you need to run the server manually (for development or testing), you have several options:
Prerequisites
- Node.js 18 or higher
- npm or yarn
Using npx (recommended)
With API key:
On macOS/Linux:
On Windows:
Install from npm
Install from source
For development with auto-reload:
Testing
You can test the server using the MCP Inspector:
API Response Format
The IPLocate API returns comprehensive data about IP addresses. Here's an example response structure:
For full details, see the IPLocate API documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- For issues with this MCP server, please open an issue on GitHub
- For IPLocate API support, contact support@iplocate.io
- For IPLocate API documentation, visit https://iplocate.io/docs
Acknowledgments
- Model Context Protocol for the MCP specification
- Anthropic for the MCP TypeScript SDK
About IPLocate.io
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.
- Email: support@iplocate.io
- Website: iplocate.io
- Documentation: iplocate.io/docs
- Sign up for a free API Key: iplocate.io/signup
Tools
Look up IP address geolocation, network information, detect proxies and VPNs, and find abuse contact details using IPLocate.io
- Features
- Requirements
- Quick Start
- Add your API key
- Running the server manually
- API Response Format
- Contributing
- License
- Support
- Acknowledgments
- About IPLocate.io
Related Resources
Related MCP Servers
- -securityFlicense-qualityProvides IP geolocation services using IP-API.com without requiring an API key, enabling users to obtain detailed location and network information for any IP address in a clean, formatted output.Last updated -TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that retrieves detailed geographic information about IP addresses using the ipinfo.io API, helping determine user location and network details.Last updated -124PythonMIT License
- -securityAlicense-qualityAn MCP server for nearby place searches with IP-based location detection.Last updated -PythonMIT License
- -security-license-qualityAllows agents to get the current location of the user based on their IP Address or to fetch the location of any IP Address.Last updated -JavaScript