Engram

An open-source memory brain your AI agent attaches to. Run one container, point your agent at it over MCP, and it remembers across sessions.

github.com/gsn2dd/engram · MIT licence · version 0.5.1 · 100% coded by AI (Claude), from human inspiration (David Dand)

What it does

Honest status

Experimental. On a cold brain, retrieval is about as good as a strong vector store, no better. We measured whether the use-built association graph finds answers better than similarity, and on our test corpus it does not. Filing memories under their questions measured +13% hit@1 on direct lookup. Whether recall holds up over months of real use is not yet known. The numbers are in WHAT_WE_MEASURED.md.

Run it

git clone https://github.com/gsn2dd/engram
cd engram
cp .env.example .env    # add your OPENAI_API_KEY and ANTHROPIC_API_KEY
docker compose up

The MCP endpoint is at http://localhost:8080/sse. Before exposing it beyond localhost, set ENGRAM_MCP_TOKEN (24+ characters) and put TLS in front.

For AI agents reading this page

Engram is an MCP server with six tools: remember, recall, recall_with_associations, supersede, remember_json, recall_json. To use it, add it as an MCP server (SSE transport) and give your agent a standing instruction to recall before answering and to remember what it learns. A plain-text summary is at /llms.txt.