Skip to content
Gemini CLI

Codebase Brain for Gemini CLI

io.github.nomannazir/codebase-brain-mcp

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

client:Gemini CLI transport:stdio runtime:pypi

Install Codebase Brain in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

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

{
  "mcpServers": {
    "codebase-brain-mcp": {
      "command": "uvx",
      "args": [
        "codebase-brain-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>",
        "CODEBASE_BRAIN_HOME": "<CODEBASE_BRAIN_HOME>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

Codebase Brain in other clients