Cloudflare for AI agents

Cloudflare secures and speeds up websites and applications through a global network, handling DNS, firewall rules, and traffic routing for a domain. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

Security and identityAPI keyMCP + RESTcloudflare.com
AUDIT LOG · CLOUDFLAREPOLICY: acme-support
09:41:07 · claude · u_8f2read
cloudflare.list_pools
List Pools✓ allowed · 212ms
09:41:08 · claude · u_8f2read
cloudflare.get_lists
List WAF Lists✓ allowed · 164ms
09:41:09 · claude · u_8f2write
cloudflare.create_list
Create WAF List✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
cloudflare.delete_list
Delete WAF List✕ blocked · policy: deny
EVERY CLOUDFLARE CALL, ON THE RECORD
01 · USE CASES

What agents do in Cloudflare.

01

Check current firewall rules

List a zone's firewall rules before deciding whether to add or adjust a rule.

02

Add a DNS record

Add a new DNS record to a zone, such as pointing a subdomain at a new server.

03

Confirm before deleting a zone

Confirm before deleting a zone, since every DNS record and setting under it is removed.

02 · ACTIONS

20 Cloudflare actions, graded by risk.

Every Cloudflare action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

10

Look things up. Allowed by default.

  • cloudflare.get_lists
    List WAF Lists
  • cloudflare.list_pools
    List Pools
  • cloudflare.list_zones
    List Zones
  • cloudflare.list_tunnels
    List Tunnels
  • cloudflare.list_accounts
    List Accounts
  • cloudflare.list_monitors
    List Monitors
  • cloudflare.list_dns_records
    List DNS records
  • cloudflare.list_firewall_rules
    List Firewall Rules
  • cloudflare.list_account_members
    List Account Members
  • cloudflare.get_bot_management_settings
    Get Bot Management Settings

write

7

Create and change things. Allow, or ask the user first.

  • cloudflare.create_list
    Create WAF List
  • cloudflare.create_zone
    Create Zone
  • cloudflare.update_list
    Update WAF List
  • cloudflare.update_zone
    Update Zone
  • cloudflare.create_dns_record
    Create DNS record
  • cloudflare.update_dns_record
    Update DNS record
  • cloudflare.update_tunnel_configuration
    Update Tunnel Configuration

destructive

3

Delete, cancel or archive. Ask first, or deny outright.

  • cloudflare.delete_list
    Delete WAF List
  • cloudflare.delete_zone
    Delete Zone
  • cloudflare.delete_dns_record
    Delete DNS Record
03 · HOW IT WORKS

Cloudflare in three steps.

  1. 01Your users connect CloudflareThey add their Cloudflare api key on Arc0 Connect, under your brand. It goes straight into the vault.
  2. 02You set the rulesReads run, writes like “create WAF List” can wait for the user, and “delete WAF List” can be denied outright.
  3. 03Any agent can actYour agent calls Cloudflare through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('cloudflare', {
  read: 'allow',
  write: 'ask',        // create_list
  destructive: 'deny',  // delete_list
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Cloudflare connects.

Users add their Cloudflare api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

The same Cloudflare connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
API key
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Cloudflare from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Cloudflare and Arc0, answered.

Q01

Can I use Cloudflare with Claude, ChatGPT or Cursor?

Yes. Connect Cloudflare to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Cloudflare actions you allow.

Q02

How do users connect Cloudflare?

Users add their Cloudflare api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

Q03

Which Cloudflare actions can my agent take?

20 in total: 10 read, 7 write and 3 destructive, such as “create WAF List”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Cloudflare?

Yes. Actions like “delete WAF List” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Cloudflare too?

Yes. The same Cloudflare connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Cloudflare into your agent.

Your users connect Cloudflare once, under your brand. Your agent gets 20 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan