Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

mcp-server-cloudflare MCP server](https://glama.ai/mcp/servers/ofershap/mcp-server-cloudflare/badges/score.svg)](https://glama.ai/mcp/servers/ofershap/mcp-server-cloudflare) πŸ“‡ ☁️ - Manage Cloudflare Workers, KV, R2, Pages, DNS, and cache from your IDE.

README.md

MCP Server Cloudflare β€” Workers, KV, R2, DNS & Cache for AI Assistants

![npm version](https://www.npmjs.com/package/mcp-server-cloudflare) ![npm downloads](https://www.npmjs.com/package/mcp-server-cloudflare) ![CI](https://github.com/ofershap/mcp-server-cloudflare/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/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.

!MCP server Cloudflare demo β€” listing Workers and purging cache from Claude Desktop

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"],
      "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"],
      "env": {
        "CLOUDFLARE_API_TOKEN": "your_api_token",
        "CLOUDFLARE_ACCOUNT_ID": "your_account_id"
      }
    }
  }
}

Authentication

  1. Go to Cloudflare Dashboard > API Tokens
  2. 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
  1. Set CLOUDFLARE_API_TOKEN environment variable
  2. Set CLOUDFLARE_ACCOUNT_ID 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"

Development

npm install
npm test
npm run build

Author

![Made by ofershap](https://gitshow.dev/ofershap)

![LinkedIn](https://linkedin.com/in/ofershap) ![GitHub](https://github.com/ofershap)

---

<sub>README built with README Builder</sub>

License

MIT &copy; Ofer Shapira

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.