
Packetrove
io.github.euyuilv0.3.0更新于 Oct 3, 2026
Open-source IP address and CIDR tools for network calculations and public IP lookup.
概览
让助手计算覆盖 CIDR、做网段减法、把 IP 范围转换为 CIDR,并查询连接的公网 IP。
- 功能
- Packetrove 提供四个网络工具:找出覆盖一组地址的最小 IPv4 或 IPv6 CIDR;精确减去被排除的 CIDR 列表;把闭区间 IP 范围转换为最小 CIDR 列表并给出精确地址数;以及报告发起请求的连接所观察到的公网 IP。同一组工具可通过网站、Web API、CLI 和 MCP 使用。地址数以十进制字符串返回,以保留精确的 IPv6 数值。
- 适用场景
- 适合在编写或检查防火墙允许列表与阻止列表、简化 IP 列表,或确认某个连接对外呈现的公网 IP 时使用。面向希望精确完成 CIDR 运算而非手工计算的开发者和网络管理员。
- 运行要求
- 远程 MCP 端点 streamable HTTP。托管工具无需账号或 API 密钥。需要网络访问,公网 IP 查询观察的是发起请求的连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Packetrove,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"packetrove": {
"type": "http",
"url": "https://api.packetrove.com/mcp"
}
}
}README
Packetrove
Network tools for humans and agents.
Packetrove helps developers and network administrators simplify firewall IP lists, subtract networks, convert IP ranges to CIDRs, and check a connection's public IP. Use the website for a quick calculation, the API or CLI for scripts, or connect AI agents through Model Context Protocol (MCP).
Website · CIDR calculator · CIDR subtraction · IP range to CIDRs · My Public IP
What you can do
- Cover an IP list with one CIDR. Find the smallest IPv4 or IPv6 network covering your inputs, with its full address range and exact additional coverage.
- Subtract CIDR lists exactly. Remove excluded networks and copy the smallest CIDR list representing the remaining addresses, without adding addresses.
- Convert an IP range exactly. Enter inclusive start and end addresses and copy the minimal CIDR list covering that range, with an exact address count.
- Check a connection's public IP. See and copy the IPv4 or IPv6 address observed for the connection making the request.
The website supports ten languages. Hosted tools require no account or API key. All four tools are available through the website, Web API, and MCP. The CLI provides covering-CIDR calculations and public IP lookup.
Browse example results in the homepage gallery, then open a tool to enter your own inputs. Gallery previews use documentation addresses and make no live lookups.
Quick start
Open the CIDR calculator, or call the API:
The result is 203.0.113.0/29: eight addresses, including five beyond the three
inputs. Review this expansion before using it in an allowlist or blocklist.
API address counts are decimal strings to preserve exact IPv6 values.
Use it your way
The website's main navigation opens browser tools. Its footer groups the API, MCP, and CLI guides; the CLI guide is in English.
Tools share flat public names across interfaces. For changes to existing calls and commands, see the name migration guide.
Privacy and scope
- Website CIDR calculations run locally in your browser; CLI calculations run offline. API and remote MCP calculations send inputs to the server.
- Public IP checks make a network request and observe one address family per check. A VPN or proxy supplies its exit address; a hosted MCP client may observe a different connection from your computer's. Browser and CLI lookups have a ten-second deadline and a 64 KiB response limit.
- The application does not store or log returned IP addresses. Lookup results and errors are not cached.
- MCP execution counts use operational events with the tool name, outcome, and a controlled error code, excluding inputs and results. The deployment guide describes the free-tier limits and per-tool queries.
- The Privacy Policy describes remote input processing, browser storage, operational error logs, hosting, retention, and user choices. Cloudflare's platform processing is separate from application storage and logging.
For input formats, limits, and detailed behavior, see the covering-CIDR, CIDR subtraction, IP range conversion, and public IP guides.
Development
Use the Node.js version in .node-version and the pnpm version in package.json. Local development needs no production credentials.
Open http://127.0.0.1:5173. For the API and MCP, run pnpm dev:api in another
terminal; they listen at http://localhost:8787. Local public IP lookup requires
Cloudflare connection metadata and reports CLIENT_IP_UNAVAILABLE without it.
See Contributing for complete setup, checks, and Git hooks.
Documentation and contributing
- Contribute or report an issue
- Self-hosting
- Continuous integration and deployment
- Product releases, CLI publishing, and MCP Registry publication · Changelog
License
Packetrove is licensed under the MIT License. Bundled components retain their own licenses; see the website notices and CLI notices.
来源:README.md,提交 2709427
工具
0版本历史
1- v0.3.0最新Oct 3, 2026

