Skip to content
VS Code

Cloudflare MCP Server for VS Code

io.github.itunified-io/cloudflare

Cloudflare MCP Server — 84 tools for DNS, Tunnels, WAF, Zero Trust, R2, KV & Workers

client:VS Code transport:stdio runtime:npm

Install Cloudflare MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "cloudflare-api-token",
      "description": "CLOUDFLARE_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "cloudflare-account-id",
      "description": "CLOUDFLARE_ACCOUNT_ID",
      "password": true
    }
  ],
  "servers": {
    "cloudflare": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@itunified.io/mcp-cloudflare"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "${input:cloudflare-api-token}",
        "CLOUDFLARE_ACCOUNT_ID": "${input:cloudflare-account-id}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Cloudflare MCP Server in other clients