The 10 read-only admin tools provide visibility into Cloudflare R2 bucket configuration and account-level metrics by querying the Cloudflare API on your behalf. All admin tools are disabled by default and must be activated withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/xxyoudeadpunkxx/cloudflare-r2-remote-mcp-worker/llms.txt
Use this file to discover all available pages before exploring further.
ENABLE_ACCOUNT_TOOLS=true. No mutating operations — such as creating or deleting buckets, updating CORS rules, or modifying lifecycle policies — are included.
Prerequisites
Enable admin tools and configure the required environment variables inwrangler.jsonc:
R2_BUCKET_NAME is used as the default bucket for any admin tool that accepts an optional bucketName parameter. When a tool call omits bucketName, the Worker falls back to this value.
Available Tools
| Tool | Description |
|---|---|
r2_bucket_list | Lists R2 buckets in the configured Cloudflare account. Parameters: cursor (string), direction (asc or desc), nameContains (string), perPage (integer, 1–1000). |
r2_bucket_get | Returns metadata for one R2 bucket. Parameters: bucketName (string, optional — defaults to R2_BUCKET_NAME). |
r2_cors_get | Returns the CORS rules configured on one R2 bucket. Parameters: bucketName (string, optional). |
r2_lifecycle_get | Returns the lifecycle rules configured on one R2 bucket. Parameters: bucketName (string, optional). |
r2_domain_custom_list | Lists all custom domains attached to one R2 bucket. Parameters: bucketName (string, optional). |
r2_domain_custom_get | Returns settings for one custom domain on an R2 bucket. Parameters: bucketName (string, optional), domain (string, required). |
r2_domain_managed_get | Returns the r2.dev managed domain settings for one R2 bucket. Parameters: bucketName (string, optional). |
r2_notifications_list | Lists all event notification rules configured for one R2 bucket. Parameters: bucketName (string, optional). |
r2_notifications_get | Returns the configuration for one event notification queue on an R2 bucket. Parameters: bucketName (string, optional), queueId (string, required). |
r2_metrics_get | Returns account-level R2 storage metrics. No parameters. |
Tool Details
r2_bucket_list — List R2 Buckets
r2_bucket_list — List R2 Buckets
asc or desc. Optional.r2_bucket_get — Get Bucket Metadata
r2_bucket_get — Get Bucket Metadata
R2_BUCKET_NAME when omitted. Optional.r2_cors_get — Get CORS Rules
r2_cors_get — Get CORS Rules
R2_BUCKET_NAME when omitted. Optional.r2_lifecycle_get — Get Lifecycle Rules
r2_lifecycle_get — Get Lifecycle Rules
R2_BUCKET_NAME when omitted. Optional.r2_domain_custom_list — List Custom Domains
r2_domain_custom_list — List Custom Domains
cdn.example.com) currently attached to one R2 bucket.ParametersR2_BUCKET_NAME when omitted. Optional.r2_domain_custom_get — Get Custom Domain Settings
r2_domain_custom_get — Get Custom Domain Settings
r2_domain_managed_get — Get r2.dev Domain Settings
r2_domain_managed_get — Get r2.dev Domain Settings
r2.dev public access domain for one R2 bucket.ParametersR2_BUCKET_NAME when omitted. Optional.r2_notifications_list — List Event Notification Rules
r2_notifications_list — List Event Notification Rules
R2_BUCKET_NAME when omitted. Optional.r2_notifications_get — Get Event Notification Queue Config
r2_notifications_get — Get Event Notification Queue Config
r2_metrics_get — Get Account R2 Metrics
r2_metrics_get — Get Account R2 Metrics
Scope Note
All admin tools are read-only by design. The Worker does not expose any tool for creating or deleting buckets, modifying CORS or lifecycle configurations, attaching or detaching domains, creating or deleting notification rules, or any other mutating operation against the Cloudflare API. This design ensures that theCLOUDFLARE_API_TOKEN used by the Worker never needs write permissions on your account. A token with R2: Read access is sufficient.
For full parameter details and API response schemas, see the Admin Tool Reference.