Skip to content
VS Code

cloudflare r2 for VS Code

io.github.magurelabs/cloudflare-r2

Upload files to your own Cloudflare R2 bucket and get a shareable link.

client:VS Code transport:stdio runtime:oci

Install cloudflare r2 in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-mode",
      "description": "MCP_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "mcp-service-token",
      "description": "MCP_SERVICE_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "cloudflare-r2": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/magureai/mcp-cloudflare-r2:2.0.0"
      ],
      "env": {
        "MCP_MODE": "${input:mcp-mode}",
        "MCP_SERVICE_TOKEN": "${input:mcp-service-token}"
      }
    }
  }
}

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

cloudflare r2 in other clients