Engram Cc logo

Engram Cc

Persists coding-session context locally with handoffs, searchable events, and knowledge-graph traversal.

Install Engram Cc

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "engram-cc": {
      "command": "npx",
      "args": [
        "-y",
        "engram-cc"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio engram-cc -- npx -y engram-cc

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y engram-cc

r 404 npm error 404 'engram-cc@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm notice npm notice New major version of npm available! 10.9.9 -> 12.2.3 npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.3 npm notice To update run: npm install -g npm@12.2.3 npm notice npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-12-02T02_17_35_301Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

engram-cc MCP server provides persistent, project-local memory for AI coding sessions through recall, search, recent, and graph_query tools. Lifecycle hooks record prompts, tool results, compaction snapshots, and session stops in SQLite, while local processing produces handoffs, searchable events, graph data, and embeddings. The server exposes that stored context over MCP so supported assistants can resume work across sessions, folder moves, and tool changes. Reach for it when coding assistants need durable project memory instead of rebuilding context after every session.

Use cases

  • Resume coding work with a previous session handoff
  • Search historical tool results and session events
  • Inspect recent project activity by category
  • Traverse relationships between files and decisions

Key features

  • Project-local persistent session memory
  • SQLite and FTS5 event storage
  • Local handoff and memory synthesis
  • Knowledge-graph BFS traversal
  • Stable project identity across folder moves
  • MCP tools for recall and retrieval

Tools4

What Engram Cc lets your agent do. Expand a tool for its parameters.

Self-reported~50 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/30 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · engram-cc (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Engram Cc works

What engram-cc does

The engram-cc MCP server adds a persistent memory layer beneath AI coding assistants. It stores session activity per project and makes previously captured context available to later sessions. The stored data covers working preferences and decisions, session events, relationships between files and decisions, and embedding-indexed events.

Project identity is independent of the current folder path. A project uses an .ecc-id file when available, otherwise its git root commit hash, and finally a generated UUID. This lets the same history survive folder renames, moves, and git re-clones when the identity can be resolved from the repository.

How it works

Assistant lifecycle hooks capture activity at several points: user prompts, completed tool calls, context-compaction boundaries, session startup, and session shutdown. Events are written to a project-local SQLite database. At session end, a local synthesis pipeline creates a handoff, updates the knowledge graph, and prepares searchable or embedding-backed memory.

On startup, the system can inject either a recent full handoff or a smaller pointer to the recall tool. Sessions resumed within 30 minutes receive the full working context; colder starts receive a short headline and a reference to stored memory. The local processing tiers range from rule-based extraction to embedding models and local language models. The setup process selects available options, and lower tiers can continue capture when higher tiers are unavailable.

The engram-cc MCP server reads the resulting project memory rather than requiring an external service for its own compaction, handoff, and retrieval support. The repository describes an optional provider tier using Ollama, LM Studio, or Groq, but the core local pipeline is designed to work without external API calls.

Setup and configuration

Run the setup CLI from the project root with:

Terminal
npx engram-cc

A different project location can be supplied with --project-dir <path>. Setup creates .engram-cc/, asks where shared models should live, detects available hardware, and writes assistant-specific snippets under .engram-cc/assistant-configs/. It does not modify user-home configuration.

For assistants that install the package directly from npm, use the explicit package and binary form:

Terminal
npx --yes --package=@morous-dev/engram-cc -- engramcc-mcp

The generated project-local configuration may instead invoke the local server build. Configuration and model-path information are stored in .engram-cc/config.json; databases are kept under .engram-cc/sessions/.

Tools and capabilities

The engram-cc MCP server exposes four tools:

  • recall returns the full session context, including the handoff and working memory.
  • search performs FTS5 full-text search across recorded session events.
  • recent returns the latest events and can filter them by category.
  • graph_query traverses the knowledge graph using breadth-first search.

Claude Code, Gemini CLI, and OpenCode have full lifecycle hook support; Codex uses its supported hooks plus transcript and synthesized compaction handling. Kilo support is described as MCP plus an ekilo wrapper flow rather than native lifecycle hooks.

Limitations and notes

Memory is project-local, and the project state remains under .engram-cc/ even when Codex reads its session JSONL from CODEX_HOME or ~/.codex/sessions/. Kilo does not currently have verified native lifecycle-hook parity. Codex also lacks a true prompt-submit injection hook, so its setup uses a turn policy to direct the assistant toward MCP memory when earlier context may have been compacted.

The setup-generated Windows hook snippets use src/hooks/hook-runner.mjs to pass assistant and project environment variables without relying on fragile cmd /C quoting.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Engram Cc

engram-cc is an MCP server that connects AI coding assistants to project-local session memory. Its main tools are recall for full handoffs and working memory, search for FTS5 event lookup, recent for categorized recent events, and graph_query for breadth-first knowledge-graph traversal. It helps assistants resume context across sessions.

Install it with `npx engram-cc` from the project root, or pass `--project-dir <path>`. For direct npm-based MCP installation, use `npx --yes --package=@morous-dev/engram-cc -- engramcc-mcp`. Setup creates the project-local workspace and assistant configuration snippets.

Yes, Cursor is listed as supporting the MCP tools recall, search, recent, and graph_query.

engram-cc stores project memory under the project-local `.engram-cc/` directory. Session databases are kept in `.engram-cc/sessions/`, configuration is in `config.json`, and assistant snippets are placed in `assistant-configs/`. Codex may read transcripts from its own session directory, but ECC writes its state locally.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewEngram Cc AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/engram-cc?style=directory)](https://allmcps.com/mcp/engram-cc)
HTML Embed
<a href="https://allmcps.com/mcp/engram-cc"><img src="https://allmcps.com/api/badge/engram-cc?style=directory" alt="Engram Cc on AllMCPs" /></a>