Cloudflare MCP Pro

v1.1.0
io.github.helbertparanhos/cloudflare-mcp-pro Checked 11 hours ago Published 5 months ago

Cloudflare MCP: DNS, Zones, Workers, KV, R2, D1, Pages, WAF, SSL, Email, AI via REST API v4

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

verify_token

Validate the configured Cloudflare API token and show its status/permissions.

list_accounts

List Cloudflare accounts accessible by the token.

ParameterTypeDescription
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
pagenumberPage number (default 1).
per_pagenumberResults per page (max 50).

list_zones

List zones (domains), optionally filtered by name or status.

ParameterTypeDescription
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
namestringFilter by domain name (exact or substring).
pagenumber
per_pagenumber
statusstringFilter by zone status.

get_zone

Get details of a single zone by ID.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

create_zone

Add a new domain (zone) to an account. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringThe domain name to add (e.g. example.com).
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
typestringZone setup type. Default 'full'.

delete_zone

Delete a zone by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

purge_cache

Purge a zone's cache — everything, or by files/tags/hosts/prefixes. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
filesarraySpecific URLs to purge.
hostsarrayHostnames to purge (Enterprise).
prefixesarrayURL prefixes to purge (Enterprise).
purge_everythingbooleanPurge the entire cache. Mutually exclusive with files/tags/hosts/prefixes.
tagsarrayCache-Tags to purge (Enterprise).

get_zone_analytics

Get HTTP traffic analytics for a zone over a time range (via GraphQL).

ParameterTypeDescription
since *stringHour-aligned ISO 8601 UTC start, e.g. 2024-01-01T00:00:00Z. httpRequests1hGroups buckets are hourly.
until *stringHour-aligned ISO 8601 UTC end, e.g. 2024-01-02T00:00:00Z.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

get_zone_setting

Get a single zone setting (e.g. ssl, always_use_https, min_tls_version).

ParameterTypeDescription
setting *stringSetting id, e.g. ssl, always_use_https, min_tls_version, brotli, http3, security_level.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

update_zone_setting

Update a single zone setting (e.g. set ssl=full, always_use_https=on). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
setting *stringSetting id to change, e.g. ssl, always_use_https, min_tls_version.
value *New value. Type depends on the setting (e.g. ssl='full', always_use_https='on', min_tls_version='1.2').
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_dns_records

List DNS records of a zone, optionally filtered by type/name.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
namestringFilter by record name (FQDN).
pagenumber
per_pagenumber
typestringDNS record type.

create_dns_record

Create a DNS record (A, AAAA, CNAME, TXT, MX, etc). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
content *stringRecord value (IP, target host, text, etc).
name *stringRecord name (e.g. www.example.com or @ for root).
type *stringDNS record type.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
commentstringOptional comment for the record.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
prioritynumberPriority for MX/SRV records.
proxiedbooleanWhether traffic is proxied through Cloudflare (A/AAAA/CNAME only).
ttlnumberTTL in seconds. 1 = automatic. Default 1.

update_dns_record

Update an existing DNS record (partial update). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
record_id *stringDNS record ID (from list_dns_records).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
commentstring
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
contentstring
namestring
prioritynumber
proxiedboolean
ttlnumber
typestringDNS record type.

delete_dns_record

Delete a DNS record by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
record_id *stringDNS record ID to delete.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

get_dnssec

Get the DNSSEC status and DS record details for a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

edit_dnssec

Enable or disable DNSSEC for a zone. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
status *stringSet 'active' to enable DNSSEC, 'disabled' to turn it off.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

export_dns_records

Export all DNS records of a zone as a BIND zone file.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

list_workers

List Worker scripts in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

get_worker

Get a Worker script's settings/metadata.

ParameterTypeDescription
script_name *stringThe Worker script name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

deploy_worker

Create or update (deploy) a Worker script from ES module source. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
script *stringThe Worker source code (ES module format).
script_name *stringThe Worker script name to create/update.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
compatibility_datestringCompatibility date, e.g. 2024-01-01.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
main_modulestringEntry module filename. Default 'worker.js'.

delete_worker

Delete a Worker script by name. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
script_name *stringThe Worker script name to delete.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_worker_routes

List Worker routes (URL patterns mapped to Workers) on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

create_worker_route

Create a Worker route mapping a URL pattern to a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
pattern *stringRoute pattern, e.g. example.com/api/*.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
scriptstringWorker script name to run on this route. Omit to disable on the pattern.

delete_worker_route

Delete a Worker route by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
route_id *stringRoute ID (from list_worker_routes).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

put_worker_secret

Create or update a secret binding on a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringSecret binding name (env var name in the Worker).
script_name *stringThe Worker script name.
text *stringThe secret value.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

delete_worker_secret

Delete a secret binding from a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringSecret binding name to delete.
script_name *stringThe Worker script name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

update_worker_cron

Set the cron triggers (schedules) for a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
crons *arrayList of cron expressions, e.g. ['*/5 * * * *']. Empty array clears triggers.
script_name *stringThe Worker script name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_kv_namespaces

List Workers KV namespaces in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
pagenumber
per_pagenumber

create_kv_namespace

Create a new Workers KV namespace. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
title *stringHuman-readable namespace title.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

kv_list_keys

List keys in a KV namespace, optionally filtered by prefix.

ParameterTypeDescription
namespace_id *stringKV namespace ID.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
limitnumberMax keys (default 1000).
prefixstringFilter keys by prefix.

kv_get

Read the value of a key in a KV namespace.

ParameterTypeDescription
key *stringThe key to read.
namespace_id *stringKV namespace ID.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

kv_put

Write a value to a key in a KV namespace, with optional TTL. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
key *stringThe key to write.
namespace_id *stringKV namespace ID.
value *stringThe value to store.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
expiration_ttlnumberSeconds until the key expires.

kv_delete

Delete a key from a KV namespace. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
key *stringThe key to delete.
namespace_id *stringKV namespace ID.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_r2_buckets

List R2 buckets in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
name_containsstringFilter buckets by name substring.

create_r2_bucket

Create a new R2 bucket. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringBucket name (lowercase, hyphens allowed).
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
location_hintstringOptional region hint for the bucket location.

delete_r2_bucket

Delete an (empty) R2 bucket. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringBucket name to delete (must be empty).
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_d1_databases

List D1 databases in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
namestringFilter by database name.
pagenumber
per_pagenumber

create_d1_database

Create a new D1 database. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
name *stringDatabase name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
primary_location_hintstringOptional primary location hint, e.g. wnam, weur.

query_d1

Execute a SQL statement against a D1 database (with optional bound params). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
database_id *stringD1 database ID (from list_d1_databases).
sql *stringThe SQL statement to execute.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
paramsarrayBound parameters for '?' placeholders in the SQL.

list_pages_projects

List Cloudflare Pages projects in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

get_pages_project

Get details of a Cloudflare Pages project.

ParameterTypeDescription
project_name *stringThe Pages project name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

list_firewall_rulesets

List WAF rulesets configured on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

get_ruleset

Get a single ruleset (with its rules) by ID.

ParameterTypeDescription
ruleset_id *stringRuleset ID (from list_firewall_rulesets).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

list_access_rules

List IP/ASN/country access rules (block/challenge/allow) on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
modestringAction to take for matching requests.
pagenumber
per_pagenumber

create_access_rule

Create an IP/ASN/country access rule (block, challenge, or whitelist). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
mode *stringAction to take for matching requests.
target *stringWhat the rule matches on.
value *stringMatch value, e.g. '1.2.3.4', '1.2.3.0/24', 'AS13335', or 'US'.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
notesstringOptional note describing the rule.

delete_access_rule

Delete an access rule by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
rule_id *stringAccess rule ID (from list_access_rules).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_page_rules

List page rules on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
statusstringFilter by status.

create_page_rule

Create a page rule (URL pattern + actions like cache_level, forwarding_url). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
actions *arrayList of actions to apply when the pattern matches.
url_pattern *stringURL match pattern, e.g. *example.com/images/*.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
prioritynumberRule priority (higher runs first).
statusstringRule status. Default 'active'.

delete_page_rule

Delete a page rule by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
rule_id *stringPage rule ID (from list_page_rules).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_certificate_packs

List SSL/TLS certificate packs on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
statusstringFilter by certificate pack status. Default 'all'.

get_ssl_verification

Get SSL/TLS certificate verification status for a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

order_certificate_pack

Order an advanced certificate pack for one or more hostnames. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
hosts *arrayHostnames to cover, e.g. ['example.com', '*.example.com'].
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
certificate_authoritystringCertificate authority. Default 'google'.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
validation_methodstringDomain control validation method. Default 'txt'.
validity_daysCertificate validity in days. Default 90.

list_custom_hostnames

List custom hostnames (SSL for SaaS) on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
fetch_allbooleanWhen true, follow pagination and return all pages combined (ignores page/per_page).
hostnamestringFilter by hostname.
pagenumber
per_pagenumber

create_custom_hostname

Add a custom hostname (SSL for SaaS) to a zone. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
hostname *stringThe custom hostname to add, e.g. app.customer.com.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
ssl_methodstringSSL validation method. Default 'http'.
ssl_typestringCertificate type. Default 'dv'.

delete_custom_hostname

Delete a custom hostname by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
custom_hostname_id *stringCustom hostname ID (from list_custom_hostnames).
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_email_rules

List Email Routing rules on a zone.

ParameterTypeDescription
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

create_email_rule

Create an Email Routing rule (forward an address to a destination). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
forward_to *stringVerified destination address to forward matched mail to.
match_to *stringSource address to match, e.g. hello@example.com.
zone_id *stringThe Cloudflare zone ID (32-char hex). Get it from list_zones.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
enabledbooleanWhether the rule is active. Default true.
namestringOptional rule name.

list_email_destinations

List verified Email Routing destination addresses in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

list_queues

List Cloudflare Queues in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

create_queue

Create a new Cloudflare Queue. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
queue_name *stringName for the new queue.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

delete_queue

Delete a Queue by ID. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
queue_id *stringQueue ID (from list_queues).
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_tunnels

List Cloudflare Tunnels (cloudflared) in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
is_deletedbooleanInclude deleted tunnels. Default false (active only).

get_tunnel

Get details of a Cloudflare Tunnel by ID.

ParameterTypeDescription
tunnel_id *stringTunnel ID (from list_tunnels).
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

list_turnstile_widgets

List Turnstile widgets in an account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.

create_turnstile_widget

Create a Turnstile widget (CAPTCHA alternative) for given domains. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
domains *arrayAllowed domains for the widget, e.g. ['example.com'].
name *stringHuman-readable widget name.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
modestringWidget mode. Default 'managed'.

list_ai_models

Search the catalog of Workers AI models available to the account.

ParameterTypeDescription
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
searchstringFilter models by name/task substring.
taskstringFilter by task, e.g. 'Text Generation'.

run_ai

Run inference on a Workers AI model (text generation, embeddings, classification). Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
input *objectModel inputs as a JSON object. For text generation use { prompt } or { messages: [...] }; for embeddings use { text }.
model *stringModel id, e.g. @cf/meta/llama-3.1-8b-instruct or @cf/baai/bge-base-en-v1.5.
account_idstringCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…

list_logpush_jobs

List Logpush jobs for a zone or account.

ParameterTypeDescription
account_idstringList account-scoped jobs (used when zone_id is omitted).
zone_idstringThe Cloudflare zone ID (32-char hex). Get it from list_zones.

create_logpush_job

Create a Logpush job streaming a dataset to a destination. Requires confirm:true (human-approval gate); without it returns a preview only.

ParameterTypeDescription
dataset *stringDataset, e.g. http_requests, firewall_events, dns_logs.
destination_conf *stringDestination URI, e.g. s3://bucket/path?region=us-east-1 or r2://... or an HTTPS endpoint.
name *stringJob name.
account_idstringCreate an account-scoped job (used when zone_id is omitted).
confirmbooleanHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef…
enabledbooleanWhether the job starts enabled. Default true.
logpull_optionsstringOptional fields/timestamp options, e.g. 'fields=...&timestamps=rfc3339'.
zone_idstringThe Cloudflare zone ID (32-char hex). Get it from list_zones.