IP Geolocation MCP Server
The IP Geolocation MCP Server retrieves detailed information about IP addresses using the ipinfo.io API.
Capabilities:
Geolocation: Determine the approximate geographic location of IP addresses
Network Information: Retrieve details about internet service providers (ISPs) or network operators
IP Analysis: Get comprehensive data including country, organization, and other relevant details
Client IP Lookup: Automatically fetch information about the requesting client's IP if no specific IP is provided
Integration: Easily integrate with tools like Claude desktop via configuration
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@IP Geolocation MCP Serverwhere is 8.8.8.8 located?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
IP Geolocation MCP Server
A Model Context Protocol server that exposes the ipinfo.io API to AI agents. Geolocate IPv4 and IPv6 addresses, identify ISPs and ASNs, detect VPN/proxy/Tor exit nodes, and generate interactive maps for sets of IPs.
Installation
Sign up for a free IPInfo API token at https://ipinfo.io/signup if you don't have one. The server runs with no token (free Lite tier — country and ASN basics) but most fields require a token.
Most MCP clients accept the following values:
Field | Value |
Command |
|
Arguments |
|
Environment |
|
Development Version
To run the latest from main:
Field | Value |
Command |
|
Arguments |
|
Environment |
|
Related MCP server: Geocoding MCP Server
Tools
ipinfo_lookup_my_ip()— Geolocate the calling client's own IP. Takes no arguments. On stdio transports the result reflects this server's outbound IP, not the end user's.ipinfo_lookup_ips(ips, detail="full")— Geolocate one or more specified IPs.detail="summary"strips heavy nested blocks (continent, flags, currency, abuse, domains) for batch token savings while preserving shape parity. Capped at 500,000 IPs per call. Invalid or special-use addresses (private, loopback, etc.) are filtered withctx.warning()and excluded from the result list — match returnedIPDetails.ipvalues back to your input to detect what was dropped.ipinfo_check_residential_proxy(ip)— Check whether an IP is a known residential-proxy exit node. Taggedenterprise— requires the IPInfo residential-proxy add-on.ipinfo_generate_map_url(ips)— Build an interactive ipinfo.io map for a set of IPs. Returns aMapResultwith the URL, the count that made the map, the IPs filtered out (with reasons, capped at 100), and atruncatedflag.
Plan tiers
Tier | Fields available |
Free Lite (no token) | country, country_code, continent, ASN basics |
Core | full geolocation, ASN details, privacy/VPN/proxy/Tor/hosting flags |
Plus | adds carrier and company data |
Enterprise | adds domains and abuse contacts |
Residential-proxy add-on | enables |
Errors
Every tool raises a ToolError whose message is a JSON-encoded envelope with a stable code (invalid_ip_address, special_ip_unsupported, no_valid_ips, too_many_ips, auth_invalid, auth_insufficient_scope, quota_exceeded, timeout, api_error, unknown_error), a temporary flag, optional retry_after_ms, and a repair hint. Agents should parse the message as JSON and branch on code.
Deprecated tools
get_ip_details, get_residential_proxy_info, and get_map_url are forwarding aliases retained from 0.4.x. They are tagged deprecated and will be removed in 0.6.0. New code should call the ipinfo_* tools directly.
Configuration
Environment Variables
Variable | Description | Default |
| IPInfo API token. Without it the server runs in free Lite mode. | unset (Lite) |
| Per-IP cache TTL in seconds. Cached results retain their original |
|
| Maximum cache entries before oldest-first eviction. |
|
License
MIT License — see LICENSE. Release history in CHANGELOG.md.
Disclaimer
This project is not affiliated with IPInfo.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/briandconnelly/mcp-server-ipinfo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server