Repository-local product spec and REQ-* traceability (Makefiles, demos) are described in Spec-driven development.
This repository is prepared to use Engram with Cursor (and other MCP-compatible editors). The configuration is already present so that once you install the Engram CLI, your AI agent can use persistent memory across sessions.
- What is Engram?
- Repository setup
- How to install Engram
- How to use
- Clearing or resetting the vault
- References
Engram is an MCP (Model Context Protocol) server that gives AI coding agents (Cursor, Claude Code, etc.) persistent memory. It stores context in a local vault (SQLite) so the agent does not need to re-discover project structure and conventions in every session.
Capabilities include:
- Remember — Store project notes, decisions, and context.
- Recall — Retrieve relevant memories using semantic search.
- Briefing — Get a structured context summary at session start.
- Consolidate — Distill recent episodes into long-term knowledge.
- Entities & stats — Inspect the knowledge graph and vault statistics.
All data stays local; no code or secrets are sent to external services except optional embeddings (see Engram documentation).
In the root of this repository you will find:
.cursor/mcp.json— MCP configuration that registers the Engram server with Cursor.
Content:
{
"mcpServers": {
"engram": {
"command": "engram",
"args": ["mcp"]
}
}
}Cursor uses this to start the Engram MCP server when needed (via the engram mcp command). No need to edit this file unless you want to change the server name or arguments.
You need the Engram CLI (engram) on your machine so Cursor can run engram mcp.
npm install -g engram-sdk
engram initengram init will detect your editor, prompt for a Gemini API key (for embeddings and consolidation; free at Google AI Studio), and create your vault. You can skip or complete init; the MCP will work as long as the engram binary is in your PATH.
brew tap tstockham96/engram
brew install engram-sdk
engram initEnsure engram is available:
engram --help
engram mcp # Starts the MCP server (stdio); Cursor runs this automatically- Install the Engram CLI as above and run
engram initif you want to set up the vault and Gemini key. - Restart Cursor (or your MCP client) so it loads
.cursor/mcp.json. - Use the agent as usual. When the Engram MCP is connected, the agent can use tools such as:
engram_remember— Store a memory (episodic, semantic, or procedural).engram_recall— Retrieve relevant memories for the current context.engram_briefing— Get a context summary for the session.engram_consolidate— Run consolidation (distill episodes into knowledge).engram_surface,engram_connect,engram_forget,engram_entities,engram_stats,engram_ingest— See Engram docs for details.
No extra steps are required in this repo: open the project in Cursor, ensure engram is installed and on your PATH, and the agent can use Engram when the MCP server is enabled.
- Remove a single memory: Use the agent tool
engram_forgetwith the memory id (from recall/stats), or from the CLI:engram forget <id>(soft delete) orengram forget <id> --hard(permanent). You can get ids viaengram recall <context>orengram stats(and the agent can useengram_entities/engram_stats). - Empty the vault completely: The vault is a local SQLite file. Default location:
~/.engram/default.db(or the path set inENGRAM_DB). To wipe all memories, delete that file or the whole directory:After that, the next time you use Engram a new vault will be created. You can runrm -f ~/.engram/default.db # or, to remove the whole vault directory: rm -rf ~/.engram
engram initagain if you want to reconfigure the Gemini key or editor.
- Engram documentation — Full MCP tools, REST API, CLI, and configuration.
- Model Context Protocol (MCP) — Protocol used by Cursor and other clients to talk to Engram.