> This page is for Workforce.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Cloudflare

**Authentication:** API token or global API key. See [Magic Link](/merge-agent-handler/features/magic-link) for the runtime auth flow.

## Sample use cases

* List every WAF rule on `acme.com` and flag rules in `simulate` mode older than 30 days.
* Show me the top blocked countries for `acme.com` over the last 24 hours.
* Purge the cache for `acme.com/blog/*` after the migration deploy.

## Available Tools

#### verify_token

Verify the current Cloudflare API token is valid and active. Use this to test connectivity and confirm authentication is working correctly.

#### get_user

Get the current authenticated Cloudflare user's profile information including email, name, and account status.

#### list_accounts

List all Cloudflare accounts the authenticated user has access to. Supports filtering by name and pagination.

#### get_account

Get details of a specific Cloudflare account by ID. Use list_accounts first to find valid account IDs.

#### purge_cache

Purge cached content for a Cloudflare zone.

#### list_dns_records

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_dns_record

Get details of a specific DNS record by ID. Use list_dns_records first to find the record ID and zone ID.

#### create_dns_record

Create a new DNS record in a Cloudflare zone.

#### update_dns_record

Update an existing DNS record. Only specified fields are modified. Use list_dns_records to find the record ID and zone ID.

#### delete_dns_record

Delete a DNS record from a Cloudflare zone. This is irreversible. Use list_dns_records to find the record ID and zone ID.

#### list_zone_rulesets

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_zone_ruleset

Get a specific ruleset with all its rules. Use list_zone_rulesets first to find the ruleset ID.

#### create_zone_ruleset

Create a new zone ruleset with WAF custom rules.

#### update_zone_ruleset

Update a zone ruleset by replacing all its rules.

#### delete_zone_ruleset

Delete a zone ruleset and all its rules. This is irreversible. Use list_zone_rulesets to find the ruleset ID.

#### list_zone_settings

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_zone_setting

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_zone_setting

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_zones

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_zone

Get detailed information about a specific Cloudflare zone including nameservers, plan, and status. Use list_zones first to find the zone ID.

#### create_zone

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.

#### delete_zone

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.

#### browser_extract_json

Extract structured JSON data from a rendered page using AI via Cloudflare Browser Rendering.

#### browser_fetch_content

Fetch rendered HTML content from a URL using Cloudflare Browser Rendering. Executes JavaScript before extracting content.

#### browser_fetch_markdown

Extract clean markdown from a URL using Cloudflare Browser Rendering. Renders JavaScript before extracting content.

#### browser_get_crawl_status

Get the status and results of a crawl job started with browser_start_crawl. Returns job status, progress, and crawled page records with pagination.

#### browser_get_links

Extract all links from a rendered page using Cloudflare Browser Rendering. Returns a list of URLs found on the page.

#### browser_render_pdf

Render a URL as a PDF document using Cloudflare Browser Rendering. Returns base64-encoded PDF. Supports paper format, landscape, and margin options.

#### browser_scrape_page

Scrape specific elements from a rendered page using CSS selectors via Cloudflare Browser Rendering.

#### browser_start_crawl

Start an async crawl job using Cloudflare Browser Rendering. Returns a job ID. Use browser_get_crawl_status to poll for results.

#### browser_take_screenshot

Take a screenshot of a URL using Cloudflare Browser Rendering. Returns base64-encoded image.

#### browser_take_snapshot

Take a full snapshot of a page (screenshot + HTML content) using Cloudflare Browser Rendering. Returns both a base64 screenshot and the rendered HTML.