Cloudflare R2 MCP Server

Stablefile-system
180 starsTypeScriptcloudflare
GitHub
About

Overview

The Cloudflare R2 MCP Server enables AI agents to interact with Cloudflare R2, the S3-compatible object storage with zero egress fees. It provides tools for managing objects and buckets using familiar S3 operations, with the cost advantage of R2's pricing model.
Capabilities

Tools & Capabilities

list_buckets

List all R2 buckets

list_objects

List objects in a bucket

get_object

Get an object's content

put_object

Upload an object

delete_object

Delete an object

Setup

Installation

bash
Install
npx -y @cloudflare/mcp-server-cloudflare
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "r2": {
      "command": "npx",
      "args": ["-y", "@cloudflare/mcp-server-cloudflare"],
      "env": {
        "CLOUDFLARE_ACCOUNT_ID": "your-account-id",
        "CLOUDFLARE_API_TOKEN": "your-api-token"
      }
    }
  }
}

Quick Info

Authorcloudflare
LanguageTypeScript
StatusStable
Stars 180
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.