Cloudflare MCP Server

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.

Local serverstdioMIT

What is the Cloudflare MCP Server?

Mcp Server Cloudflare is an MCP project maintained in the ofershap/mcp-server-cloudflare repository. The maintainer describes its purpose as “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…”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-server-cloudflare-dns. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
cf_zonesList your Cloudflare zones (domains)
cf_dns_listList DNS records for a zone
cf_dns_createCreate a DNS record
cf_dns_deleteDelete a DNS record
cf_workers_listList Workers scripts
cf_worker_deleteDelete a Workers script
cf_kv_namespacesList KV namespaces
cf_kv_keysList keys in a KV namespace
cf_kv_getGet a value from KV
cf_kv_putWrite a value to KV
cf_kv_deleteDelete a KV key
cf_r2_bucketsList R2 storage buckets
cf_cache_purgePurge cache (all or specific URLs)

How to install the Cloudflare MCP Server

{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-cloudflare-dns"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "YOUR_CLOUDFLARE_API_TOKEN",
        "CLOUDFLARE_ACCOUNT_ID": "your_account_id"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
CLOUDFLARE_API_TOKENDeclared in the maintainer’s client configuration.Check documentation
CLOUDFLARE_ACCOUNT_IDDeclared in the maintainer’s client configuration.Check documentation