# engram [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/spectra-g/engram  
**GitHub Stars:** 7  
**npm Downloads (last month):** 212  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/engram-3

## Description
MCP adapter for Engram - organizational memory for AI agents

## Tools
Capabilities this server exposes over MCP:

- **get_impact_analysis** — Analyzes the blast radius and coupling of files to prevent breaking changes. This tool reveals which other files are frequently co-committed with the target file, helping you understand what else might be affected by your changes. Use cases: bug fixes, feature additions, refactoring, code review.
- **save_project_note** — Save important context, decisions, or learnings about a file or symbol for future reference. Use this when you discover important information about code behavior, architectural decisions, bug fixes, or gotchas that would be valuable for future work. Notes are stored persistently and will appear in future impact analysis results.
- **read_project_notes** — Read project notes (memories) about files before working on them. Use this when starting work on a file or investigating an area of the codebase to see if there are important notes, learnings, or context that have been saved. Can search by query text, filter by file path, or list all notes.
- **get_usage_metrics** — Get usage statistics for this repository including how many analyses have been performed, risk distributions, notes created, and performance metrics. Useful for understanding your usage patterns and the health of the codebase analysis.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "engram": {
    "command": "npx",
    "args": ["-y","@spectra-g/engram-adapter"]
  }
}
```

## Documentation

## What engram does

The engram MCP server helps an AI agent understand repository context that may not be visible from the files in its immediate task. It combines three sources of information: co-change patterns from Git history, intent extracted from tests, and notes saved by people or agents about project-specific constraints.

Its primary analysis operation, `get_impact_analysis`, accepts a target file and repository root. The result identifies files that frequently changed alongside the target, assigns risk information, includes relevant test descriptions, and attaches matching saved notes. This can expose dependencies that are not represented by imports or shared types.

The server also provides `save_project_note` for recording durable context about a file and `read_project_notes` for searching or listing that context. Notes can capture architectural decisions, edge cases, or operational requirements that should remain available across agent sessions.

## How it works

The engram MCP server is structured as a TypeScript or Node.js adapter in front of a Rust core binary. The adapter communicates with the agent through MCP over standard input and output, then exchanges JSON with the core. The core reads the repository, performs Git indexing, extracts test information, and uses SQLite for persistent storage under `.engram/engram.db`.

Indexing is performed when needed rather than through a permanent background daemon. Smaller repositories can be indexed broadly, while very large repositories use path-focused processing. The implementation also filters items such as lockfiles, binary files, and generated code. The project reports targets below two seconds for first-run indexing and below 200 milliseconds for later runs, including separate per-file targets for very large repositories.

Test intent extraction covers Vitest, Jest, Mocha, Playwright, Cypress, JUnit 4 and 5, Kotest, ScalaTest, Rust tests, Pytest, Unittest, and Go tests. Supported patterns include common test declarations such as `it`, `test`, `describe`, `def test_...`, and Go's `func Test...`.

## Setup and configuration

Run the adapter through `npx` as an MCP stdio server. Claude Code can register it with:

```bash
claude mcp add --scope user --transport stdio engram -- npx -y @spectra-g/engram-adapter
```

For Cursor, add an MCP server named `engram`, choose the command-based type, and use `npx -y @spectra-g/engram-adapter` as the command. The material does not specify required environment variables or additional configuration files.

The repository recommends adding project instructions that require an impact analysis before modifying code, followed by review of high- or critical-risk files and saving newly discovered constraints. That workflow is an instruction convention rather than an enforced server behavior.

## Tools and capabilities

- `get_impact_analysis`: Calculates a target file's likely blast radius from Git co-change history and returns risk details, test intents, and stored notes.
- `save_project_note`: Stores a persistent note associated with a file and repository.
- `read_project_notes`: Searches notes by text or path, or lists the project's stored knowledge.

The analysis output includes a summary, formatted file records, coupled files, and the number of commits considered. Risk records can include a score, co-change description, memories, and test behavior that may need preservation.

## Limitations and notes

Engram reports relationships derived from repository history; it does not establish that every frequently co-changed file is functionally related. Agents still need to inspect flagged files and decide whether a reported relationship matters. Test intents are extracted from supported frameworks and patterns, so unsupported test styles may not appear in results.

All processing is described as local, with no usage, code, or identity telemetry. Persistent project data is stored in the repository's `.engram` directory. The server requires an MCP-compatible client and a working Node.js and `npx` environment for the documented setup.

_Full upstream README: https://allmcps.com/mcp/engram-3/readme_

