M

Mcp Server Ipinfo

briandconnelly
πŸ—ΊοΈ Location Services
0 Views
0 Installs

🐍 ☁️ - IP address geolocation and network information using IPInfo API

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "briandconnelly-mcp-server-ipinfo": {
      "command": "npx",
      "args": [
        "-y",
        "briandconnelly-mcp-server-ipinfo"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

IP Geolocation MCP Server

PyPI CI License: MIT

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.

Claude Desktop (one-click bundle)

Download the .mcpb bundle from the latest release and open it to install in Claude Desktop. You can set your IPINFO_API_TOKEN (and optional cache tuning) in the install dialog; leave the token blank to run in the free Lite tier. The bundle launches the server with uv, so uv must be installed and on your system PATH (GUI apps don't inherit your shell's PATH).

Other MCP clients

Most MCP clients accept the following values:

FieldValue
Commanduvx
Argumentsmcp-server-ipinfo
EnvironmentIPINFO_API_TOKEN = <YOUR TOKEN>

Development Version

To run the latest from main:

FieldValue
Commanduvx
Arguments--from, git+https://github.com/briandconnelly/mcp-server-ipinfo, mcp-server-ipinfo
EnvironmentIPINFO_API_TOKEN = <YOUR TOKEN>

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="summary") β€” Geolocate one or more specified IPs. Defaults to detail="summary", which omits heavy nested blocks (continent, flags, currency, abuse, domains) for batch token savings; pass detail="full" for every field. Capped at 500,000 IPs per call. Invalid or special-use addresses (private, loopback, etc.) are filtered with ctx.warning() and excluded from the result list, as are IPs that fail upstream β€” match returned IPDetails.ip values back to your input to detect what was dropped. If every attempted lookup fails, a temporary api_error is raised.
  • ipinfo_summarize_ips(ips, group_by=("country", "asn"), top_n=50) β€” Geolocate and aggregate a batch into fixed-size counts and percentages by country, continent, ASN, and/or privacy flags. Use this for large log-analysis tasks where per-IP records would waste context. Returns mapped, skipped, and failed counts plus capped top-N groups.
  • ipinfo_check_residential_proxy(ip) β€” Check whether an IP is a known residential-proxy exit node. Tagged enterprise β€” requires the IPInfo residential-proxy add-on.
  • ipinfo_generate_map_url(ips) β€” Build an interactive ipinfo.io map for a set of IPs. Returns a MapResult with the URL, the count that made the map, the IPs filtered out (with reasons, capped at 100), and a truncated flag.

Plan tiers

TierFields available
Free Lite (no token)country, country_code, continent, ASN basics
Corefull geolocation, ASN details, privacy/VPN/proxy/Tor/hosting flags
Plusadds carrier and company data
Enterpriseadds domains and abuse contacts
Residential-proxy add-onenables ipinfo_check_residential_proxy. Sold separately on top of Enterprise; not included by default.

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, a repair hint, and a request_id correlation id. Agents should parse the message as JSON and branch on code. Each tool also advertises the subset of codes it can raise via meta.error_codes, so you can see the branch set from tool introspection.

Configuration

Environment Variables

VariableDescriptionDefault
IPINFO_API_TOKENIPInfo API token. Without it the server runs in free Lite mode.unset (Lite)
IPINFO_CACHE_TTLPer-IP cache TTL in seconds. Cached results retain their original ts_retrieved timestamp.3600
IPINFO_CACHE_SIZEMaximum cache entries before oldest-first eviction.4096

License

MIT License β€” see LICENSE. Release history in CHANGELOG.md.

Disclaimer

This project is not affiliated with IPInfo.

Related MCP Servers

G
Geomelon Mcp

πŸŽ–οΈ πŸ“‡ ☁️ - Cities, countries, regions, and languages with multilingual names (50 languages) and a free keyless autocomplete tool. Also runs a public hosted instance at https://mcp.geomelon.dev/mcp, no signup required.

πŸ—ΊοΈ Location Services0 views
A
Apogeoapi Mcp

πŸ“‡ ☁️ - Geographic data and live exchange rates: 250+ countries, 5K+ states, 150K+ cities, IP geolocation, and 161 currency rates in one MCP server. Requires APOGEOAPIKEY.

πŸ—ΊοΈ Location Services0 views
B
Bamwor Mcp Server

πŸ“‡ ☁️ - World geographic data for AI agents. 261 countries with 20+ statistics and 13.4M cities with population, coordinates, and timezone. Powered by Bamwor API.

πŸ—ΊοΈ Location Services0 views
A
Aloha Fyi Mcp

πŸ“‡ ☁️ - First dedicated Hawaii tourism MCP server. 2,583 bookable tours from Viator, GetYourGuide, Klook, and Groupon, plus 579 events across 70+ venues on Oahu, Maui, Big Island, and Kauai. Results ship with affiliate booking links. Hosted Streamable HTTP endpoint β€” no install required. Powered by aloha.fyi.

πŸ—ΊοΈ Location Services0 views

Engagement

Views
0
Installs
0
Upvotes
0

Views and upvotes are unique per visitor network (hashed IP). Installs count copy actions.

Status

Health: Not checked yet

We have not completed a health check for this listing yet.

Last checked: 7/28/2026, 7:54:57 PM

Unclaimed listing (imported or pending owner verification). Claim it β†’
β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.