engram
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@engramrecall previous decisions about authentication flow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Engram
Engram is a local-first persistent memory layer shared by coding agents. It combines automatic lifecycle hooks with an optional MCP interface, stores concise and attributable records in SQLite, and keeps generated handoffs untrusted until a person approves them.
Engram is an independent project. It stores project identifiers as metadata, but it is not tied to any particular repository or application.
Engram is local developer tooling, not a secrets manager. Its SQLite database is not encrypted. Never store credentials, private keys, access tokens, or sensitive personal data in memory.
Requirements
Node.js 22.13 or newer
pnpm 11
Git for repository detection and stale-memory checks
macOS, Linux, or Windows for the MCP/CLI surfaces; automatic hook support depends on the agent client
Related MCP server: apex-memory
How the automatic workflow works
SessionStartdetects the Git root, branch, commit, and working tree, then injects a small set of approved project memories.UserPromptSubmitretrieves memories relevant to the current task and adds them as explicitly untrusted historical context.Stopcombines the agent's final response with Git evidence to create or update one pending handoff for the session.You approve or reject the draft at
http://127.0.0.1:4317/. Only approved drafts enter recall.On later sessions, file fingerprints and Git history checks quarantine memories whose referenced files have changed.
Hooks read and write SQLite directly, so automatic recall and handoff capture still work if the dashboard/MCP daemon is not running. The daemon is needed only for the browser UI and MCP clients.
Included surfaces
Review inbox and memory ledger at
http://127.0.0.1:4317/Streamable HTTP MCP endpoint at
http://127.0.0.1:4317/mcpLocal stdio MCP connector for ordinary Claude Desktop chats
Codex and Claude Code lifecycle-hook adapter
CLI for inspection, approval, rejection, and manual memory operations
SQLite + FTS5 persistence at
~/.engram/engram.dbRepository, branch, source-agent, source-session, commit, confidence, expiry, file fingerprint, and provenance metadata
Secret-pattern rejection and stale-memory quarantine
Build and run
pnpm install --frozen-lockfile
pnpm build
pnpm startOverride the database path when needed:
ENGRAM_DB_PATH=/absolute/path/to/engram.db pnpm startInstall automatic hooks
After building, install the user-level hooks for Codex:
node dist/src/install-hooks.js codexFor Codex and Claude Code:
node dist/src/install-hooks.js codex claudeThe installer merges Engram into existing hook configuration and preserves unrelated hooks. Remove only Engram's entries with:
node dist/src/install-hooks.js codex claude --removeCodex may ask you to review and trust newly installed hook commands before they run. Claude Code reads the same lifecycle events from ~/.claude/settings.json.
Connect the optional MCP interface
Claude Desktop Chat (Claude Code is not required):
node dist/src/install-claude-desktop.jsFully quit and reopen Claude Desktop after installation. In a chat, open the + menu and check Connectors for Engram. The desktop connector launches Engram itself, so the web daemon on port 4317 does not need to be running. Remove it without disturbing other Claude settings with:
node dist/src/install-claude-desktop.js --removeThe installer merges an engram entry into Claude Desktop's existing mcpServers configuration and preserves unrelated preferences and connectors.
Because the generated client configuration contains the absolute path to this checkout, rerun the relevant installer after moving or renaming the Engram folder.
Other MCP clients can use the optional HTTP daemon:
Codex:
codex mcp add engram --url http://127.0.0.1:4317/mcpClaude Code:
claude mcp add --transport http --scope user engram http://127.0.0.1:4317/mcpThe MCP tools are memory_workspaces, memory_recall, memory_remember, memory_handoff, memory_supersede, and memory_forget.
CLI
The current repository is detected automatically unless --workspace is provided.
pnpm cli -- detect
pnpm cli -- recall --query "persistence"
pnpm cli -- proposals --status pending
pnpm cli -- approve --id <proposal-uuid>
pnpm cli -- reject --id <proposal-uuid>
pnpm cli -- remember --kind decision --content "Use SQLite for local persistence."
pnpm cli -- refreshTrust model
Recalled memories are historical context, not instructions or current facts. Agents are told to verify them against the current user request, repository, and tests. Automatic summaries remain proposals until approval. Engram rejects several obvious credential formats, but that filter is not a substitute for reviewing a draft before approving it.
Security and privacy
The default database is
~/.engram/engram.dband is never intended to be committed.The dashboard and HTTP MCP server bind to
127.0.0.1and validate localhost hosts and origins. Do not expose them through a public reverse proxy or change the binding to a public interface.Claude Desktop and coding-agent integrations execute this checkout with your user permissions. Review the code and install only from a release or commit you trust.
MCP tools can write, supersede, and delete memories after the client grants tool access. Automatic end-of-session handoffs use the review inbox before they become recallable.
Secret detection is best-effort and cannot guarantee that all sensitive values will be caught.
See SECURITY.md for vulnerability reporting and supported-version information.
Development
pnpm install --frozen-lockfile
pnpm verify
pnpm buildThe repository intentionally excludes databases, build output, dependencies, logs, and local agent configuration. CI runs type-checking, tests, and a production dependency audit.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables AI coding agents to maintain persistent, cross-session memory of codebase architecture, naming conventions, and decisions through MCP tools. Eliminates repetitive project re-explanation by automatically injecting stored context into every session with local-first SQLite storage and optional team sharing capabilities.4MIT
- AlicenseNot gradedqualityCmaintenancePersistent memory for AI coding agents. Enables agents to save and recall decisions, patterns, bugs, and context across sessions via an MCP server with local SQLite storage.122MIT
- AlicenseAqualityBmaintenanceProvides persistent, inspectable memory storage for AI agents using SQLite. Agents can store, recall, and search memories across sessions via three MCP tools.3MIT
- AlicenseNot gradedqualityBmaintenanceLocal, cross-agent memory for AI coding agents using a single SQLite file, enabling persistent sessions and durable facts shared across multiple MCP-compatible tools.14MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanvi-s18/engram-agent-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server