Home / Servers / Cloudflare API / r2_create_temp_access_credentials

Create Temporary Access Credentials

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Create Temporary Access Credentials Creates temporary access credentials on a bucket that can be optionally scoped to prefixes or… [POST /accounts/{account_id}/r2/temp-access-credentials]

Name on the gateway: cloudflare_api__r2_create_temp_access_credentials · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
bucket requiredstringName of the R2 bucket.
objectsarrayOptional object paths to scope the credentials to.
parentAccessKeyId requiredstringAccess key ID of the parent R2 API token. The…
permission requiredadmin-read-write | admin-read-only | object-read-write | object-read-onlyPermissions allowed on the credentials.
prefixesarrayOptional prefix paths to scope the credentials to.
ttlSeconds requirednumberLifetime of the temporary credentials in…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "cloudflare_api__r2_create_temp_access_credentials",
  "arguments": {
    "account_id": "…",
    "bucket": "…",
    "parentAccessKeyId": "…",
    "permission": "…",
    "ttlSeconds": 0
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create temporary access credentials tool with account_id set to ….

More from Cloudflare API