Cloudflare MCP server
MCP server to manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE
4 stars
Reviews
Write oneNobody has reviewed Cloudflare yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Cloudflare tools (13, 5 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
cf_cache_purgePurge Cloudflare cache (all or specific URLs)
cf_dns_createwrite actionCreate a DNS record
cf_dns_deletewrite actionDelete a DNS record
cf_dns_listList DNS records for a zone
cf_kv_deletewrite actionDelete a key from KV
cf_kv_getGet a value from KV
cf_kv_keysList keys in a KV namespace
cf_kv_namespacesList KV namespaces
cf_kv_putwrite actionWrite a value to KV
cf_r2_bucketsList R2 buckets
cf_worker_deletewrite actionDelete a Workers script
cf_workers_listList Workers scripts
cf_zonesList Cloudflare zones (domains)
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 49 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Install Cloudflare in Claude Code, Cursor or VS Code
Runs npx -y mcp-server-cloudflare-dns on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add cloudflare -- npx -y mcp-server-cloudflare-dns
What the publisher says
From the Cloudflare repository's README, as published. We do not edit it. Read it on GitHub
MCP Server Cloudflare — Workers, KV, R2, DNS & Cache for AI Assistants
An MCP server that lets your AI assistant manage Cloudflare Workers, KV, R2, DNS, and cache purging. Vercel, Railway, and Netlify all have MCP servers — now Cloudflare does too.
You: "List my Workers and purge cache for example.com"
AI: Found 3 Workers: api-gateway, auth-worker, image-resizer
✅ Cache purged for https://example.comWorks with Claude Desktop, Cursor, and VS Code Copilot.
Tools
Quick Start
With Claude Desktop
Add to your claudedesktopconfig.json:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "mcp-server-cloudflare-dns"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_api_token",
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
}
}
}
}With Cursor
Add to your .cursor/mcp.json:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "mcp-server-cloudflare-dns"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_api_token",
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
}
}
}
}Authentication
- Go to Cloudflare Dashboard > API Tokens
- Create a token with the permissions you need:
- Zone:Read — for listing zones and DNS
- Zone:Edit — for creating/deleting DNS records
- Workers Scripts:Edit — for managing Workers
- Workers KV Storage:Edit — for KV operations
- Zone:Cache Purge — for cache purging
- Set CLOUDFLAREAPITOKEN environment variable
- Set CLOUDFLAREACCOUNTID for Workers, KV, and R2 operations
Examples
Ask your AI assistant:
- "List my Cloudflare zones"
- "Show DNS records for zone xyz"
- "Create an A record pointing to 1.2.3.4"
- "List my Workers"
- "Show KV keys in namespace abc"
- "Purge the cache for https://example.com/page"
- "List my R2 buckets"
Agent Plugins
This repo is an Agent Plugins 1.0.0 package: plugin.json, portable mcp.json, and skills/ ship together with the MCP server.
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Cloudflare: common questions
- Is Cloudflare MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the Cloudflare safety report
- How do I install Cloudflare?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Cloudflare need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Cloudflare maintained?
- The last commit was 65 days ago (2026-08-09). The latest release is v1.0.2.
- What can I use instead of Cloudflare?
- Servers from other publishers that do the same job: Porkbun (official) MCP server, Scrapling MCP Server and MCP server. Compare all Cloudflare alternatives.
Alternatives to Cloudflare
Same job from other publishers: the closest match first, then the best rated.
Porkbun (official)Official Porkbun MCP server: domains, DNS, SSL, hosting and Cloudflare via the Porkbun API.not reviewedEstablishedA
Scrapling MCP ServerWeb scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.not reviewedWidely usedA- MCPCloudflare MCP serversnot reviewedEstablishedA
- NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.not reviewedEstablishedB
SeldonframeBuild, deploy, and sell AI agents for local-service businesses - from your IDE.not reviewedEstablishedA