Manage DNS records, list zones, deploy Workers, and query analytics via Cloudflare API
40+ deploysYour AI agent gets 5 capabilities in one connection. Deploy once, use from any client.
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
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
Connect Cloudflare to Claude Code with one command:
claude mcp add cloudflare https://datafaucet.dev/api/mcp/t/cloudflare{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_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/cloudflare
Paste into your client's MCP configuration file · most users connect in under 60s
claude mcp add cloudflare --url https://datafaucet.dev/api/mcp/t/cloudflareWhat your AI agent sees
I have access to 5 tools from Cloudflare: list_zones, list_dns_records, create_dns_record, and 2 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
“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”
Copy“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)”
Copy“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”
CopyClick any prompt to copy, then paste into your AI client.