Skip to main content
Glama
Cloudflare IP Ranges Network MCP

Cloudflare IP Ranges Network MCP

README.md
# cloudflare-ip-ranges-network-mcp

Live Cloudflare IPv4, IPv6, and JD Cloud edge CIDR lookup, bulk IP verification, and origin firewall allowlist generation over Model Context Protocol (MCP). Security engineers, SREs, and network teams can query Cloudflare's official `api.cloudflare.com/client/v4/ips` feed with zero API keys and zero sign-up. It connects right away.

## Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

```text
https://cloudflare-ip-ranges-network-mcp.lipmichal.workers.dev/mcp
```

## Available tools

| Tool | Purpose |
| --- | --- |
| `lookup_cloudflare_ip` | Check whether an IPv4 or IPv6 address belongs to Cloudflare global edge or JD Cloud CIDR blocks |
| `list_cloudflare_ip_ranges` | List official Cloudflare IPv4, IPv6, and optional JD Cloud CIDR ranges with IPv4 host counts |
| `get_cloudflare_ip_summary` | Inspect the current Cloudflare IP feed ETag, prefix totals, IPv4 capacity, and subnet breakdown |
| `export_cloudflare_firewall_allowlist` | Generate Nginx, Apache, Caddy, plain text, or JSON trusted proxy allowlist rules from live CIDRs |
| `bulk_check_cloudflare_ips` | Check a batch of 1 to 25 IPv4 or IPv6 addresses against Cloudflare edge CIDR blocks |

## Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

```json
{
  "mcpServers": {
    "cloudflare-ip-ranges-network": {
      "url": "https://cloudflare-ip-ranges-network-mcp.lipmichal.workers.dev/mcp"
    }
  }
}
```

## Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

```bash
npm install
npm run build
npm start
```

## Compliance and reliability

Every upstream request queries `api.cloudflare.com/client/v4/ips?networks=jdcloud` with a polite `User-Agent` header (`mcpstamp-cloudflare-ip-ranges/1.0 (hello@mcpstamp.com)`), a hard 12-second timeout, and automatic retry on transient 5xx or 429 errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates newer MCP protocol headers cleanly.

## More MCP servers and readiness check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.

- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.cloudflare-ip-ranges-network-mcp) with hosted commercial servers and priority endpoints.