Skip to main content
Glama
MaxMindDB MCP Server

MaxMindDB MCP Server

MaxMindDB MCP Server

License: ISC

Look up IP locations and network ownership in GeoIP2, GeoLite2, and custom MMDB databases from your AI assistant. Search networks, compare databases, and download new databases through MCP.

This is an unofficial project and is not endorsed by MaxMind Inc. For official products and support, visit maxmind.com.

Try asking:

  • "Using MaxMindDB, identify the country and autonomous system for 8.8.8.8."

  • "Find the networks belonging to AS13335 within 1.0.0.0/8 in my ASN database."

  • "Which databases are available, and when were they built?"

Answers come from your databases. IP geolocation is an estimate, not a device's precise location. ASN data describes network ownership, not the identity of a person using an address.

What you need

Provide either existing .mmdb files or a MaxMind account ID and license key with access to the editions you want. Databases and credentials are not bundled.

The server runs on your computer and requires a client that supports local MCP servers.

Related MCP server: geolocation-mcp

Installation

Claude Desktop

Install and configure the server through Claude Desktop. No terminal, Go installation, or config file is required.

  1. Download the latest MCPB. The single file includes native builds for all supported platforms.

  2. Open Settings → Extensions → Advanced settings → Install Extension in Claude Desktop and select the file.

  3. Choose how to provide databases in the extension settings:

    • Download databases: Enter your MaxMind account ID and license key. The default editions are GeoLite2-City and GeoLite2-ASN.

    • Use existing files: Turn off Download and update MaxMind databases and select the folder containing your .mmdb files.

  4. Enable the extension and ask: "Using MaxMindDB, list my databases and look up 8.8.8.8."

The first download runs in the background. Ask Claude to check database status if lookups are not ready yet. Enter license keys in extension settings, not in chat.

Upgrading from v0.2.0 or earlier: Remove the old extension, install the new one, and configure it again. Your database files remain in place. See upgrades, settings, and supported platforms.

Standalone executable

On macOS, install with Homebrew:

brew install --cask oschwald/tap/maxminddb-mcp

For other platforms, or without Homebrew, download an archive or Linux package from GitHub Releases. See standalone setup for installation and checksums. Then configure the server and connect your client below.

Go developers can also build from source.

Connect a client

Choose your client for step-by-step setup.

Client

Setup requirements

ChatGPT desktop

Installed executable and configuration; local threads only

Codex

Installed executable; config file or environment settings

Claude Code

Universal native plugin, or installed executable and configuration

Antigravity CLI (agy)

Installed executable and configuration

Zed

Installed executable and configuration

Docker

Docker engine and a config file readable by the container

ChatGPT desktop plugin (experimental)

Codex CLI registration and existing server configuration; desktop UI unverified

Claude Cowork plugin (experimental)

Universal plugin ZIP; installation and settings UI unverified

Cursor plugin (unverified)

Docker engine; installation and settings UI unverified

Gemini CLI (legacy)

Continued Gemini CLI access; native extension prompts for account settings

Configuration

Claude Desktop users can manage settings in the extension. For standalone installations, the configuration guide covers:

  • Downloads using MaxMind credentials.

  • Existing MMDB folders or GeoIP.conf.

  • Environment settings, config discovery, and logging.

If setup fails, start with troubleshooting.

Tools

Your assistant discovers the tools automatically. You can ask it to look up IPs, search or summarize networks, compare and inspect databases, or install and update databases.

The tool reference documents arguments, results, filters, pagination, limits, and errors.

Help and development

License

ISC.

Available Tools

10 tools
compare_databasesCompare databasesA
Read-onlyIdempotent

Compare lookup answers in two loaded databases within a CIDR, for example before and after an update. Returns paginated added, removed, and changed address ranges. Equal answers with different network boundaries are unchanged. Pages scan at most 10,000 segments and can contain no changes while has_more is true. Continue until has_more is false.

Inputs: network (required), new_database (required), old_database (required), max_results, +1 more. Returns: changes, has_more, resume_token, scanned_segments

inspect_databaseInspect a databaseA
Read-onlyIdempotent

Read MMDB metadata and sample field paths, types, and examples. Use this to choose fields, filter paths, or a summarize_network group_by field. Sampling starts at the first network record, so observed fields are not a complete schema. Use verify_database to check file integrity.

Inputs: database (required), sample_size. Returns: fields, database, metadata, sample_limit, +3 more

install_databaseInstall a database from a URLA
Destructive

Download, validate, and load a database from an HTTP or HTTPS URL. Use install_edition, when available, for MaxMind editions with managed updates. Accepts MMDB, gzip, tar, tar.gz, or ZIP with exactly one MMDB. Downloads and expanded data are limited to 1 GiB. Uses the configured download folder, or the first folder in directory mode. Existing files require overwrite: true and are replaced only after validation. Does not use MaxMind credentials or save the URL for updates.

Inputs: url (required), database (required), overwrite. Returns: size, error, updated, database, +1 more

list_databasesList databasesA
Read-onlyIdempotent

List loaded databases, their metadata, download status, and setup instructions. Call this first to choose exact database filenames for other tools. An empty list can mean the initial download is still running. If status is downloading, wait and call again without starting another update.

Inputs: no named parameters. Returns: status, update, message, databases

lookup_ipLook up an IP addressA
Read-onlyIdempotent

Look up one IP address in local MMDB databases. Returns the matching record and network, with found=false when no record matches. Use lookup_ips for a batch of addresses or lookup_network to enumerate records in a CIDR.

Inputs: ip (required), fields, database. Returns: ip

lookup_ipsLook up IP addressesA
Read-onlyIdempotent

Look up a batch of IP addresses in local MMDB databases. Each result contains the matching record and network, found=false for no match, or an error for that address. Other addresses are still processed after an error. Use lookup_ip for a single address.

Inputs: ips (required), fields, database. Returns: results

lookup_networkQuery a networkA
Read-only

Find stored network records overlapping a CIDR, with optional filters and field selection. Returned networks may extend beyond the requested CIDR. Use lookup_range for start/end bounds or summarize_network for grouped counts. Repeat the network and database on each page. Stop when has_more is false.

Inputs: network (required), fields, filters, database, +4 more. Returns: results, has_more, iterator_id, resume_token, +2 more

lookup_rangeQuery an address rangeA
Read-only

Find stored network records overlapping an inclusive start/end IP range, with optional filters and field selection. Use lookup_network when the bounds are a CIDR. Returns each overlapping network once, including networks extending beyond the bounds. Repeat the endpoints and database on each page. Stop when has_more is false.

Inputs: end_ip (required), start_ip (required), fields, filters, +5 more. Returns: results, has_more, iterator_id, resume_token, +2 more

summarize_networkSummarize a networkA
Read-onlyIdempotent

Group matching records by a scalar field, such as country.iso_code or autonomous_system_number. Count records and covered addresses within a CIDR. Use lookup_network to retrieve individual records. IPv4 aliases are excluded. Exceeding 10,000 scanned records or 100 groups returns an error. Use a smaller CIDR if a limit is reached.

Inputs: network (required), database (required), group_by (required), filters, +1 more. Returns: groups, network, database, group_by, +4 more

verify_databaseVerify a databaseA
Read-onlyIdempotent

Check a loaded MMDB for structural corruption, such as after importing a database or encountering decode errors. Returns valid=true on success or a verification error. Use inspect_database for metadata and field samples. Only one verification runs at a time. Cancellation can stop a queued request, but verification runs to completion once started.

Inputs: database (required). Returns: valid, database, completed_after_cancellation

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 10 tools

    Disambiguation4/5

    Tools are mostly distinct: lookup_ip vs lookup_ips (batch), lookup_network (CIDR) vs lookup_range (start/end), and summarize vs lookup are clearly differentiated by descriptions. The only mild overlap is lookup_network/lookup_range and lookup_ip/lookup_ips, but each description explicitly points to the alternative tool, so misselection is unlikely.

    Naming Consistency5/5

    All ten tools follow a consistent snake_case verb_noun pattern (compare_databases, lookup_network, install_database, verify_database, etc.). The only variation is singular vs plural noun (lookup_ip/lookup_ips, compare_databases), which is semantically meaningful and consistent.

    Tool Count5/5

    Ten tools is well-scoped for a MaxMindDB server: install, list, inspect, verify, multiple lookup modes, summarize, and compare each earn a distinct role. No redundant or filler tools are present.

    Completeness4/5

    The surface covers the full lifecycle for loaded databases: install, list, inspect, verify, multiple lookup modes, summarize, and compare. Minor gaps remain—no explicit unload/delete of a loaded database and no bulk export—but core workflows are fully supported.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      A Model Context Protocol server that retrieves detailed geographic information about IP addresses using the ipinfo.io API, helping determine user location and network details.
      5
      39 PyPI
      45
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A Model Context Protocol server that enables LLMs to perform IP geolocation, reverse geocoding, and detect the host's public IP without requiring API keys.
      3
      4 npm
      MIT