MaxMindDB

السجل الرسمي البيانات وقواعدها

Query IP locations and network ownership in GeoIP2, GeoLite2, and custom MMDB databases.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

OCI package ghcr.io/oschwald/maxminddb-mcp:0.4.0
Claude Code
claude mcp add maxminddb -e 'MAXMINDDB_MCP_DOWNLOAD_ENABLED=<MAXMINDDB_MCP_DOWNLOAD_ENABLED>' -e 'MAXMINDDB_MCP_DATABASE_DIR=<MAXMINDDB_MCP_DATABASE_DIR>' -e 'MAXMINDDB_MCP_ACCOUNT_ID=<MAXMINDDB_MCP_ACCOUNT_ID>' -e 'MAXMINDDB_MCP_LICENSE_KEY=<your maxminddb_mcp_license_key>' -e 'MAXMINDDB_MCP_EDITIONS=GeoLite2-City,GeoLite2-ASN' -- docker run -i --rm ghcr.io/oschwald/maxminddb-mcp:0.4.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "maxminddb": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "ghcr.io/oschwald/maxminddb-mcp:0.4.0"
            ],
            "env": {
                "MAXMINDDB_MCP_DOWNLOAD_ENABLED": "<MAXMINDDB_MCP_DOWNLOAD_ENABLED>",
                "MAXMINDDB_MCP_DATABASE_DIR": "<MAXMINDDB_MCP_DATABASE_DIR>",
                "MAXMINDDB_MCP_ACCOUNT_ID": "<MAXMINDDB_MCP_ACCOUNT_ID>",
                "MAXMINDDB_MCP_LICENSE_KEY": "<your maxminddb_mcp_license_key>",
                "MAXMINDDB_MCP_EDITIONS": "GeoLite2-City,GeoLite2-ASN"
            }
        }
    }
}

متغيرات البيئة

  • MAXMINDDB_MCP_DOWNLOAD_ENABLED
  • MAXMINDDB_MCP_DATABASE_DIR
  • MAXMINDDB_MCP_ACCOUNT_ID إلزامي Your MaxMind account ID.
  • MAXMINDDB_MCP_LICENSE_KEY إلزامي سري A MaxMind license key with access to the selected editions.
  • MAXMINDDB_MCP_EDITIONS Comma-separated edition IDs available to your account.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. MaxMindDB MCP Server
  2. What you need
  3. Installation
  4. Connect a client
  5. Configuration
  6. Tools
  7. Help and development
  8. License

MaxMindDB MCP Server

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.

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.

ClientSetup requirements
ChatGPT desktopInstalled executable and configuration; local threads only
CodexInstalled executable; config file or environment settings
Claude CodeUniversal native plugin, or installed executable and configuration
Antigravity CLI (agy)Installed executable and configuration
ZedInstalled executable and configuration
DockerDocker 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.

الأسئلة الشائعة

ما هو MaxMindDB؟

Query IP locations and network ownership in GeoIP2, GeoLite2, and custom MMDB databases.

كيف أثبّت MaxMindDB؟

يعمل على جهازك. في Claude Code: claude mcp add maxminddb -e 'MAXMINDDB_MCP_DOWNLOAD_ENABLED=<MAXMINDDB_MCP_DOWNLOAD_ENABLED>' -e 'MAXMINDDB_MCP_DATABASE_DIR=<MAXMINDDB_MCP_DATABASE_DIR>' -e 'MAXMINDDB_MCP_ACCOUNT_ID=<MAXMINDDB_MCP_ACCOUNT_ID>' -e 'MAXMINDDB_MCP_LICENSE_KEY=<your maxminddb_mcp_license_key>' -e 'MAXMINDDB_MCP_EDITIONS=GeoLite2-City,GeoLite2-ASN' -- docker run -i --rm ghcr.io/oschwald/maxminddb-mcp:0.4.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج MaxMindDB إلى مفتاح API؟

نعم. يتطلب MAXMINDDB_MCP_ACCOUNT_ID, MAXMINDDB_MCP_LICENSE_KEY، وتضبطها في إعداداته.

هل MaxMindDB مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص ISC.

من يصون MaxMindDB؟

ينشره oschwald. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.