Skip to main content
MCP server CX Codex

engram · hbarefoot — Claude Code MCP server: what it does, how to install

Adds local persistent memory to AI agents using SQLite and on-device embeddings without external APIs. Useful when keeping agent context between sessions entirely on your machine.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add engram -- npx -y @hbarefoot/engram
Open on GitHub

What engram does

The server attaches persistent storage to your agent process without requiring external cloud accounts or containers. It stores records inside a local SQLite database and handles semantic lookup through a lightweight all-MiniLM-L6-v2 embedding model. That model takes roughly 23 MB and caches locally under ~/.engram/models. The runtime requires Node.js 20 or higher to operate.

Through MCP, the server exposes 6 distinct tools across 5 functional categories. Every write passes through automated secret detection. Private keys, API tokens, database connection strings, and JWT values are blocked before they reach the database file. If you run Ollama locally, you can also enable an optional model layer for sharper entity extraction.

What it helps with

  • keep project context intact across separate agent sessions
  • retrieve stored knowledge by meaning without cloud requests
  • prevent API tokens and database secrets from entering memory
  • reconcile conflicting facts through side-by-side review

Example prompts for the agent

  • Remember that we use Vitest instead of Jest for test suites in this project.
  • Recall the naming conventions we established for Git branches.
  • Check your memory for our staging deployment guidelines.

How to install engram

Platform CLI

claude mcp add engram -- npx -y @hbarefoot/engram

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about engram

How do I install engram in Claude Code?

Run claude mcp add engram -- npx -y @hbarefoot/engram in your terminal. This registers the server using npx without manual configuration edits.

What does engram do?

It provides long-term agent memory on your local disk. Facts are indexed in SQLite alongside local vector embeddings, keeping searches and stored information completely private.

What are the system requirements for engram?

You need Node.js version 20 or later. On the first run, the tool fetches the ~23 MB all-MiniLM-L6-v2 embedding model and stores it inside ~/.engram/models.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

engram by other authors comes first.

engram NickCirv Builds a local graph of your codebase and hands the agent the relevant files and links instead of everything at once. Fits projects that no longer fit in context. CX Codex +1 ★ 143repo stars engram tstockham96 Stores project knowledge locally and helps an agent retrieve it by meaning. Useful when context needs to carry across sessions and projects. CX Codex +1 ★ 47repo stars engram kael-bit Hierarchical memory engine with three-stage retention and decay for AI agents. Keeps essential project context alive across session restarts. CX Codex +1 ★ 28repo stars Engram get-engram Keeps every agent conversation word for word and finds it again by meaning. One shared memory across Claude, Codex, Cursor, Copilot and Zed. CX Codex +1 ★ 20repo stars Engram rwnalds Engram gives agents a shared Markdown vault backed by Git and filters out notes marked as outdated. It suits projects where multiple agents need to read and update the same knowledge base. CX Codex +1 ★ 17repo stars engram-server jamjet-labs Persists conversational facts into a temporal graph with hybrid search. Agents keep long-term context across sessions using SQLite or PostgreSQL storage. CX Codex +1 ★ 23repo stars Infimium infimium-ai A local context layer for coding agents: semantic code lookup, dependency graphs and project memory. Nothing leaves your machine. CX Codex +1 ★ 25repo stars Kybase Kyrzin A local Markdown note base your agent reaches over MCP: it reads, searches and links notes across sessions. CX Codex +1 ★ 6repo stars Pensyve major7apps Stores persistent episodic, semantic, and procedural agent memory locally in SQLite. Useful when an assistant needs to recall user preferences across chats. CX Codex +1 ★ 97repo stars clude sebbsssss Adds structured long-term memory with differential decay and semantic recall to AI coding agents. Useful for retaining project context across multiple sessions. CX Codex +1 ★ 22repo stars genome NORTHTEKDevs Local memory for AI agents: writes with no LLM calls, semantic recall, offline operation and an auditable fact history. CX Codex +1 ★ 10repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor