Services / Cloudflare

Connect Cloudflare to Claude and ChatGPT

DNS records and cache purges.

  • API key or app password
  • 7 actions, 2 read-only
  • Several accounts at once
Connect Cloudflare Free plan, no card

How to connect

A Cloudflare API token with the right permissions. Takes about two minutes.

  1. Open Cloudflare → My Profile → API Tokens and click Create Token.Open Cloudflare API tokens
  2. Use the Edit zone DNS template. Add Zone → Cache Purge → Purge if the AI may purge the cache.
  3. Under Zone Resources pick all zones or specific domains, then Continue to summary → Create Token.
  4. Copy the token (it is shown once) and paste it into the form.
  • Do not use the Global API Key: a token with limited permissions is safer.
  • The AI changes or deletes DNS records only after you confirm.

Try asking

  • Which DNS records does acme.com have in Cloudflare?
  • Add a CNAME docs.acme.com pointing to acme.github.io, not proxied.
  • Purge the cache for https://acme.com/pricing.
  • Does the domain have SPF and DMARC records?

Several accounts? Connect each one and give it a name, for example Work and Personal.

What the AI can do: 7 actions

Each action can be turned off per account, and changes can wait for your OK.

ActionAccess
Zones
Domains with ids and status.
cloudflare_list_zones
Reads
DNS records
Records of a zone by type or name.
cloudflare_list_dns_records
Reads
Add a record
Adds a DNS record.
cloudflare_create_dns_record
Makes changes
Change a record
Changes fields of a DNS record.
cloudflare_update_dns_record
Risky
Delete a record
Deletes a DNS record.
cloudflare_delete_dns_record
Risky
Purge cache
Purges the cache of chosen URLs.
cloudflare_purge_cache
Makes changes
Purge all cache
Purges the whole cache of a zone.
cloudflare_purge_everything
Risky