Home / Servers / Developer Toolbox / subnet_calculator

Subnet calculator

An MCP tool from the Developer Toolbox server, hosted on mcp.hjlabs.in.

Calculate the network address, broadcast address, netmask, wildcard, usable host range and address count for an IPv4 CIDR block. Handles /31 point-to-point links and /32 single hosts correctly.

Name on the gateway: devtools__subnet_calculator · read-only.

Parameters

NameTypeDescription
cidr requiredstringAn IPv4 block in CIDR form, e.g. "10.0.0.0/8" or "192.168.1.0/24".

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "devtools__subnet_calculator",
  "arguments": {
    "cidr": "…"
  }
}

Or connect the Developer Toolbox server directly, which lists 18 tools including this one:

Run in your terminal
claude mcp add --transport http hj-devtools https://mcp.hjlabs.in/mcp/devtools \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the subnet calculator tool with cidr set to ….

More from Developer Toolbox