Back to MCP Catalog

IP Geolocation MCP Server

Location ServicesPython
Get detailed geolocation information about IP addresses
Available Tools

get_ip_details

Get detailed information about an IP address, including location, organization, and country details

ip

IP Geolocation is a Model Context Protocol server that leverages the ipinfo.io API to provide comprehensive information about IP addresses. This tool allows you to determine a user's approximate location and network details, making it valuable for location-aware applications and network analysis. The server returns detailed information including geographical coordinates, city, region, country, postal code, timezone, and network organization details. This makes it useful for applications that need to customize experiences based on user location or for security and analytics purposes.

Overview

IP Geolocation is a simple MCP server that connects to the ipinfo.io API to retrieve detailed information about any IP address. This allows AI assistants to determine where users are located (approximately) and what networks they are using.

Prerequisites

Before using this MCP server, you'll need to:

  1. Create a token to use the IPInfo API
  2. If you don't already have one, sign up for a free account at https://ipinfo.io/signup

Installation

To use IP Geolocation with Claude desktop, add the following to the mcpServers section of your claude_desktop_config.json file:

"ipinfo": {
  "command": "uvx",
  "args": [
    "--from",
    "git+https://github.com/briandconnelly/mcp-server-ipinfo.git",
    "mcp-server-ipinfo"
  ],
  "env": {
    "IPINFO_API_TOKEN": "<YOUR TOKEN HERE>"
  }
}

Make sure to replace <YOUR TOKEN HERE> with your actual IPInfo API token.

Usage

Once installed, you can ask Claude to get information about an IP address. For example:

  • "What can you tell me about the IP address 8.8.8.8?"
  • "Where is the IP 104.16.132.229 located?"
  • "Give me details about this IP: 13.107.21.200"

Claude will use the get_ip_details tool to retrieve information from the IPInfo API and present it in a readable format.

Limitations

  • The free tier of IPInfo has usage limits (typically 50,000 requests per month)
  • IP geolocation is approximate and may not be 100% accurate
  • This tool requires an internet connection to function

Privacy Considerations

When using this tool, be aware that IP addresses can be considered personally identifiable information in some contexts. Ensure you're using this tool in compliance with relevant privacy regulations and your organization's policies.

Related MCPs

Google Maps
Location ServicesTypeScript

Access Google Maps API functionality for geocoding, place search, directions, and more

GeoPy Geocoding
Location ServicesPython

Geocoding service for converting addresses to coordinates and vice versa

QGIS Desktop
Location ServicesPython

Control QGIS Desktop GIS software through Claude AI

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.