Cloudflare MCP Server

Official
Cloud & SaaS
stdio

Full Cloudflare platform management via MCP. Deploy Workers, manage KV namespaces, interact with R2 storage, query D1 databases, and configure DNS records — all from your AI agent.

Quick Install

$ npx -y @cloudflare/mcp-server-cloudflare

Environment Variables

VariableDescriptionRequired
CLOUDFLARE_API_TOKENCloudflare API tokenYes
CLOUDFLARE_ACCOUNT_IDCloudflare account IDYes

Configuration by Client

{
  "mcpServers": {
    "server": {
      "command": "npx",
      "args": [
        "-y",
        "@cloudflare/mcp-server-cloudflare"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "cf_xxxxxxxxxxxx",
        "CLOUDFLARE_ACCOUNT_ID": ""
      }
    }
  }
}

Need a different client? Use the Config Generator for Windsurf, Cline, Antigravity, and more.

Available Tools (6)

worker_listworker_deploykv_getkv_putr2_listd1_query