cloudflare MCP Server
MCP server to manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE
cloudflare scores 60 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 13 tools. Filed under Cloud. GitHub shows 4 stars. Package registries report about 61 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
60 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
84/100 for listing completeness. Lost points: 7 of 13 tools barely described, short summary.
How quality is graded
Where the 60 comes from
22 + 10 + 4 + 10 + 4 + 10 = 60. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 10 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ofershap-mcp-server-cloudflare": { "command": "npx", "args": [ "-y", "mcp-server-cloudflare-dns@1.0.2" ] } }}
Environment variables
This server does not declare environment variables.
Tools13Tool docs quality grade D
All capabilitiescf_cache_purgetoolPurge cache (all or specific URLs)
cf_dns_createtoolCreate a DNS record
cf_dns_deletetoolDelete a DNS record
cf_dns_listtoolList DNS records for a zone
cf_kv_deletetoolDelete a KV key
cf_kv_gettoolGet a value from KV
cf_kv_keystoolList keys in a KV namespace
cf_kv_namespacestoolList KV namespaces
cf_kv_puttoolWrite a value to KV
cf_r2_bucketstoolList R2 storage buckets
cf_worker_deletetoolDelete a Workers script
cf_workers_listtoolList Workers scripts
About
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.com
Works with Claude Desktop, Cursor, and VS Code Copilot.

Tools
| Tool | What it does |
|---|---|
cf_zones | List your Cloudflare zones (domains) |
cf_dns_list | List DNS records for a zone |
cf_dns_create | Create a DNS record |
cf_dns_delete | Delete a DNS record |
cf_workers_list | List Workers scripts |
cf_worker_delete | Delete a Workers script |
cf_kv_namespaces | List KV namespaces |
cf_kv_keys | List keys in a KV namespace |
cf_kv_get | Get a value from KV |
cf_kv_put | Write a value to KV |
cf_kv_delete | Delete a KV key |
cf_r2_buckets | List R2 storage buckets |
cf_cache_purge | Purge cache (all or specific URLs) |
Quick Start
With Claude Desktop
Add to your claude_desktop_config.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
CLOUDFLARE_API_TOKENenvironment variable - Set
CLOUDFLARE_ACCOUNT_IDfor 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.
For Cursor, clone the repo and copy or symlink it to ~/.cursor/plugins/local/mcp-server-cloudflare, then reload the window. Skills and MCP show up under Customize > Plugins.
Agent Plugins v1 does not ship OAuth. Set CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in your MCP client env (see Quick Start). One-click install is not offered because credentials stay in env.
Install and run via npm package mcp-server-cloudflare-dns (not the unrelated mcp-server-cloudflare stub on npm).
FAQ
What npm package do I install?
Use npx -y mcp-server-cloudflare-dns. The repo is named mcp-server-cloudflare on GitHub; npm publishes as mcp-server-cloudflare-dns.
Which env vars are required?
CLOUDFLARE_API_TOKEN for all API calls. CLOUDFLARE_ACCOUNT_ID for Workers, KV, and R2 tools.
Can I install it as an Agent Plugin in Cursor?
Yes, via ~/.cursor/plugins/local/mcp-server-cloudflare. Configure the same env vars in Cursor MCP settings.
What can this MCP manage?
Zones and DNS, Workers scripts, KV namespaces, R2 bucket listing, and cache purge for a zone.
Why no one-click Cursor button?
API token and account id cannot be embedded in a portable install link. Use the JSON under Quick Start.
Development
npm install
npm test
npm run build
Author
README built with README Builder
License
Frequently asked questions
What is cloudflare MCP Server?
MCP server to manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE
How do I install cloudflare MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. cloudflare MCP Server runs locally from the npm package mcp-server-cloudflare-dns with the command npx -y mcp-server-cloudflare-dns@1.0.2.
Is cloudflare MCP Server free and open source?
Yes. cloudflare MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does cloudflare MCP Server support remote (HTTP) connections?
No remote endpoint is listed for cloudflare MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does cloudflare MCP Server provide?
cloudflare MCP Server provides 13 tools, including cf_cache_purge, cf_dns_create, cf_dns_delete, and cf_dns_list. See the full tool list for descriptions and parameters.
How is cloudflare MCP Server's trust score calculated?
cloudflare MCP Server scores 60 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.