MCP.so
登录
M

MCP Ip

@qiangmzsx

基本信息

分类

其他

传输方式

stdio

作者

qiangmzsx

提交者

强 欧

关于 MCP Ip

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

MCP Ip 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

MCP Ip 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is mcp-ip?

mcp-ip is an MCP server that retrieves geographic location information from IP addresses using the offline ip2region database. It is intended for users who need IP geolocation without external API calls.

How to use mcp-ip?

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.

Key features of mcp-ip

  • 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.

Use cases of mcp-ip

  • Adding IP location context to AI prompts in MCP-compatible clients.
  • Geotagging network logs or user requests locally.
  • Building privacy‑friendly tools that avoid external geolocation APIs.

常见问题

1

What IP database does mcp-ip use?

It uses the offline ip2region database from [https://github.com/lionsoul2014/ip2region](https://github.com/lionsoul2014/ip2region).

2

How do I specify the database file?

Pass the `-xdb_path` argument with the path to the `ip2region.xdb` file. An absolute path is recommended.

3

What transports does mcp-ip support?

It supports `stdio` and `streamable_http` (HTTP) transports, configured via the `-transport` flag.

4

Does mcp-ip require a network connection?

No. The geolocation data is stored in the local `.xdb` file, so no outbound connections are needed.

5

How do I build mcp-ip from source?

Clone the repository, run `go build -o mcp-ip` in the project directory, then use the resulting binary.

评论

其他 分类下的更多 MCP 服务器