# Engram

> Engram is an open-source MCP server for knowledge and memory. Local long-term memory for AI apps: searchable, correctable, no LLM or API key. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/tushaebxn/engram
- **MCP Registry name:** io.github.TushaeBXN/engram
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

Engram tackles the problem that a new chat forgets last week's reasoning. You point it at notes, documents, code or saved conversations with `engram mine`, and later questions in different words, such as why the team changed an authentication library, return the original passage verbatim. Everything runs on your computer; after a one-time download of a small language model of about 80 MB, it works offline.

The package exposes 31 tools prefixed `engram_`, covering recall, search, remember, correcting an outdated memory, linking a conclusion to its evidence, explaining why a memory says what it does, a topic's history and a knowledge graph of people and facts. `engram connect` writes the right config for Claude Desktop, Cursor, Windsurf, VS Code, Gemini CLI, Codex CLI, Zed and LM Studio, keeping a backup.

For Claude Code it can install hooks that recall relevant memories before each reply, save every edited file, and save before compaction. Memories are filed by project. A local web API at 127.0.0.1:7742 serves apps that do not speak MCP, localhost-only by default. It installs from PyPI as `engram-chateau` and needs Python 3.9 or newer.

## Features

- **Verbatim storage:** Keeps your notes exactly as written and finds them by meaning.
- **Correctable memories:** Updates outdated memories and keeps a history of what replaced them.
- **Auto-recall for Claude Code:** Hooks surface up to 3 relevant memories before each reply.
- **One-command setup:** engram connect configures supported apps and backs up settings.
- **Local web API:** Serves non-MCP apps over localhost with strict defaults.
- **Project-aware filing:** Recall prefers memories from the project you are working in.

## Good for

- Remember why a design decision was made months ago
- Give a coding agent persistent memory across sessions
- Search personal notes by meaning rather than keywords
- Build a companion bot with its own memory

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add engram -- uvx engram-chateau
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "engram": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add engram -- uvx engram-chateau
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.engram]
command = "uvx"
args = ["engram-chateau"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user engram uvx -- engram-chateau

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "engram": {
      "command": "uvx",
      "args": [
        "engram-chateau"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `engram_recall`: Search memory for entries relevant to a message

## FAQ

### Does Engram need an API key or an LLM?

No. It runs locally and makes no LLM calls.

### How do I install Engram?

pip install engram-chateau; the command you run is engram.

### Which apps can Engram connect to?

Claude Desktop, Cursor, Windsurf, VS Code, Gemini CLI, Codex CLI, Zed, LM Studio and any app that speaks MCP.

### Is my data sent anywhere?

The README describes it as private and local, and its web API listens on localhost only unless you enable a token.

### Is Engram free?

Yes. Engram is open source, so you can use and self-host it for free.

### How do I add Engram to Claude Code?

Run this command in your terminal: claude mcp add engram -- uvx engram-chateau

### What are the best alternatives to Engram?

The closest alternatives to Engram are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/engram-11
