Engram logo

Engram

Indexes local code, Git relationships, and project memory, then serves focused context to AI coding agents through MCP.

Install Engram

Run the project’s own setup commands, in order.

Setup steps from the project

engram installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/NickCirv/engram.git
    
  2. 2. Install
    cd engram
    
  3. 3. Run
    git checkout 9fa2a4b74ca8e66560d74d1255c16c43157d32bd
    
  4. 4. Install
    npm install --ignore-scripts
    
  5. 5. Install
    npm run build
    

Overview

The engram MCP server builds a local structural graph of source entities, references, Git relationships, and selected project memory. It stores project data in SQLite and exposes bounded context through an MCP executable, CLI commands, hooks, and a local dashboard. Use it when an AI coding agent needs relevant code relationships before reading full files or carrying recorded mistakes into later sessions. Review retrieved source before making behavioral claims because graph results support investigation rather than replacing source inspection.

Use cases

  • Index a local codebase for structural exploration
  • Find callers, callees, and potential impact before editing
  • Carry recorded mistakes and project memory between sessions
  • Serve bounded code context to an MCP-compatible agent

Key features

  • Local structural code graph
  • Git relationship and project-memory indexing
  • Bounded context queries with token estimates
  • MCP executable and local HTTP service
  • Agent document generation
  • Hook, benchmark, and provider management

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.

32/36 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8/22/2026 via OSV.dev

Adoption & maintenance

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

GitHub stars144Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Engram works

What engram does

The engram MCP server indexes a codebase into a project-local structural graph. Its source miners collect code entities and references, Git co-change relationships, and selected information from mistakes or sessions. Queries can then return focused context instead of requiring an agent to load complete files.

The graph is intended for code exploration and context maintenance. It can help an agent locate relevant entities, inspect callers and callees, understand potential impact, and reuse recorded project knowledge across sessions. The repository also includes commands for generating agent instruction documents and for reviewing hook activity.

How it works

Project data is persisted in a local SQLite database through sql.js. Graph queries traverse that stored structure and render bounded results with an estimated token count. Available exploration paths include text-oriented queries, file or path inspection, relationship traversal, impact analysis, and project statistics.

The provider resolver combines built-in sources with optional plugins and MCP providers. Those optional providers may start external processes or access networks, so the complete installation should not be treated as guaranteed offline. The HTTP service listens on 127.0.0.1, validates Host and Origin values, and protects routes with a bearer token or dashboard cookie.

Setup and configuration

The inspected package is version 4.5.0 and requires Node.js 20 or newer. A source-build setup is available from the repository:

  1. Clone the repository and install dependencies with npm install --ignore-scripts.
  2. Build it with npm run build.
  3. Initialize a target project with the CLI, optionally using --no-hook to avoid installing the default Sentinel hook.
  4. Run a query with the project path and a token budget, then inspect statistics.

Initialization writes an .engram/ graph inside the target project. The MCP executable is provided as engram-serve; the repository's integration documentation contains local MCP configuration details. ENGRAM_NO_UPDATE_CHECK=1 disables the CLI's npm update-check path. HTTP authentication can use ENGRAM_API_TOKEN or a local token file.

Tools and capabilities

The engram MCP server is useful alongside its CLI and related local services. Documented entry points include:

  • query, path, gods, callers, callees, impact, and stats for structural exploration.
  • init, watch, reindex, learn, and mistakes for maintaining indexed context.
  • gen, gen-mdc, gen-aider, gen-windsurfrules, and gen-ccs for producing agent documents.
  • server, ui, and engram-serve for serving context and exposing MCP access.
  • measure, bench, and cost for reviewing measurements.
  • Hook inspection and maintenance commands such as install-hook --dry-run, hook-preview, hook-stats, hook-disable, and hook-enable.

These commands can alter local state, including generated files, hooks, caches, databases, and plugins. Consult command help before write operations.

Limitations and notes

Graph retrieval is an aid to investigation, not proof of program behavior. Read the source returned by a query before making a behavioral claim. Token reduction figures and structural packet size do not establish equivalent answer quality or lower provider billing; benchmark results should be reproduced on representative workloads.

The core graph is local, but optional update checks, configured providers, plugins, and Context7-related integrations may involve network access or external processes. The project is licensed under Apache-2.0.

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

engram is an MCP server that connects local coding projects to AI agents through a structural code graph and exposes focused context via tools such as query, path, callers, callees, impact, and stats. It stores project data in local SQLite and can include Git relationships and selected project memory.

Install it by cloning the repository, running `npm install --ignore-scripts`, building with `npm run build`, and using the `engram-serve` executable for MCP access. The inspected package requires Node.js 20 or newer, and the repository provides local MCP configuration guidance.

Yes, the repository documents a Cursor integration. Engram also includes an MCP executable and local configuration material, so Cursor can be configured to use the server according to the integration instructions.

No, the complete system is not guaranteed to be network-free. The core graph is local, but npm update checks, Context7, and configured MCP or plugin providers can use external processes or network access. Set `ENGRAM_NO_UPDATE_CHECK=1` to disable the update-check path only.

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