Skip to content
Grok

thebrain for Grok

io.github.ybookoff/thebrain

MCP server for TheBrain 15: search by meaning, graph traversal and batch writes over the local API

client:Grok transport:stdio runtime:npm

Install thebrain in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "thebrain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "thebrain-mcp-server"
      ],
      "env": {
        "THEBRAIN_API_KEY": "<THEBRAIN_API_KEY>",
        "THEBRAIN_BASE_URL": "<THEBRAIN_BASE_URL>",
        "THEBRAIN_DATA_DIR": "<THEBRAIN_DATA_DIR>",
        "THEBRAIN_ALLOW_DESTRUCTIVE": "<THEBRAIN_ALLOW_DESTRUCTIVE>",
        "THEBRAIN_EMBEDDING_MODEL": "<THEBRAIN_EMBEDDING_MODEL>",
        "THEBRAIN_EMBEDDING_DTYPE": "<THEBRAIN_EMBEDDING_DTYPE>",
        "THEBRAIN_TIMEOUT_MS": "<THEBRAIN_TIMEOUT_MS>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

thebrain in other clients