Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MCP Integration

Any MCP-compatible client can connect to Brain as a stdio MCP server.

Configuration

Add to your MCP client config:

{
  "mcpServers": {
    "brain": {
      "command": "brain",
      "args": ["mcp"]
    }
  }
}

Tools exposed via MCP

ToolArgumentsDescription
memory_searchquery, top_k?, namespace?Semantic search of Brain memory (facts & episodes)
memory_storesubject, predicate, objectStore a structured semantic fact
memory_factssubjectRetrieve all stored facts about a subject
memory_episodeslimit?, namespace?Retrieve recent conversation episodes
user_profileRetrieve user profile & Brain OS configuration
memory_proceduresaction, trigger?, steps?Manage learned procedures (list/store/delete)
brain_capabilitiesList Brain’s live capability manifest

MCP Host

Brain can also mount external MCP servers as capabilities. Configure servers in ~/.brain/config.yaml:

mcphost:
  servers:
    - name: "filesystem"
      transport: "stdio"
      command: "npx"
      args: ["-y", "@modelcontextprotocol/server-filesystem"]

Mounted servers’ tools are registered in the capability manifest alongside native tools, available to every face (CLI, chat, HTTP, etc.).