Skip to content
Gemini CLI

hmem — Humanlike Memory for AI Agents for Gemini CLI

io.github.bumblebiber/hmem-mcp

Persistent 5-level hierarchical memory for AI agents. SQLite-backed, lazy-loaded.

client:Gemini CLI transport:stdio runtime:npm

Install hmem — Humanlike Memory for AI Agents 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": {
    "hmem-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "hmem-mcp"
      ],
      "env": {
        "HMEM_STORAGE_DIR": "<HMEM_STORAGE_DIR>"
      }
    }
  }
}

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

hmem — Humanlike Memory for AI Agents in other clients