@pipeworx/mcp-ipinfo

中文文档
1.1.1发布于 2026/11/02MITES Module零依赖构建来源已验证

IPInfo MCP — wraps ipinfo.io (free tier, no auth required for basic usage)

原始使用文档
文档目录8 节
  1. Tools
  2. Quick Start
  3. What this endpoint actually serves
  4. No MCP client? Call it over HTTP
  5. Run it from npm
  6. Using with ask_pipeworx
  7. More
  8. License

mcp-ipinfo

IPInfo MCP — wraps ipinfo.io (free tier, no auth required for basic usage)

Part of Pipeworx — an MCP gateway connecting AI agents to 1865+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

ToolDescription
lookup_ipGet geolocation and network info for any IP address (e.g., "8.8.8.8"). Returns city, region, country, coordinates, org, postal code, timezone.
get_my_ipGet your current IP address with geolocation data. Returns city, region, country, coordinates, org, postal code, timezone.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "ipinfo": {
      "url": "https://gateway.pipeworx.io/ipinfo/mcp"
    }
  }
}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/ipinfo/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1865+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/ipinfo_lookup_ip \
  -H 'Content-Type: application/json' \
  -d '{"ip":"8.8.8.8"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/ipinfo_lookup_ip. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Run it from npm

@pipeworx/mcp-ipinfo is a local stdio bridge to the Pipeworx gateway: your MCP client starts it with npx, and it forwards every call to the same https://gateway.pipeworx.io/ipinfo/mcp endpoint shown above. It needs network access; there is no offline mode.

{
  "mcpServers": {
    "ipinfo": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-ipinfo"]
    }
  }
}

Without a key it calls anonymously, capped at 50 calls a day. A free account raises that to 200 a day: get a key at https://pipeworx.io/signup and add "env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry. The key is sent as a Bearer token, the same way a hosted connection sends it, so calls are metered and billed exactly as they are there.

It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to also list ask_pipeworx and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check your Node version's documentation.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Ipinfo data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

版本与发布记录

@pipeworx/mcp-ipinfo 共发布 6 个版本,首次发布于 2026/04/15;过去 12 个月发布了 6 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.1.1latest2026/11/021 天前
1.1.02026/10/295 天前
1.0.32026/10/277 天前
1.0.22026/09/271 个月前
1.0.12026/09/251 个月前
1.0.02026/04/156 个月前

关于 @pipeworx/mcp-ipinfo 的常见问题

@pipeworx/mcp-ipinfo 是什么?

IPInfo MCP -封装IPInfo。IO(免费层,基本使用不需要授权)

如何安装 @pipeworx/mcp-ipinfo?

在项目目录运行 npm install @pipeworx/mcp-ipinfo,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 mcp-ipinfo,可以用 npx mcp-ipinfo 直接运行。

@pipeworx/mcp-ipinfo 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/pipeworx__mcp-ipinfo 是否存在。

@pipeworx/mcp-ipinfo 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@pipeworx/mcp-ipinfo 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@pipeworx/mcp-ipinfo 可以商用吗?

@pipeworx/mcp-ipinfo 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@pipeworx/mcp-ipinfo 还在维护吗?

最新版本 1.1.1 发布于 2026/11/02(1 天前);至今共发布 6 个版本,其中过去 12 个月发布了 6 个;首次发布于 2026/04/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。