Connects with credentials the end user enters, such as an API key, so you don’t need to register an OAuth app.
Authentication: API token or global API key. See Magic Link for the runtime auth flow.
Sample use cases
- List every WAF rule on
acme.comand flag rules insimulatemode older than 30 days. - Show me the top blocked countries for
acme.comover the last 24 hours. - Purge the cache for
acme.com/blog/*after the migration deploy.
Available Tools
Verify the current Cloudflare API token is valid and active.
Get the current authenticated Cloudflare user’s profile information including email, name, and account status.
List all Cloudflare accounts the authenticated user has access to. Supports filtering by name and pagination.
Get details of a specific Cloudflare account by ID. Use list_accounts first to find valid account IDs.
Purge cached content for a Cloudflare zone.
List DNS records for a Cloudflare zone. Supports filtering by record type (A, AAAA, CNAME, MX, TXT, etc.), name, content, and proxy status with pagination.
Get details of a specific DNS record by ID. Use list_dns_records first to find the record ID and zone ID.
Create a new DNS record in a Cloudflare zone.
Update an existing DNS record. Only specified fields are modified.
Delete a DNS record from a Cloudflare zone.
List all rulesets for a Cloudflare zone including WAF custom rules, rate limiting rules, transform rules, and cache rules.
Get a specific ruleset with all its rules. Use list_zone_rulesets first to find the ruleset ID.
Create a new zone ruleset with WAF custom rules.
Update a zone ruleset by replacing all its rules.
Delete a zone ruleset and all its rules. This is irreversible. Use list_zone_rulesets to find the ruleset ID.
List all settings for a Cloudflare zone including SSL mode, security level, caching, and performance options.
Get a specific zone setting value. Common settings: ssl, security_level, min_tls_version, always_use_https, development_mode, cache_level, browser_cache_ttl.
Update a zone setting. Examples: ssl='strict', security_level='high', min_tls_version='1.2', always_use_https='on', development_mode='on'.
List all Cloudflare zones (domains). Supports filtering by domain name, status, and account ID with pagination.
Get detailed information about a specific Cloudflare zone including nameservers, plan, and status.
Add a new domain to Cloudflare. Requires the domain name and account ID.
Permanently remove a zone (domain) from Cloudflare.
Extract structured JSON data from a rendered page using AI via Cloudflare Browser Rendering.
Fetch rendered HTML content from a URL using Cloudflare Browser Rendering.
Extract clean markdown from a URL using Cloudflare Browser Rendering.
Get the status and results of a crawl job started with browser_start_crawl.
Extract all links from a rendered page using Cloudflare Browser Rendering.
Render a URL as a PDF document using Cloudflare Browser Rendering.
Scrape specific elements from a rendered page using CSS selectors via Cloudflare Browser Rendering.
Start an async crawl job using Cloudflare Browser Rendering.
Take a screenshot of a URL using Cloudflare Browser Rendering.
Take a full snapshot of a page (screenshot + HTML content) using Cloudflare Browser Rendering.
Apply DNS record deletes, patches, puts, then posts in one batch. Propagation across Cloudflare is not atomic.
Export matching DNS records from a zone as BIND zone-file text.
Import BIND zone-file text into a zone, optionally proxying eligible records.
Read a zone’s DNSSEC status and signing information.
Change a zone’s DNSSEC status, multi-signer, presigned, or NSEC3 settings.
List an account’s Workers KV namespaces. Use page and per_page to paginate; result_info contains page metadata.
Create a Workers KV namespace with a title and optional jurisdiction or mode.
Permanently delete a Workers KV namespace and all its keys and values.
List keys in a Workers KV namespace, optionally filtered by prefix. Pass result_info.cursor as cursor for the next page.
Read a key’s value as UTF-8 text from a Workers KV namespace. Binary values are not supported.
Store UTF-8 text and optional JSON metadata under a KV key, replacing its value and expiration.
Delete a key and its stored value from a Workers KV namespace.
Permanently delete a Worker script. Setting force can break Workers that reference it.
Read the cron schedules that trigger a Worker script.
Replace all cron schedules for a Worker script. An empty schedules array removes all cron triggers.
List a Worker script’s secret binding names and types without revealing secret values.
Create or replace a secret_text binding on a Worker script using the supplied secret value.
Remove a named secret binding from a Worker script.
List Cloudflare Worker scripts in an account.
Read a Worker’s settings and resource bindings.
Read Worker source text with a combined max_chars budget and optional module_name filter; check truncated before relying on completeness.
List Worker versions, newest first, with page/per_page pagination.
Read a Worker version’s metadata, annotations and resource configuration.
List Worker deployments with page/per_page pagination and creation time filters, current first.
Read a Worker deployment including its version traffic allocations.
List all Worker routes in a zone, including URL patterns and script names.
Read a zone’s Worker route pattern and assigned script.
Query recent Worker log events for a script and millisecond time range with typed AND filters.
Deploy existing Worker versions, replacing live traffic with one version at 100% or a two-version split totaling 100%.
Roll back traffic to an explicit version or the latest earlier different sole version among 20 deployments.
List an account’s Zero Trust Gateway rules, optionally filtering, searching, or sorting the results.
Read a Zero Trust Gateway rule’s traffic filters, action, and settings by rule ID.
Create a Zero Trust Gateway rule with the supplied action, traffic filters, and settings.
Replace a Zero Trust Gateway rule with the supplied name, action, traffic filters, and settings.
Delete a Zero Trust Gateway traffic filtering rule.
List devices enrolled in an account using the deprecated Zero Trust devices endpoint.
List and filter an account’s Cloudflare Tunnels. Use page and per_page to paginate; result_info contains page metadata.
Read a Cloudflare Tunnel’s metadata and status by tunnel ID.