Skip to main content
px0 already holds two things a coding agent wants: a brain that can answer questions from what you have read, and a set of workflows that can be run. A CLI can be shelled out to, but MCP means the agent can discover what is there and what each thing takes, rather than having the shape of px0 explained to it in a prompt.
px0 mcp serve speaks MCP on stdin and stdout, one JSON-RPC message per line, until stdin closes. No MCP SDK is involved - the surface needed is initialize, tools/list, and tools/call over stdio.

--allow-runs

Let a client run workflows.
  • Input: flag, no value. Default off.
  • Off by default because a workflow can post, send, and file things. Without it, workflow_run is not even listed, and calling it returns an error explaining how to enable it.

What it exposes

brain_ask and brain_search take an optional kind (blog, paper, doc, video, stub) and k. Nothing under the brain’s private folder is ever returned, the same guarantee that holds for px0 brain search and px0 brain ask on the command line.

Registering it with a client

Claude Code, and most MCP clients, take a command and its arguments:
Set PX0_HOME when the client’s environment differs from your shell’s, since that is what selects the store.

Exit codes