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-cloudflareExamples
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