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

NameTypeDescription
account_id requiredstringaccount_id parameter
httpobjectConfigures the HTTP endpoint. Disabling HTTP…
name requiredstringSpecifies the name of the K2 stream.
retention_secondsintegerSets the record retention period from 1 hour…
worker_bindingobject

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__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:

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 k2 stream tool with account_id set to ….

More from Cloudflare API