MCP.so
登录
服务器
M

mcp-ip

@qiangmzsx

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

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

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

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

来自「其他」的更多内容