Claude Engram logo

Claude Engram

by 20alexl

Tracks project memory, decisions, errors, and session context for Claude Code with local search and MCP tools.

Install Claude Engram

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

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for 20alexl/claude-engram, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

20alexl/claude-engram MCP server adds persistent memory and session intelligence to Claude Code. Lifecycle hooks capture edits, errors, decisions, tests, and context, while background mining makes past sessions searchable across projects. Its MCP tools support memory lookup, session mining, checkpoints, dependency mapping, impact analysis, and code search. Use it when Claude Code needs continuity across sessions, protection against repeated mistakes, or context that survives compaction; other MCP clients can use the tools but do not receive the hook-based automation.

Use cases

  • Resume work after context compaction
  • Search past sessions for decisions and fixes
  • Warn before repeating known development mistakes
  • Map dependencies before editing code
  • Save durable project checkpoints

Key features

  • Persistent local memory for Claude Code
  • Automatic hook-based event capture
  • Cross-session history mining and search
  • Compaction checkpoints and recovery
  • Dependency and edit-impact analysis
  • Local Ollama and embedding support

Security & health

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

Not checked yetLast checked 29d ago

We have not completed a health check for this listing yet.

0/96 checks healthy over the last 30d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/28/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars16Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity1 upvotesConfig copies, upvotes, and views on AllMCPs.

How Claude Engram works

What 20alexl/claude-engram MCP server does

20alexl/claude-engram MCP server keeps a local, searchable record of development activity for Claude Code. It can capture edits, error events, test results, session events, and decisions expressed in prompts. Session history is mined for decisions, mistakes, recurring problems, and related context so earlier work can be surfaced in later sessions.

The project also maintains project-oriented context. It can identify known-good test commands, check imports before edits, show potential edit impact, orient the agent before reads, and separate information belonging to different sub-projects. These features are implemented through Claude Code hooks, background session mining, and an MCP server for on-demand operations.

How it works

Claude Engram uses a hook process to observe Claude Code tool calls, a mining subsystem for background and live session analysis, and a scorer daemon for embeddings and hook dispatch. The MCP server exposes operations that the agent can request when background behavior is not enough. Ollama supplies the local language model used by selected operations, including semantic search, memory consolidation, and reflective session mining.

Before compaction, the system can create a checkpoint and re-inject information afterward. Manual checkpoints can record current work and remaining tasks for more deliberate recovery. A live mining interval can also process the active session. Search covers stored history and can be scoped to the relevant project or sub-project.

Setup and configuration

Install from the repository by creating a Python virtual environment, installing the project, optionally adding the semantic extra, and running python install.py. The installer sets up hooks, the MCP server, the /engram skill, and migrations. A project can then be configured by running the setup command for that project or copying the generated .mcp.json into its root.

The semantic extra adds an embedding model for vector search and scoring. Ollama must be available for the configured local model. Configuration is optional and can be supplied through environment variables or ~/.claude_engram/config.json. Important settings include the Ollama model, embedding model and dimension, compute device, live-mining interval, storage directory, session retention, and scorer timeout. The default storage directory is ~/.claude_engram.

Tools and capabilities

Available on-demand MCP operations include:

  • memory for working with stored memories and consolidation operations.
  • session_mine for searching or processing session history, including reindexing and reflective operations.
  • work and context for work-state and context checkpoints.
  • deps_map for dependency mapping.
  • impact_analyze for examining likely edit impact.
  • scout_search for project code or context search.

The installed /engram skill provides a reference for using these tools. Automatic behavior includes relevant-memory injection before file edits, warnings for known repeated mistakes, recurring-error fix injection, edit-loop detection, compaction checkpoints, and session mining.

Limitations and notes

20alexl/claude-engram MCP server provides its complete hook and session-mining behavior in Claude Code. The project runs locally and uses Ollama rather than a hosted model service.

Embedding models require local resources; the documented default is about 1.1 GB of scorer RAM, while all-MiniLM-L6-v2 is described as a smaller alternative with lower accuracy. Search indexes can be rebuilt with the supplied reindex script or through session_mine(operation="reindex", mode="bootstrap"). The repository describes the software as work in progress and licenses it under MIT.

Reviews

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

Frequently Asked Questions about Claude Engram

Clone the repository, create and activate a Python virtual environment, run `pip install -e .` or `pip install -e "[semantic]"`, then run `python install.py` to install hooks, the MCP server, the `/engram` skill, and migrations.

It does not specifically document the standalone Claude Desktop client.

Yes.

The project runs locally with Ollama, and selected operations use the configured Ollama model.

Run `python scripts/reindex.py` with a workspace path and `--force`, optionally adding `--extract`, or call `session_mine` with `operation="reindex"` and `mode="bootstrap"`.

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 PreviewClaude Engram AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/20alexl-claude-engram?style=directory)](https://allmcps.com/mcp/20alexl-claude-engram)
HTML Embed
<a href="https://allmcps.com/mcp/20alexl-claude-engram"><img src="https://allmcps.com/api/badge/20alexl-claude-engram?style=directory" alt="Claude Engram on AllMCPs" /></a>