Cloudflare MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
name | string | Filter accounts by name. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results per page (max 100). |
status | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
action_type | string | Filter by action type (e.g. create, delete, update). |
actor_email | string | Filter by actor email address. |
before | string | End time, RFC 3339. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results per page (max 100). |
since | string | Start 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.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Only zones in this account id. |
name | string | Filter by domain name, e.g. example.com. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results per page (max 100). |
status | string | Filter 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}.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The zone id (from cloudflare_list_zones). |
content | string | Exact record content (for example an IP address). |
name | string | Exact record name, e.g. www.example.com. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results per page (max 100). |
type | string | DNS 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}.
| Parameter | Type | Description |
|---|---|---|
dns_record_id * | string | The DNS record id (from cloudflare_list_dns_records). |
zone_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
namespace_id * | string | The KV namespace id (from cloudflare_list_kv_namespaces). |
cursor | string | Cursor from the previous page. |
limit | integer | Keys per page (max 1000). |
prefix | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
name | string | Filter by database name. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
cursor | string | Cursor from the previous page. |
name_contains | string | Only buckets whose name contains this text. |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
name | string | Filter by tunnel name. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
domain | string | Filter by application domain. |
name | string | Filter by application name. |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
account_id * | string | The account id (from cloudflare_list_accounts). |
page | integer | Page number for pagination (default 1). |
per_page | integer | Results 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.
| Parameter | Type | Description |
|---|---|---|
content * | string | Record value, e.g. an IP address or a hostname. |
name * | string | Record name, e.g. www or www.example.com. |
type * | string | DNS record type. |
zone_id * | string | The zone id (from cloudflare_list_zones). |
comment | string | Short note stored with the record. |
priority | integer | Priority (MX and SRV records only). |
proxied | boolean | Route traffic through Cloudflare (A, AAAA, CNAME only). |
ttl | integer | TTL 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}.
| Parameter | Type | Description |
|---|---|---|
dns_record_id * | string | The DNS record id (from cloudflare_list_dns_records). |
zone_id * | string | The zone id (from cloudflare_list_zones). |
comment | string | New note stored with the record. |
content | string | New record value. |
name | string | New record name. |
proxied | boolean | New proxy state (A, AAAA, CNAME only). |
ttl | integer | New TTL in seconds; 1 means automatic. |
type | string | DNS 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.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The zone id (from cloudflare_list_zones). |
files | array | Up to 30 full URLs to purge. |
purge_everything | boolean | true = purge the whole zone cache. Use with care. |