Skip to navigation

Cloudflare

Connect your AI agents to Cloudflare.
Ready to connect

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.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.

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.

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.

delete_dns_record

Delete a DNS record from a Cloudflare zone.

list_zone_rulesets

List all rulesets for a Cloudflare zone including WAF custom rules, rate limiting rules, transform rules, and cache rules.

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.

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.

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'.

list_zones

List all Cloudflare zones (domains). Supports filtering by domain name, status, and account ID with pagination.

get_zone

Get detailed information about a specific Cloudflare zone including nameservers, plan, and status.

create_zone

Add a new domain to Cloudflare. Requires the domain name and account ID.

delete_zone

Permanently remove a zone (domain) from Cloudflare.

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.

browser_fetch_markdown

Extract clean markdown from a URL using Cloudflare Browser Rendering.

browser_get_crawl_status

Get the status and results of a crawl job started with browser_start_crawl.

browser_get_links

Extract all links from a rendered page using Cloudflare Browser Rendering.

browser_render_pdf

Render a URL as a PDF document using Cloudflare Browser Rendering.

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.

browser_take_screenshot

Take a screenshot of a URL using Cloudflare Browser Rendering.

browser_take_snapshot

Take a full snapshot of a page (screenshot + HTML content) using Cloudflare Browser Rendering.

batch_dns_records

Apply DNS record deletes, patches, puts, then posts in one batch. Propagation across Cloudflare is not atomic.

export_dns_records

Export matching DNS records from a zone as BIND zone-file text.

import_dns_records

Import BIND zone-file text into a zone, optionally proxying eligible records.

get_dnssec

Read a zone’s DNSSEC status and signing information.

update_dnssec

Change a zone’s DNSSEC status, multi-signer, presigned, or NSEC3 settings.

list_kv_namespaces

List an account’s Workers KV namespaces. Use page and per_page to paginate; result_info contains page metadata.

create_kv_namespace

Create a Workers KV namespace with a title and optional jurisdiction or mode.

delete_kv_namespace

Permanently delete a Workers KV namespace and all its keys and values.

list_kv_keys

List keys in a Workers KV namespace, optionally filtered by prefix. Pass result_info.cursor as cursor for the next page.

get_kv_value

Read a key’s value as UTF-8 text from a Workers KV namespace. Binary values are not supported.

put_kv_value

Store UTF-8 text and optional JSON metadata under a KV key, replacing its value and expiration.

delete_kv_value

Delete a key and its stored value from a Workers KV namespace.

delete_worker_script

Permanently delete a Worker script. Setting force can break Workers that reference it.

get_worker_cron_triggers

Read the cron schedules that trigger a Worker script.

update_worker_cron_triggers

Replace all cron schedules for a Worker script. An empty schedules array removes all cron triggers.

list_worker_secrets

List a Worker script’s secret binding names and types without revealing secret values.

put_worker_secret

Create or replace a secret_text binding on a Worker script using the supplied secret value.

delete_worker_secret

Remove a named secret binding from a Worker script.

list_worker_scripts

List Cloudflare Worker scripts in an account.

get_worker_settings

Read a Worker’s settings and resource bindings.

get_worker_source

Read Worker source text with a combined max_chars budget and optional module_name filter; check truncated before relying on completeness.

list_worker_versions

List Worker versions, newest first, with page/per_page pagination.

get_worker_version

Read a Worker version’s metadata, annotations and resource configuration.

list_worker_deployments

List Worker deployments with page/per_page pagination and creation time filters, current first.

get_worker_deployment

Read a Worker deployment including its version traffic allocations.

list_worker_routes

List all Worker routes in a zone, including URL patterns and script names.

get_worker_route

Read a zone’s Worker route pattern and assigned script.

query_worker_logs

Query recent Worker log events for a script and millisecond time range with typed AND filters.

deploy_worker

Deploy existing Worker versions, replacing live traffic with one version at 100% or a two-version split totaling 100%.

rollback_worker

Roll back traffic to an explicit version or the latest earlier different sole version among 20 deployments.

list_gateway_rules

List an account’s Zero Trust Gateway rules, optionally filtering, searching, or sorting the results.

get_gateway_rule

Read a Zero Trust Gateway rule’s traffic filters, action, and settings by rule ID.

create_gateway_rule

Create a Zero Trust Gateway rule with the supplied action, traffic filters, and settings.

update_gateway_rule

Replace a Zero Trust Gateway rule with the supplied name, action, traffic filters, and settings.

delete_gateway_rule

Delete a Zero Trust Gateway traffic filtering rule.

list_devices

List devices enrolled in an account using the deprecated Zero Trust devices endpoint.

list_tunnels

List and filter an account’s Cloudflare Tunnels. Use page and per_page to paginate; result_info contains page metadata.

get_tunnel

Read a Cloudflare Tunnel’s metadata and status by tunnel ID.