Manage DNS records, list zones, deploy Workers, and query analytics via Cloudflare API
40+ deploysclaude mcp add cloudflare --url https://datafaucet.dev/api/mcp/t/cloudflare
Run this command in your terminal · most users connect in under 60s
GET endpoints
list_zones
List all zones (domains) with ID, name, status (active/pending/moved), name_servers, and plan info. Filter by 'name' (domain), 'status', 'page', 'per_page' (1-50). Zone ID is required for all other Cloudflare endpoints.
https://api.cloudflare.com/client/v4/zones
list_dns_records
List DNS records for a zone with type (A/AAAA/CNAME/MX/TXT/NS/SRV), name, content, TTL, proxied status, and priority. Filter by 'type', 'name', 'content'. Paginate with 'page' and 'per_page' (1-100).
https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_records
list_workers
List deployed Workers scripts with script name, created/modified dates, and usage_model (bundled/unbound). Use account_id (not zone_id) for this endpoint. Each script name maps to a worker route.
https://api.cloudflare.com/client/v4/accounts/{account_id}/workers/scripts
get_analytics
Get zone traffic analytics with total requests, bandwidth, threats blocked, page views, and unique visitors. Query params: 'since' and 'until' (ISO8601 or relative like -1440 for last 24h). Returns time-series and totals.
https://api.cloudflare.com/client/v4/zones/{zone_id}/analytics/dashboard
get_zone_settings
Get all zone settings including SSL mode (off/flexible/full/strict), always_use_https, min_tls_version, browser_cache_ttl, security_level, and WAF status. Each setting has id, value, editable boolean, and modified_on timestamp.
https://api.cloudflare.com/client/v4/zones/{zone_id}/settings
POST endpoints
create_dns_record
Create a DNS record with 'type' (A/AAAA/CNAME/MX/TXT), 'name' (subdomain or @), 'content' (IP/target), 'ttl' (1=auto, or seconds), 'proxied' (true=orange cloud). For MX: add 'priority'. Returns record ID for updates/deletes.
https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_records
purge_cache
Purge all cached files for a zone. Use {"purge_everything":true} for full purge, or {"files":["https://example.com/style.css"]} for selective purge by URL, or {"tags":["header"]} for tag-based purge (Enterprise). Returns success boolean.
https://api.cloudflare.com/client/v4/zones/{zone_id}/purge_cache
DELETE endpoints
delete_dns_record
Delete a DNS record by ID. Get record_id from list_dns_records. Returns {"result":{"id":"..."}} on success. Irreversible operation.
https://api.cloudflare.com/client/v4/zones/{zone_id}/dns_records/{record_id}
Run this in your terminal:
claude mcp add cloudflare https://datafaucet.dev/api/mcp/t/cloudflare
Connect Cloudflare to your AI agent in under 60 seconds. No account required.
{notion_token}) with your real credentialsNeed API keys? Try our free sandbox templates first to see MCP in action with zero setup.
Replace these placeholders with your real values before deploying:
{account_id}Resource identifier{cloudflare_api_token}API settings page{record_id}Resource identifier{record_name}Your value{record_value}Your value{zone_id}Resource identifierPreview:
GET https://api.cloudflare.com/client/v4/zones Authorization: Bearer {cloudflare_api_token} Content-Type: application/json
claude mcp add cloudflare --url https://datafaucet.dev/api/mcp/t/cloudflareWhat your AI agent sees
I have access to 8 tools from Cloudflare: list_zones, list_dns_records, create_dns_record, and 5 more.
“List all zones (domains) with ID, name, status (active/pending/moved), name_servers, and plan info. Filter by 'name' (domain), 'status', 'page', 'per_page' (1-50). Zone ID is required for all other Cloudflare endpoints.”
Calling list_zones... Done. Here are the results.
Try these prompts
“Show me the traffic analytics for the last 24 hours”
Copy“List all DNS records for the production domain”
Copy“Purge the CDN cache for /api/* routes”
CopyClick any prompt to copy, then paste into your AI client.