Home / Servers / Cloudflare API / post_v4_accounts_by_account_id_k2_streams
Create K2 stream
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Create K2 stream Create a new K2 stream. HTTP is disabled when http is omitted. Enabled HTTP requires… [POST /accounts/{account_id}/k2/streams]
Name on the gateway: cloudflare_api__post_v4_accounts_by_account_id_k2_streams · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
http | object | Configures the HTTP endpoint. Disabling HTTP… |
name required | string | Specifies the name of the K2 stream. |
retention_seconds | integer | Sets the record retention period from 1 hour… |
worker_binding | object |
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__post_v4_accounts_by_account_id_k2_streams",
"arguments": {
"account_id": "…",
"name": "…"
}
}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 k2 stream tool with account_id set to ….