loading…
Search for a command to run...
loading…
Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE.
Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE.
npm version npm downloads CI License: MIT
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.

| 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) |
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "mcp-server-cloudflare"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_api_token",
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
}
}
}
}
Add to your .cursor/mcp.json:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "mcp-server-cloudflare"],
"env": {
"CLOUDFLARE_API_TOKEN": "your_api_token",
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
}
}
}
}
CLOUDFLARE_API_TOKEN environment variableCLOUDFLARE_ACCOUNT_ID for Workers, KV, and R2 operationsAsk your AI assistant:
npm install
npm test
npm run build
README built with README Builder
Run in your terminal:
claude mcp add ofershap-mcp-server-cloudflare --env CLOUDFLARE_ACCOUNT_ID="" --env CLOUDFLARE_API_TOKEN="" -- npx Yes, ofershap/mcp-server-cloudflare MCP is free — one-click install via Unyly at no cost.
Yes, it requires environment variables: CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN. Unyly injects them into the config during install.
Self-hosted: the server runs locally on your machine via the install command above.
Open ofershap/mcp-server-cloudflare on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs