Skip to content

Gemini CLI Setup

Terminal window
engram setup gemini-cli

That setup registers the MCP server, writes the Memory Protocol to ~/.gemini/system.md, and ensures Gemini actually loads that file.

Add the MCP server to ~/.gemini/settings.json:

{
"mcpServers": {
"engram": {
"command": "engram",
"args": ["mcp"]
}
}
}

Use the automated setup unless you have a strong reason not to. The protocol file is part of what makes memory resilient after compaction.