MCP Cloudflare
v0.1.1Secure MCP server for Cloudflare DNS, Transform Rules, and Page Rules
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_zones_tool List Zones Tool
List all Cloudflare zones accessible by the API token.
| Parameter | Type | Description |
|---|---|---|
name | Filter by zone name (domain) | |
page | integer | Page number for pagination (default: 1) |
per_page | integer | Results per page, max 50 (default: 50) |
status | Filter by status (active, pending, initializing, moved, deleted) |
get_zone_tool Get Zone Tool
Get Cloudflare zone details by ID or name. Provide either zone_id or zone_name, not both.
| Parameter | Type | Description |
|---|---|---|
zone_id | Zone ID (32-character hex string) | |
zone_name | Zone name (domain like example.com) |
list_dns_records_tool List Dns Records Tool
List DNS records for a Cloudflare zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
content | Filter by record content | |
name | Filter by record name | |
page | integer | Page number (default: 1) |
per_page | integer | Results per page, max 100 (default: 100) |
type | Filter by record type (A, AAAA, CNAME, MX, TXT, etc.) |
get_dns_record_tool Get Dns Record Tool
Get a single DNS record by ID.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | DNS record ID (32-character hex string) |
zone_id * | string | Zone ID (32-character hex string) |
create_dns_record_tool Create Dns Record Tool
Create a new DNS record.
| Parameter | Type | Description |
|---|---|---|
content * | string | Record content (IP address, target domain, etc.) |
name * | string | Record name (e.g., www, @, subdomain.example.com) |
type * | string | Record type (A, AAAA, CNAME, MX, TXT, NS, SRV, CAA) |
zone_id * | string | Zone ID (32-character hex string) |
comment | Optional comment | |
priority | Priority for MX/SRV records | |
proxied | boolean | Proxy through Cloudflare (default: false) |
ttl | integer | TTL in seconds, 1 = auto (default: 1) |
update_dns_record_tool Update Dns Record Tool
Update an existing DNS record.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | DNS record ID (32-character hex string) |
zone_id * | string | Zone ID (32-character hex string) |
comment | Comment (optional) | |
content | Record content (optional) | |
name | Record name (optional) | |
priority | Priority (optional) | |
proxied | Proxy through Cloudflare (optional) | |
ttl | TTL in seconds (optional) | |
type | Record type (optional) |
delete_dns_record_tool Delete Dns Record Tool
Delete a DNS record.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | DNS record ID (32-character hex string) |
zone_id * | string | Zone ID (32-character hex string) |
list_request_header_rules_tool List Request Header Rules Tool
List request header modification rules.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
set_request_header_rules_tool Set Request Header Rules Tool
Set request header modification rules (replaces all existing rules). Each rule should have: - expression: Filter expression (e.g., "true" for all requests) - description: Human-readable description - action: "rewrite" - action_parameters: {"headers": {"Header-Name": {...}}}
| Parameter | Type | Description |
|---|---|---|
rules * | array | List of rule definitions |
zone_id * | string | Zone ID (32-character hex string) |
list_response_header_rules_tool List Response Header Rules Tool
List response header modification rules.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
set_response_header_rules_tool Set Response Header Rules Tool
Set response header modification rules (replaces all existing rules). Each rule should have: - expression: Filter expression (e.g., "true" for all responses) - description: Human-readable description - action: "rewrite" - action_parameters: {"headers": {"Header-Name": {...}}}
| Parameter | Type | Description |
|---|---|---|
rules * | array | List of rule definitions |
zone_id * | string | Zone ID (32-character hex string) |
list_url_rewrite_rules_tool List Url Rewrite Rules Tool
List URL rewrite rules.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
set_url_rewrite_rules_tool Set Url Rewrite Rules Tool
Set URL rewrite rules (replaces all existing rules). Each rule should have: - expression: Filter expression - description: Human-readable description - action: "rewrite" - action_parameters: {"uri": {"path": {"value": "..."}, "query": {"value": "..."}}}
| Parameter | Type | Description |
|---|---|---|
rules * | array | List of rule definitions |
zone_id * | string | Zone ID (32-character hex string) |
list_page_rules_tool List Page Rules Tool
List all page rules for a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
order | string | Sort order (status, priority) |
status | Filter by status (active, disabled) |
create_page_rule_tool Create Page Rule Tool
Create a new page rule.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Page rule actions |
targets * | array | URL pattern targets |
zone_id * | string | Zone ID (32-character hex string) |
priority | integer | Rule priority 1-1000 (default: 1) |
status | string | active or disabled (default: active) |
update_page_rule_tool Update Page Rule Tool
Update an existing page rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Page rule ID (32-character hex string) |
zone_id * | string | Zone ID (32-character hex string) |
actions | Actions (optional) | |
priority | Priority (optional) | |
status | Status (optional) | |
targets | URL patterns (optional) |
delete_page_rule_tool Delete Page Rule Tool
Delete a page rule.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Page rule ID (32-character hex string) |
zone_id * | string | Zone ID (32-character hex string) |
purge_cache_tool Purge Cache Tool
Purge cached content from Cloudflare's edge. Use one of: purge_everything, files, tags, hosts, or prefixes. tags, hosts, and prefixes require Enterprise plan.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | Zone ID (32-character hex string) |
files | URLs to purge (max 30) | |
hosts | Hostnames to purge (Enterprise) | |
prefixes | URL prefixes to purge (Enterprise) | |
purge_everything | boolean | Purge all cached content |
tags | Cache tags to purge (Enterprise) |