Skip to content
Docs

Claude Code

Connect Claude Code to HeyBrain in about five minutes with the setup command from your dashboard, then ask your first question.

You need Claude Code and Node.js installed, and a note in your workspace to ask about. See Before you start.

  1. Generate a key

    Open HeyBrain MCP in the workspace Claude Code should use, choose Claude Code and your operating system, then choose Generate key and name the connection.

    Warning: The full key is shown once. Copy it straight away and keep any command or file that contains it private.

  2. Run the setup command

    Run the Connect your agent to the brain command from the HeyBrain MCP page in your terminal. It registers HeyBrain with Claude Code for every project and writes HeyBrain’s agent instructions.

    To register by hand instead on macOS or Linux, run:

    Manual registration (macOS or Linux)
    claude mcp add --transport http --scope user HeyBrain https://mcp.heybrain.io/mcp --header "Authorization: Bearer REPLACE_WITH_YOUR_KEY"

    Note: On Windows, use the command from the HeyBrain MCP page. A hand-typed PowerShell command can split the header.

  3. Check the connection

    Start a new Claude Code session and run /mcp. HeyBrain should show as connected, and the HeyBrain MCP page shows the connection as detected.

  4. Ask your first question

    Ask your first question: “Use HeyBrain to find what we know about <the subject of your note>.” Claude Code searches HeyBrain and answers from your note. The agent can only see what your HeyBrain identity can access in this workspace.

Last checked against the product on November 25, 2026.