Cloudflare MCP by usefulapi

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

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
95%
Naming quality
79%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'cloudflare_list_account_members' name length outside 3-30 rangein cloudflare_list_account_members

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~3,947Tokens (tool definitions)
~1.5 KBTypical response size
Significant attention impact (3.08% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "cloudflare": {
      "url": "https://cloudflare.usefulapi.io/mcp"
    }
  }
}

Remote endpoints

https://cloudflare.usefulapi.io/mcpstreamable-http

What it can do

Tool inventory

Tools (20)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢cloudflare_verify_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.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_accounts(name, page, per_page)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Filter accounts by name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_account_members(account_id, status, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "status": {
      "description": "Filter by membership status.",
      "type": "string",
      "enum": [
        "accepted",
        "pending",
        "rejected"
      ]
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_audit_logs(account_id, since, before, action_type, actor_email, ...)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "since": {
      "description": "Start time, RFC 3339 (e.g. 2026-11-01T00:00:00Z).",
      "type": "string"
    },
    "before": {
      "description": "End time, RFC 3339.",
      "type": "string"
    },
    "action_type": {
      "description": "Filter by action type (e.g. create, delete, update).",
      "type": "string"
    },
    "actor_email": {
      "description": "Filter by actor email address.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_zones(name, status, account_id, page, per_page)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Filter by domain name, e.g. example.com.",
      "type": "string"
    },
    "status": {
      "description": "Filter by zone status.",
      "type": "string",
      "enum": [
        "active",
        "pending",
        "initializing",
        "moved"
      ]
    },
    "account_id": {
      "description": "Only zones in this account id.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_get_zone(zone_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    }
  },
  "required": [
    "zone_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_dns_records(zone_id, type, name, content, page, ...)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    },
    "type": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "TXT",
        "NS",
        "SRV",
        "CAA",
        "PTR"
      ],
      "description": "DNS record type."
    },
    "name": {
      "description": "Exact record name, e.g. www.example.com.",
      "type": "string"
    },
    "content": {
      "description": "Exact record content (for example an IP address).",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "zone_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_get_dns_record(zone_id, dns_record_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    },
    "dns_record_id": {
      "type": "string",
      "minLength": 1,
      "description": "The DNS record id (from cloudflare_list_dns_records)."
    }
  },
  "required": [
    "zone_id",
    "dns_record_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_workers(account_id)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_kv_namespaces(account_id, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_kv_keys(account_id, namespace_id, prefix, limit, cursor)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "namespace_id": {
      "type": "string",
      "minLength": 1,
      "description": "The KV namespace id (from cloudflare_list_kv_namespaces)."
    },
    "prefix": {
      "description": "Only keys that start with this prefix.",
      "type": "string"
    },
    "limit": {
      "description": "Keys per page (max 1000).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 1000
    },
    "cursor": {
      "description": "Cursor from the previous page.",
      "type": "string"
    }
  },
  "required": [
    "account_id",
    "namespace_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_d1_databases(account_id, name, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "name": {
      "description": "Filter by database name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_r2_buckets(account_id, name_contains, per_page, cursor)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "name_contains": {
      "description": "Only buckets whose name contains this text.",
      "type": "string"
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    },
    "cursor": {
      "description": "Cursor from the previous page.",
      "type": "string"
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_pages_projects(account_id, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_tunnels(account_id, name, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "name": {
      "description": "Filter by tunnel name.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_access_apps(account_id, name, domain, page, per_page)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "name": {
      "description": "Filter by application name.",
      "type": "string"
    },
    "domain": {
      "description": "Filter by application domain.",
      "type": "string"
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢cloudflare_list_queues(account_id, page, per_page)

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

Input Schema

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "minLength": 1,
      "description": "The account id (from cloudflare_list_accounts)."
    },
    "page": {
      "description": "Page number for pagination (default 1).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "per_page": {
      "description": "Results per page (max 100).",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "account_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴cloudflare_create_dns_record(zone_id, type, name, content, ttl, ...)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    },
    "type": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "TXT",
        "NS",
        "SRV",
        "CAA",
        "PTR"
      ],
      "description": "DNS record type."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Record name, e.g. www or www.example.com."
    },
    "content": {
      "type": "string",
      "minLength": 1,
      "description": "Record value, e.g. an IP address or a hostname."
    },
    "ttl": {
      "description": "TTL in seconds; 1 means automatic (default).",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "proxied": {
      "description": "Route traffic through Cloudflare (A, AAAA, CNAME only).",
      "type": "boolean"
    },
    "priority": {
      "description": "Priority (MX and SRV records only).",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "comment": {
      "description": "Short note stored with the record.",
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "zone_id",
    "type",
    "name",
    "content"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴cloudflare_update_dns_record(zone_id, dns_record_id, type, name, content, ...)

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

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    },
    "dns_record_id": {
      "type": "string",
      "minLength": 1,
      "description": "The DNS record id (from cloudflare_list_dns_records)."
    },
    "type": {
      "type": "string",
      "enum": [
        "A",
        "AAAA",
        "CNAME",
        "MX",
        "TXT",
        "NS",
        "SRV",
        "CAA",
        "PTR"
      ],
      "description": "DNS record type."
    },
    "name": {
      "description": "New record name.",
      "type": "string",
      "minLength": 1
    },
    "content": {
      "description": "New record value.",
      "type": "string",
      "minLength": 1
    },
    "ttl": {
      "description": "New TTL in seconds; 1 means automatic.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "proxied": {
      "description": "New proxy state (A, AAAA, CNAME only).",
      "type": "boolean"
    },
    "comment": {
      "description": "New note stored with the record.",
      "type": "string",
      "maxLength": 100
    }
  },
  "required": [
    "zone_id",
    "dns_record_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴cloudflare_purge_cache(zone_id, purge_everything, files)

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.

Input Schema

{
  "type": "object",
  "properties": {
    "zone_id": {
      "type": "string",
      "minLength": 1,
      "description": "The zone id (from cloudflare_list_zones)."
    },
    "purge_everything": {
      "description": "true = purge the whole zone cache. Use with care.",
      "type": "boolean"
    },
    "files": {
      "description": "Up to 30 full URLs to purge.",
      "maxItems": 30,
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "required": [
    "zone_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded20 tools