@mukundakatta/ip-mcp
v0.1.0
Published
MCP server: validate IPv4/IPv6 addresses, test CIDR membership, classify private/public.
Maintainers
Readme
ip-mcp
MCP server: classify, test, and expand IPv4/IPv6 addresses. No external
deps — uses Node's built-in net plus first-principles bit math.
Tools
info
{ "address": "10.0.0.1" }→
{
"address": "10.0.0.1",
"version": 4,
"is_private": true,
"is_loopback": false,
"is_link_local": false,
"is_multicast": false,
"is_unspecified": false
}Works for both v4 (RFC 1918) and v6 (ULA fc00::/7, link-local fe80::/10, multicast ff00::/8).
contains
{ "cidr": "192.168.1.0/24", "address": "192.168.1.99" }→ { "contains": true }
Works for both v4 and v6 CIDR blocks. Mismatched versions throw.
expand
{ "address": "2001:db8::1" }→ { "expanded": "2001:0db8:0000:0000:0000:0000:0000:0001" }
Configure
{ "mcpServers": { "ip": { "command": "npx", "args": ["-y", "@mukundakatta/ip-mcp"] } } }License
MIT.
