Cloudflare

{/* Generated by scripts/generate-integration-catalog.mjs. Do not edit by hand. */}

At a glance

Credentials

Set these per environment. See Connect an integration.

VariableRequiredDescription
CLOUDFLARE_API_TOKENYesCloudflare API token (scoped Bearer token, not the legacy Global API Key) Docs.

Setup

  1. Sign in to Cloudflare: Go to https://dash.cloudflare.com and sign in. A free account with at least one zone added is sufficient for testing.
  2. Create an API token: Open My Profile > API Tokens (https://dash.cloudflare.com/profile/api-tokens) and create a token. The 'Edit zone DNS' template covers the DNS tools; add Zone:Read and Account:Read permissions for listing.
  3. Set the environment variable: Add the token to your .env as CLOUDFLARE_API_TOKEN=.... (use a scoped API token, not the legacy Global API Key).
  4. Verify access: Run the Verify Token tool, then List Zones.

Provider notes

  • Cloudflare authenticates with 'Authorization: Bearer <token>'
  • Account-scoped endpoints need an account ID - use List Accounts to find yours
  • Tokens can be scoped per zone; if List Zones returns nothing, widen the token's zone resources

Provider API reference.

Tools

ToolAccessDescription
Verify Token<br /><code className="reference-identifier">cloudflare__verify_token</code>ReadVerify token
List Zones<br /><code className="reference-identifier">cloudflare__list_zones</code>ReadList zones
Get Zone<br /><code className="reference-identifier">cloudflare__get_zone</code>ReadGet zone
List DNS Records<br /><code className="reference-identifier">cloudflare__list_dns_records</code>ReadList DNS records
Create DNS Record<br /><code className="reference-identifier">cloudflare__create_dns_record</code>WriteCreate DNS record
Update DNS Record<br /><code className="reference-identifier">cloudflare__update_dns_record</code>WriteUpdate DNS record
List Accounts<br /><code className="reference-identifier">cloudflare__list_accounts</code>ReadList accounts

Verify the connection

Call a read tool such as cloudflare__verify_token with arguments for your account. Confirm that the result comes from the intended account or workspace before enabling write tools.