Engram Rs logo

Engram Rs

by kael-bit

Hierarchical AI-agent memory with semantic retrieval, layered promotion, decay, topic clustering, and session recovery.

Install Engram Rs

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": {
    "kael-bit-engram-rs": {
      "command": "npx",
      "args": [
        "-y",
        "engram-rs-mcp"
      ]
    }
  }
}

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

Automated check passed— started and listed 16 tools correctly ().

Overview

The kael-bit/engram-rs MCP server gives AI agents a persistent, hierarchical memory engine backed by a local SQLite file. It stores memories in Buffer, Working, and Core layers, then uses access activity, decay, deduplication, and optional LLM quality checks to manage promotion and retention. MCP tools support semantic recall, keyword search, session recovery, extraction, topic browsing, maintenance, and memory lifecycle operations. Reach for it when an agent needs durable context across sessions without Python, Redis, or a separate vector database.

Use cases

  • Restore agent context between sessions
  • Recall deployment lessons before risky actions
  • Organize project knowledge into browsable topics
  • Extract memories from conversation logs
  • Separate memories across multiple projects

Key features

  • Three-layer memory lifecycle
  • Semantic and keyword retrieval
  • Activity-based decay and promotion
  • LLM-assisted extraction and merging
  • Self-organizing topic tree
  • Session resume and action triggers

Tools16

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

Verified live~2.4k 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.

27/27 checks healthy over the last 113d

What it can do

From the 16 tools this server returned when we ran it.

Can delete or modify data · 1Handles credentials · 1Makes network requests · 1Read-only tools · 15
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age269 days
Maintainers1

Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · engram-rs-mcp (npm)

Adoption & maintenance

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

GitHub stars28Stargazers on the source repository.
npm downloads229Package downloads in the last 30 days.
Last commit9mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed16Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Engram Rs works

What kael-bit/engram-rs does

The kael-bit/engram-rs MCP server provides persistent memory for AI agents through a single Rust binary and one SQLite database file. It organizes entries across three layers: Buffer for newly stored or temporary items, Working for active knowledge, and Core for long-term information. New memories enter Buffer and can move upward as they are accessed and pass promotion checks.

The lifecycle is activity-driven. Consolidation can reduce the importance of memories that are not being used, while recalls provide an activation boost. Episodic memories decay faster than semantic memories, and procedural memories decay more slowly. Memories do not reach an absolute zero score, so precise searches can still find older entries.

The system also supports semantic deduplication, optional LLM-assisted merging, and an automatically maintained topic tree. Topic clustering lets an agent browse related knowledge instead of relying only on the wording of a search query. Tags can identify workspace context or action triggers such as deployment and database migration.

How it works

Storage, retrieval, and maintenance are exposed as MCP tools. engram_store creates memories, while engram_update, engram_delete, engram_trash, and engram_restore manage changes and soft deletion. The supersedes option can link a replacement to an outdated memory. engram_recall combines semantic and keyword retrieval with a token budget; its optional query expansion uses an LLM and is intended for short or vague queries. engram_search provides a lighter keyword-only path.

For session continuity, engram_resume returns Core, Working, Buffer, recent activity, and session notes. Its compact mode reduces the amount of context returned, and workspace tags can narrow the result to the current work. engram_recent provides a simpler creation-time listing. engram_topic expands topic clusters, while engram_triggers retrieves memories associated with a named action.

Background consolidation handles decay, deduplication, triage, promotion decisions, and topic rebuilding. engram_consolidate can run this process manually and can optionally merge similar entries with an LLM. engram_extract turns raw notes or conversation text into structured memories.

Setup and configuration

The kael-bit/engram-rs MCP server is distributed as a standalone Rust binary. The documented installation paths are an installation script for macOS and Linux, a PowerShell script for Windows, and a Docker image. The interactive installer prompts for embedding-provider configuration.

The application uses a local SQLite file and does not require Python, Redis, or a separate vector database. A single instance can separate projects with the X-Namespace header. This allows the same running service to keep memories for different projects isolated from one another.

Tools and capabilities

  • Store, update, supersede, delete, trash, and restore memories.
  • Retrieve memories through semantic-plus-keyword recall or quick keyword search.
  • Recover session context with compact or fuller resume data.
  • Extract memories from raw text using an LLM.
  • Run consolidation, inspect statistics, check health, and repair the full-text search index.
  • Browse topic clusters and fetch action-specific trigger memories.

Limitations and notes

LLM-backed features require an embedding provider configuration and may add latency. The default recall path is described as roughly 30 milliseconds when cached and about one second for a first query; query expansion adds approximately one to two seconds. Consolidation is activity-driven, so decay does not run merely because wall-clock time has passed while the system is idle.

Automatic promotion is not immediate for every memory. Procedural memories and entries tagged as lessons can promote to Working after two hours, while other promotion depends on access frequency and quality evaluation. Core and Working retention therefore reflects the configured lifecycle rather than a simple chronological archive.

The search index can be repaired safely with engram_repair; the operation is idempotent.

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 Rs

kael-bit/engram-rs is an MCP server that connects AI agents to a local SQLite-backed hierarchical memory engine. Its main tools store, recall, search, resume, extract, consolidate, update, delete, restore, and inspect memories, with layered retention, semantic retrieval, topic browsing, and action-trigger lookup.

Install it with the documented macOS/Linux shell script, Windows PowerShell script, or Docker image. The interactive installer prompts for embedding-provider configuration.

It documents MCP tools and standalone installation methods, but does not name Cursor or any other MCP client or provide client-specific setup instructions.

It applies decay during active consolidation cycles rather than continuously by wall-clock time. Unaccessed memories lose importance according to their kind, recalled memories receive an activation boost, and entries can be promoted between Buffer, Working, and Core.

Use the X-Namespace header to separate projects within one instance. Requests can include a namespace such as a project name, keeping its memories isolated from memories stored under other namespaces.

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