Skip to content
Gemini CLI

collective memory for Gemini CLI

io.github.hustada/collective-memory

MCP server for persistent, semantic memory across AI sessions

client:Gemini CLI transport:stdio runtime:npm

Install collective memory 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": {
    "collective-memory": {
      "command": "npx",
      "args": [
        "-y",
        "collective-memory"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}

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

collective memory in other clients