Skip to content
Grok

Codebase Brain for Grok

io.github.nomannazir/codebase-brain-mcp

Cited, searchable memory of a codebase: hybrid search, git history, impact analysis, doc drift.

client:Grok transport:stdio runtime:pypi

Install Codebase Brain 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": {
    "codebase-brain-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codebase-brain-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "CODEBASE_BRAIN_HOME": "<CODEBASE_BRAIN_HOME>"
      }
    }
  }
}

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

Codebase Brain in other clients