IPLocate MCP Server

IPLocate MCP Server

Comprehensive IP address geolocation and network intelligence via MCP.

11
Stars
5
Forks
11
Watchers
1
Issues
Provides an MCP server interface to IPLocate.io, delivering detailed IP address intelligence including geolocation, network details, privacy detection, and abuse contact information. Easily integrates with popular MCP clients like Cursor and Claude Desktop for seamless IP lookups. Enables users to retrieve geographic, organizational, and security-related data associated with IPv4 and IPv6 addresses by connecting to the IPLocate.io API.

Key Features

Comprehensive IP address lookup
Geolocation data (country, city, coordinates, timezone, postal code)
Network information including ASN name, number, and ISP
Detection of VPNs, proxies, and Tor exit nodes
Hosting provider identification
Company and organization data retrieval
Access to abuse reporting contacts
Environment variable configuration for API keys
Seamless integration with Cursor, Claude Desktop, and VS Code
Support for both IPv4 and IPv6 lookups

Use Cases

Identifying geographic location of a user or system by IP
Screening and blocking traffic from known VPNs or proxies
Enriching security alerts with IP intelligence data
Automating abuse report generation with contact details
Determining ISP and organizational ownership of IPs
Supporting compliance and regulatory checks on network traffic
Enhancing fraud detection workflows with context-aware IP analysis
Contextual enrichment for AI-augmented development tools
Customizing services based on client location
Augmenting customer insight tools with network and company data

README

MCP Server for IP address geolocation and network data from IPLocate.io

Install MCP Server

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:

Install MCP Server

Manual configuration:

  1. In your project directory, create the configuration:

    bash
    mkdir -p .cursor
    touch .cursor/mcp.json
    
  2. Add the following to .cursor/mcp.json:

    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.

  1. Open Claude Desktop settings

    • On macOS: Cmd + ,
    • On Windows: Ctrl + ,
  2. Go to the "Developer" tab and click "Edit Config"

  3. Add the IPLocate server configuration:

    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.

  1. Create the VS Code MCP configuration:

    bash
    mkdir -p .vscode
    touch .vscode/mcp.json
    
  2. Add the following to .vscode/mcp.json:

    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.

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:

json
{
  "ip": "8.8.8.8"
}

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

  1. Visit https://iplocate.io/signup
  2. Create a free account
  3. 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)

bash
npx -y @iplocate/mcp-server

With API key:

On macOS/Linux:

bash
export IPLOCATE_API_KEY=your_api_key_here
npx -y @iplocate/mcp-server

On Windows:

powershell
set IPLOCATE_API_KEY=your_api_key_here
npx -y @iplocate/mcp-server

Install from npm

bash
npm install -g @iplocate/mcp-server
mcp-server-iplocate

Install from source

bash
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:

bash
yarn dev

Testing

You can test the server using the MCP Inspector:

bash
npx @modelcontextprotocol/inspector node dist/index.js

API Response Format

The IPLocate API returns comprehensive data about IP addresses. Here's an example response structure:

json
{
  "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.

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

Acknowledgments

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.

Star History

Star History Chart

Repository Owner

iplocate
iplocate

Organization

Repository Details

Language JavaScript
Default Branch main
Size 133 KB
Contributors 2
License MIT License
MCP Verified Nov 12, 2025

Programming Languages

JavaScript
89.93%
TypeScript
10.07%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • MCP-Geo

    MCP-Geo

    Geocoding and reverse geocoding MCP server for LLMs.

    MCP-Geo provides geocoding and reverse geocoding capabilities to AI models using the Model Context Protocol, powered by the GeoPY library. It offers various tools such as address lookup, reverse lookup from coordinates, distance calculations, and batch processing of locations, all accessible via standard MCP tool interfaces. Safety features like rate limiting and robust error handling ensure reliable and compliant usage of geocoding services. The server is compatible with environments like Claude Desktop and can be easily configured elsewhere.

    • 28
    • MCP
    • webcoderz/MCP-Geo
  • GIS MCP Server

    GIS MCP Server

    Empower AI with advanced geospatial operations via Model Context Protocol.

    GIS MCP Server provides a Model Context Protocol (MCP) server implementation that enables Large Language Models to access and perform sophisticated GIS operations. It bridges AI assistants with Python geospatial libraries such as Shapely, GeoPandas, PyProj, Rasterio, and PySAL. The server supports a wide range of spatial analysis, coordinate transformations, raster and vector data processing, and geospatial intelligence tasks. By integrating with MCP-compatible clients, it enhances AI tools with precise and extensible spatial capabilities.

    • 70
    • MCP
    • mahdin75/gis-mcp
  • Stadia Maps MCP Server (TypeScript)

    Stadia Maps MCP Server (TypeScript)

    Bringing location services, geocoding, and mapping to AI assistants via Stadia Maps APIs.

    Stadia Maps MCP Server (TypeScript) implements the Model Context Protocol to provide LLM-based assistants with structured access to Stadia Maps APIs. It enables AI tools to query for geocoding, routing, time zones, map generation, and isochrone calculations. Designed for integration with agentic tools and LLMs, the server enhances spatial intelligence and location-based features in AI workflows.

    • 18
    • MCP
    • stadiamaps/stadiamaps-mcp-server-ts
  • OpenStreetMap MCP Server

    OpenStreetMap MCP Server

    Enhancing LLMs with geospatial and location-based capabilities via the Model Context Protocol.

    OpenStreetMap MCP Server enables large language models to interact with rich geospatial data and location-based services through a standardized protocol. It provides APIs and tools for address geocoding, reverse geocoding, points of interest search, route directions, and neighborhood analysis. The server exposes location-related resources and tools, making it compatible with MCP hosts for seamless LLM integration.

    • 134
    • MCP
    • jagan-shanmugam/open-streetmap-mcp
  • NearbySearch MCP Server

    NearbySearch MCP Server

    IP-based nearby search via Google Places, packaged as an MCP tool.

    NearbySearch MCP Server enables users to search for nearby places using their IP-based location, leveraging the Google Places API. Designed to run as an MCP server, it offers an accessible interface for location-aware searches with customizable radius and filter options. The tool supports integration with clients such as Claude Desktop and features a simple setup process using Python 3.10+. Ideal for use cases where model context needs to be enriched with location-based search results.

    • 21
    • MCP
    • kukapay/nearby-search-mcp
  • Bitcoin & Lightning Network MCP Server

    Bitcoin & Lightning Network MCP Server

    Enable AI models to safely interact with Bitcoin and Lightning Network in a standardized way.

    The Bitcoin & Lightning Network MCP Server implements the Model Context Protocol, allowing AI models to interface with Bitcoin and Lightning Network functionalities such as key generation, address validation, transaction decoding, blockchain queries, and lightning payments. It provides standardized endpoints for AI model integration, including support for Claude Desktop and Goose. The solution supports querying blockchain data, parsing transactions and invoices, and managing cryptographic operations in a secure and extensible manner.

    • 65
    • MCP
    • AbdelStark/bitcoin-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results