Cloudflare MCP by usefulapi

v1.2.1
io.usefulapi/cloudflare Checked 1 day ago Published 7 hours ago

Read zones, DNS, Workers, storage and audit logs; change DNS records and purge cache in Cloudflare.

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

cloudflare_verify_token Verify the API token

Check that the configured API token is active and show its id and status. Cheap first call to confirm the connection. Cloudflare API: GET /user/tokens/verify.

cloudflare_list_accounts List accounts

List the Cloudflare accounts this token can access, with their ids and names. Use the id as account_id in the account tools. Cloudflare API: GET /accounts.

ParameterTypeDescription
namestringFilter accounts by name.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_account_members List account members

List the members of an account with their status and roles. Cloudflare API: GET /accounts/{account_id}/members.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).
statusstringFilter by membership status.

cloudflare_list_audit_logs List audit logs

List account audit log entries (who changed what and when), filterable by time range, action type and actor email. Cloudflare API: GET /accounts/{account_id}/audit_logs.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
action_typestringFilter by action type (e.g. create, delete, update).
actor_emailstringFilter by actor email address.
beforestringEnd time, RFC 3339.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).
sincestringStart time, RFC 3339 (e.g. 2026-11-01T00:00:00Z).

cloudflare_list_zones List zones

List DNS zones (domains) in the token's accounts, with status, plan and name servers. Use the id as zone_id in the zone tools. Cloudflare API: GET /zones.

ParameterTypeDescription
account_idstringOnly zones in this account id.
namestringFilter by domain name, e.g. example.com.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).
statusstringFilter by zone status.

cloudflare_get_zone Get a zone

Get one zone with its status, plan, name servers and activation state. Cloudflare API: GET /zones/{zone_id}.

ParameterTypeDescription
zone_id *stringThe zone id (from cloudflare_list_zones).

cloudflare_list_dns_records List DNS records

List DNS records of a zone, filterable by type and name. Each record has its id, type, name, content, TTL and proxy state. Cloudflare API: GET /zones/{zone_id}/dns_records.

ParameterTypeDescription
zone_id *stringThe zone id (from cloudflare_list_zones).
contentstringExact record content (for example an IP address).
namestringExact record name, e.g. www.example.com.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).
typestringDNS record type.

cloudflare_get_dns_record Get a DNS record

Get one DNS record by id, with its type, name, content, TTL, proxy state and comment. Cloudflare API: GET /zones/{zone_id}/dns_records/{dns_record_id}.

ParameterTypeDescription
dns_record_id *stringThe DNS record id (from cloudflare_list_dns_records).
zone_id *stringThe zone id (from cloudflare_list_zones).

cloudflare_list_workers List Workers

List the Worker scripts deployed in an account, with their names and last-modified times. Cloudflare API: GET /accounts/{account_id}/workers/scripts.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).

cloudflare_list_kv_namespaces List KV namespaces

List Workers KV namespaces in an account, with their ids and titles. Cloudflare API: GET /accounts/{account_id}/storage/kv/namespaces.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_kv_keys List KV keys

List key names in a Workers KV namespace (names only, not values). Use cursor from the result for the next page. Cloudflare API: GET /accounts/{account_id}/storage/kv/namespaces/{namespace_id}/keys.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
namespace_id *stringThe KV namespace id (from cloudflare_list_kv_namespaces).
cursorstringCursor from the previous page.
limitintegerKeys per page (max 1000).
prefixstringOnly keys that start with this prefix.

cloudflare_list_d1_databases List D1 databases

List D1 SQL databases in an account, with their ids, names and regions. Cloudflare API: GET /accounts/{account_id}/d1/database.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
namestringFilter by database name.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_r2_buckets List R2 buckets

List R2 object storage buckets in an account, with names, locations and creation times. Cloudflare API: GET /accounts/{account_id}/r2/buckets.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
cursorstringCursor from the previous page.
name_containsstringOnly buckets whose name contains this text.
per_pageintegerResults per page (max 100).

cloudflare_list_pages_projects List Pages projects

List Cloudflare Pages projects in an account, with their latest deployment and domains. Cloudflare API: GET /accounts/{account_id}/pages/projects.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_tunnels List Tunnels

List Cloudflare Tunnels (cloudflared) in an account, with their status and connection state. Cloudflare API: GET /accounts/{account_id}/cfd_tunnel.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
namestringFilter by tunnel name.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_access_apps List Access applications

List Cloudflare Access applications (Zero Trust protected apps) in an account, with their domains and session settings. Cloudflare API: GET /accounts/{account_id}/access/apps.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
domainstringFilter by application domain.
namestringFilter by application name.
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_list_queues List Queues

List Cloudflare Queues in an account, with their ids, names and creation times. Cloudflare API: GET /accounts/{account_id}/queues.

ParameterTypeDescription
account_id *stringThe account id (from cloudflare_list_accounts).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (max 100).

cloudflare_create_dns_record Create a DNS record

Create a DNS record in a zone. This changes live DNS: the new record takes effect for visitors after the TTL. Cloudflare API: POST /zones/{zone_id}/dns_records.

ParameterTypeDescription
content *stringRecord value, e.g. an IP address or a hostname.
name *stringRecord name, e.g. www or www.example.com.
type *stringDNS record type.
zone_id *stringThe zone id (from cloudflare_list_zones).
commentstringShort note stored with the record.
priorityintegerPriority (MX and SRV records only).
proxiedbooleanRoute traffic through Cloudflare (A, AAAA, CNAME only).
ttlintegerTTL in seconds; 1 means automatic (default).

cloudflare_update_dns_record Update a DNS record

Change fields of an existing DNS record (for example its content, TTL or proxy state). This changes live DNS. Only the fields you pass change. Cloudflare API: PATCH /zones/{zone_id}/dns_records/{dns_record_id}.

ParameterTypeDescription
dns_record_id *stringThe DNS record id (from cloudflare_list_dns_records).
zone_id *stringThe zone id (from cloudflare_list_zones).
commentstringNew note stored with the record.
contentstringNew record value.
namestringNew record name.
proxiedbooleanNew proxy state (A, AAAA, CNAME only).
ttlintegerNew TTL in seconds; 1 means automatic.
typestringDNS record type.

cloudflare_purge_cache Purge the cache

Remove cached files from Cloudflare's edge for a zone: all files, or only the listed URLs. Visitors then fetch fresh content from the origin. Cloudflare API: POST /zones/{zone_id}/purge_cache.

ParameterTypeDescription
zone_id *stringThe zone id (from cloudflare_list_zones).
filesarrayUp to 30 full URLs to purge.
purge_everythingbooleantrue = purge the whole zone cache. Use with care.