@elad12390/cloudflare-mcp
2.1.1ToolInstructionBundle
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-mcpCloudflare MCP
Core Philosophy
- Readonly by default — All write operations blocked until you explicitly grant permission. Ask before making live changes.
- Natural language control — Describe what you want; the server translates to Cloudflare API calls.
- Confirm before write — Always summarize the change and ask for confirmation before applying.
- Zone-scoped — Operations target specific zones (domains); validate zone exists before acting.
- 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"
- Check readonly mode status first — "Is readonly mode enabled?"
- Ask user to disable: "I need to add a DNS record to example.com. Please disable readonly mode."
- After permission: create the A/CNAME/MX/TXT record
"Purge the cache for example.com"
- Confirm readonly is off
- Purge by URL list or purge everything
- Confirm success
"Block IP / set firewall rule"
- Verify zone
- Describe the rule (IP, country, User-Agent match)
- Set action: block / challenge / allow
- Confirm before writing
Decision Trees
| Task | Action | Readonly required off? |
|---|---|---|
| List zones/domains | Query zones | No |
| Check zone status | Query zone details | No |
| View DNS records | List DNS records | No |
| Add/edit/delete DNS | DNS mutation | Yes |
| Purge cache | Cache purge | Yes |
| View firewall rules | List rules | No |
| Add/edit firewall rule | Rule mutation | Yes |
| Check analytics | Zone analytics | No |
| SSL/TLS settings | View or update | Yes for update |
Reference Index
| File | Contents |
|---|---|
| (no references) | All documentation is self-contained |