# memory-eternal [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/EternalNight996/memory-eternal  
**GitHub Stars:** 232  
**npm Downloads (last month):** 15338  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/memory-eternal

## Description
Your AI forgets every session. Give it a memory you can audit: local-first, review-gated agent memory — one SQLite vault for DSH, Claude Code, Codex, Cursor, OpenClaw, Hermes and MengBot (any MCP client), with an immutable audit log and a token ledger. Agents propose, humans approve. MIT, self-hosted, no cloud.

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

```json
"mcpServers": {
  "memory-eternal": {
    "command": "npx",
    "args": ["-y","-p","memory-eternal","dsh-memory"]
  }
}
```

## Documentation

## What memory-eternal does

memory-eternal provides persistent memory for AI agents while keeping the data on the local machine. Its central store is a SQLite vault with a Markdown mirror, an immutable audit log, and a token ledger. The same vault can be used from DSH, Claude Code, Codex, Cursor, and other MCP clients.

New or changed memories do not immediately become trusted context. Agent-created cards enter a review queue, where a human can approve or reject them through the browser interface, terminal UI, or CLI. Approved cards are placed in the main store and can be retrieved later. Selected approved cards can also be promoted to core memory, making them available automatically in each session.

## How it works

Memory enters through several paths, including session capture, installed-skill scanning, news follows, manual cards, and imports. Session distillation uses an LLM, then applies duplicate detection and kind classification before placing the result in quarantine. If distillation fails, the raw card is retained rather than discarded.

The main store contains approved cards only. `memory_recall` searches that store with SQLite FTS5 and BM25, so normal recall does not require another model call. `memory_revise` creates a pending revision instead of changing an approved card directly. An agent cannot approve its own submissions; approval remains a human action.

The token ledger records recall hits and injected characters, distillation input and output, LLM call counts, and usefulness feedback. This lets operators compare the cost of memory injection and capture with the context it replaces.

## Setup and configuration

Install the package globally when using the connection helpers:

```bash
npm i -g memory-eternal
dsh-memory connect claude
```

The connection command also accepts `codex` or `cursor`. For another MCP client, start the server with:

```bash
npx -y -p memory-eternal dsh-memory mcp
```

The local browser interface is available with `dsh-memory open` and runs at `http://127.0.0.1:7999`. A terminal review queue can be opened with `npx -y -p memory-eternal dsh-memory tui`. DSH users can add the plugin with `dsh plugin --profile desktop add memory-eternal`, then reopen DSH and select Memory.

## Tools and capabilities

- `memory_recall` retrieves approved memories on demand using full-text search and BM25 scoring.
- `memory_write` submits captured or agent-created memory for review rather than writing directly to the trusted store.
- `memory_revise` proposes a replacement for an existing card; the revision remains pending until approved.
- Core memory supplies approved, promoted cards automatically at session start.
- The Web UI, TUI, and CLI support human review, while the reader provides a clickable table of contents and adjustable layout sizes.
- SQLite, a Markdown mirror, an audit log, and a token ledger preserve memory data and usage records locally.

## Limitations and notes

Memory data is designed to remain on the machine and does not require a cloud account or third-party memory framework. The News page is an exception to the local-only data flow: it fetches public RSS and Hacker News content on demand, limited to titles, excerpts, and outbound links.

Recall uses lexical full-text search rather than a model call, so results depend on the text and indexing of stored cards. Distillation can use an LLM when capturing sessions. The project recommends using its ledger to measure whether injected memory offsets its context and capture costs for a particular workload.

_Full upstream README: https://allmcps.com/mcp/memory-eternal/readme_

