mcp-ip

by qiangmzsx

322 downloads
Not rated
GitHub

About

Get geographic location information from IP addresses using offline IP database.

Details

Author
qiangmzsx
Downloads
322
Categories
Other, Database

- Offline IP geolocation using the ip2region database.
- Supports both stdio and streamable HTTP transports.
- Written in Go; single binary after build.
- Requires an ip2region .xdb database file.
- Lightweight and self-contained.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-ip
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Build from source with go build -o mcp-ip, then run via stdio or HTTP transport. For stdio, configure in mcpServers with the command mcp-ip and arguments -transport stdio -xdb_path <path>. For HTTP, run ./mcp-ip -transport streamable_http -port 8080 -xdb_path /data/ip2region.xdb and access at http://127.0.0.1:8080/mcp.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-ip": {
            "ipinfo": {
                "command": "mcp-ip",
                "args": [
                    "-transport",
                    "stdio",
                    "-xdb_path",
                    "./data/ip2region.xdb"
                ]
            }
        }
    }
}

McpServers

{
    "ipinfo": {
        "command": "mcp-ip",
        "args": [
            "-transport",
            "stdio",
            "-xdb_path",
            "./data/ip2region.xdb"
        ]
    }
}

mcp-ip

Get geographic location information from IP addresses using offline IP database.

IP Database Support

Currently using ip2region database: https://github.com/lionsoul2014/ip2region.

Usage

Build

$ git clone https://github.com/qiangmzsx/mcp-ip.git
$ cd mcp-ip
$ go build -o mcp-ip

stdio

{
  "mcpServers": {
    "ipinfo": {
      "command": "mcp-ip",
      "args": [
        "-transport",
        "stdio",
        "-xdb_path",
        "/data/ip2region.xdb"
      ]
    }
  }
}
It is recommended to specify an absolute path for -xdb_path whenever possible.

http

$ ./mcp-ip -transport streamable_http -port 8080 -xdb_path /data/ip2region.xdb
$ http://127.0.0.1:8080/mcp
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.