Network Utilities

Cidr Info

Extract network details from CIDR notation including IP range, subnet mask, broadcast address, and host count. Use via MCP in Cursor or Windsurf, or call GET /v1/network/cidr with your CIDR block. For example, 192.168.1.0/24 returns 254 usable hosts, netmask 255.255.255.0, and broadcast 192.168.1.255. Essential for network planning and subnet calculations.

API Endpoint

GET /v1/network/cidr

Code Examples

curl "https://tinyfn.io/v1/network/cidr" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/network/cidr', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/network/cidr',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's network tools:

{
  "mcpServers": {
    "tinyfn-network": {
      "url": "https://tinyfn.io/mcp/network",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What information does CIDR analysis return?

Returns network address, broadcast address, subnet mask, wildcard mask, total hosts, usable hosts, and IP range boundaries for any valid CIDR block.

How do I analyze a subnet with the CIDR tool in MCP?

Pass the CIDR notation (like 10.0.0.0/16) to the tool. It calculates all network parameters including the 65,534 usable host addresses in this example.

Can I use CIDR info for IPv6 networks?

Yes, the tool handles both IPv4 and IPv6 CIDR blocks, calculating appropriate ranges and host counts for each protocol version.

What's the difference between total hosts and usable hosts?

Total hosts includes network and broadcast addresses. Usable hosts excludes these two reserved addresses, giving you the actual assignable IP count.

How can AI agents use CIDR analysis for network automation?

Agents can validate subnet sizes, calculate IP allocations, check for overlapping ranges, and generate network documentation with precise host counts and boundaries.

Try Cidr Info Now

Get your free API key and start using Cidr Info in seconds.

Get Free API Key