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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
bucket required | string | Name of the R2 bucket. |
objects | array | Optional object paths to scope the credentials to. |
parentAccessKeyId required | string | Access key ID of the parent R2 API token. The… |
permission required | admin-read-write | admin-read-only | object-read-write | object-read-only | Permissions allowed on the credentials. |
prefixes | array | Optional prefix paths to scope the credentials to. |
ttlSeconds required | number | Lifetime 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:
{
"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:
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 ….