Skip to content
Gemini CLI

brains for Gemini CLI

io.github.spacecowboyian/brains

Personal wiki and memory for AI assistants: store, search, and recall structured notes.

client:Gemini CLI transport:stdio runtime:npm

Install brains 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": {
    "brains": {
      "command": "npx",
      "args": [
        "-y",
        "brains-mcp"
      ],
      "env": {
        "WIKI_DIR": "<WIKI_DIR>",
        "STORAGE_BACKEND": "<STORAGE_BACKEND>",
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>",
        "GOOGLE_CLIENT_SECRET": "<GOOGLE_CLIENT_SECRET>",
        "GOOGLE_REFRESH_TOKEN": "<GOOGLE_REFRESH_TOKEN>",
        "DRIVE_FOLDER_ID": "<DRIVE_FOLDER_ID>",
        "SUPABASE_URL": "<SUPABASE_URL>",
        "SUPABASE_SERVICE_ROLE_KEY": "<SUPABASE_SERVICE_ROLE_KEY>"
      }
    }
  }
}

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

brains in other clients