Skip to main content
Chatblocks hosts a single MCP endpoint:
Every MCP-capable agent connects to it the same way: an Authorization: Bearer cb_live_* header on the HTTPS request. The key is workspace-scoped — one key carries one workspace’s context, and you generate a key per agent (or per machine) so revocation is per-place. If the agent needs to create the workspace before a human has signed up, use agent-created canvases. That flow returns a temporary MCP key immediately and emails the human a claim link.

Mint a key

1

Open /settings/api-keys

Settings → API keys tab. Workspace admin only. API keys are free on every plan — connect your agent and author blocks within your plan’s caps.
2

cb_live keys → New key

Pick a label (e.g. “Claude Desktop — my laptop”). The platform shows the plaintext once and stores only a hash. Copy it now — there’s no “show again.”
3

Paste into your agent's config

Snippets below.
Keys are workspace-admin-equivalent for the MCP write surface. Treat them like passwords: one per device, rotate on leave, no committing to git.

Connect from clients

The fastest way to get the right snippet for your client is the agent connect overlay on your canvas (toolbar chip → empty state, or ?connectAgent=1). It renders the snippet below with your actual cb_live_* key already pasted in. The forms below are the canonical shapes if you’d rather copy by hand.
Run in your terminal:
Works for both Claude Code and Claude Desktop on current Claude releases. To paste manually instead, write the standard mcpServers JSON (see the Codex tab) into ~/.claude/mcp.json.

Discovery for agents

If you are giving an agent current Chatblocks context, use these app-domain files:
For marketplace and platform-specific setup paths, see platform integrations.

Direct HTTP usage

Anything that speaks JSON-RPC over HTTP can talk to the server directly. Example with curl:
A tools/call is the same envelope:
The server is fresh-per-request — an McpServer instance is built on every POST. There’s no session state to maintain client-side.

Streaming tools

A handful of tools return Server-Sent Events instead of a single JSON-RPC reply (blocks.create, blocks.build, dataSources.testConnection, dataSources.triggerRefresh, schedule.preview). When you call one of these, the response Content-Type switches to text/event-stream and the body streams progress notifications until the final result event. Most MCP clients (Claude Code / Codex / Cursor / Windsurf / OpenClaw / Poke) handle this transparently. The stdio proxy bridges streaming responses but only forwards the final result to the stdio client today; intermediate progress isn’t bridged. From curl, append --no-buffer to see deltas as they arrive.

What’s next

Tool reference

The full list of tools, auto-generated from the server source.

Agent-created canvases

Let an agent create a temporary canvas first, then hand it to a human.

Platform integrations

OpenClaw, Poke, Context7, and other agent-discovery surfaces.

Errors and limits

JSON-RPC error codes, HTTP statuses, and per-plan rate limits.