Cloudflare
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. Use this to test connectivity and confirm authentication is working correctly.
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. Use list_zones first to get the zone ID.
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. Use list_dns_records to find the record ID and zone ID.
Delete a DNS record from a Cloudflare zone. This is irreversible. Use list_dns_records to find the record ID and zone ID.
List all rulesets for a Cloudflare zone including WAF custom rules, rate limiting rules, transform rules, and cache rules. Use list_zones first to get the zone ID.
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. Use list_zones first to get the zone ID.
Get a specific zone setting value. Common settings: ssl, security_level, min_tls_version, always_use_https, development_mode, cache_level, browser_cache_ttl. Use list_zones first to get the zone ID.
Update a zone setting. Examples: ssl=‘strict’, security_level=‘high’, min_tls_version=‘1.2’, always_use_https=‘on’, development_mode=‘on’. Use get_zone_setting first to see the current value.
List all Cloudflare zones (domains). Supports filtering by domain name, status, and account ID with pagination. Returns zone IDs needed for DNS, settings, and cache operations.
Get detailed information about a specific Cloudflare zone including nameservers, plan, and status. Use list_zones first to find the zone ID.
Add a new domain to Cloudflare. Requires the domain name and account ID. Use list_accounts to find valid account IDs. After creation, update DNS nameservers at your registrar.
Permanently remove a zone (domain) from Cloudflare. This is irreversible and removes all associated DNS records and settings. Use list_zones to find the zone ID.
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. Executes JavaScript before extracting content.
Extract clean markdown from a URL using Cloudflare Browser Rendering. Renders JavaScript before extracting content.
Get the status and results of a crawl job started with browser_start_crawl. Returns job status, progress, and crawled page records with pagination.
Extract all links from a rendered page using Cloudflare Browser Rendering. Returns a list of URLs found on the page.
Render a URL as a PDF document using Cloudflare Browser Rendering. Returns base64-encoded PDF. Supports paper format, landscape, and margin options.
Scrape specific elements from a rendered page using CSS selectors via Cloudflare Browser Rendering.
Start an async crawl job using Cloudflare Browser Rendering. Returns a job ID. Use browser_get_crawl_status to poll for results.
Take a screenshot of a URL using Cloudflare Browser Rendering. Returns base64-encoded image.
Take a full snapshot of a page (screenshot + HTML content) using Cloudflare Browser Rendering. Returns both a base64 screenshot and the rendered HTML.