Skip to content

@elad12390/cloudflare-mcp

2.1.1
ToolInstructionBundle

Description

MCP server for managing Cloudflare through natural language. Control zones, DNS records, cache, firewall rules, and performance optimization. Built-in readonly mode (on by default) — requires explicit permission before making changes.

Triggered by

cloudflareDNS managementcloudflare zonecache purgefirewall rulescloudflare DNS
Download
Review Recommended
tank install @elad12390/cloudflare-mcp

Cloudflare MCP

Core Philosophy

  1. Readonly by default — All write operations blocked until you explicitly grant permission. Ask before making live changes.
  2. Natural language control — Describe what you want; the server translates to Cloudflare API calls.
  3. Confirm before write — Always summarize the change and ask for confirmation before applying.
  4. Zone-scoped — Operations target specific zones (domains); validate zone exists before acting.
  5. Reversible where possible — Prefer non-destructive operations; warn when action is irreversible.

Quick-Start: Common Problems

"Show me my websites"

Ask: "List all my Cloudflare zones"

  • Returns zone names, status, and plan

"Add a DNS record"

  1. Check readonly mode status first — "Is readonly mode enabled?"
  2. Ask user to disable: "I need to add a DNS record to example.com. Please disable readonly mode."
  3. After permission: create the A/CNAME/MX/TXT record

"Purge the cache for example.com"

  1. Confirm readonly is off
  2. Purge by URL list or purge everything
  3. Confirm success

"Block IP / set firewall rule"

  1. Verify zone
  2. Describe the rule (IP, country, User-Agent match)
  3. Set action: block / challenge / allow
  4. Confirm before writing

Decision Trees

TaskActionReadonly required off?
List zones/domainsQuery zonesNo
Check zone statusQuery zone detailsNo
View DNS recordsList DNS recordsNo
Add/edit/delete DNSDNS mutationYes
Purge cacheCache purgeYes
View firewall rulesList rulesNo
Add/edit firewall ruleRule mutationYes
Check analyticsZone analyticsNo
SSL/TLS settingsView or updateYes for update

Reference Index

FileContents
(no references)All documentation is self-contained

Command Palette

Search packages, docs, and navigate Tank