MCP Cloudflare DNS

v0.1.1
io.github.Ayo-Fam/mcp-cloudflare-dns Checked 3 days ago Published 5 months ago

Cloudflare DNS MCP server: manage zones, records, cache purge, and page rules.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_zones List Zones

List all Cloudflare zones on this account.

ParameterTypeDescription
name_filterOptional domain name substring to filter results (e.g. 'example.com')

get_zone Get Zone

Get details for a specific Cloudflare zone by ID.

ParameterTypeDescription
zone_id *string

get_zone_settings Get Zone Settings

Get key security and performance settings for a zone. Returns SSL mode, security level, minification, always-https, brotli, etc.

ParameterTypeDescription
zone_id *string

list_dns_records List Dns Records

List DNS records for a zone.

ParameterTypeDescription
zone_id *stringCloudflare zone ID
nameFilter by record name (e.g. 'api.example.com')
record_typeFilter by type — A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, etc.

get_dns_record Get Dns Record

Get a specific DNS record by zone ID and record ID.

ParameterTypeDescription
record_id *string
zone_id *string

create_dns_record Create Dns Record

Create a new DNS record.

ParameterTypeDescription
content *stringRecord value (IP address, hostname, text, etc.)
name *stringRecord name (e.g. 'api' or 'api.example.com')
record_type *stringA, AAAA, CNAME, MX, TXT, NS, SRV, CAA, etc.
zone_id *stringCloudflare zone ID
commentOptional note about this record
priorityMX/SRV priority (required for MX records)
proxiedbooleanWhether to proxy through Cloudflare (orange cloud). Only valid for A, AAAA, CNAME.
ttlintegerTTL in seconds. 1 = auto (only valid when proxied=True)

update_dns_record Update Dns Record

Update an existing DNS record. Only the fields you provide will be changed.

ParameterTypeDescription
record_id *stringDNS record ID to update
zone_id *stringCloudflare zone ID
commentUpdate the record comment
contentNew record value
proxiedToggle Cloudflare proxy on/off
ttlNew TTL in seconds (1 = auto)

delete_dns_record Delete Dns Record

Delete a DNS record. Requires CF_ALLOW_DESTRUCTIVE=true.

ParameterTypeDescription
record_id *stringDNS record ID to delete
zone_id *stringCloudflare zone ID

purge_cache Purge Cache

Purge Cloudflare cache for a zone.

ParameterTypeDescription
zone_id *stringCloudflare zone ID
purge_everythingbooleanPurge entire zone cache (overrides urls). Requires CF_ALLOW_DESTRUCTIVE=true.
urlsSpecific URLs to purge (up to 30 per call)

list_page_rules List Page Rules

List page rules for a zone.

ParameterTypeDescription
zone_id *stringCloudflare zone ID
statusFilter by 'active' or 'disabled' (default: all)