Memory Eternal logo

Memory Eternal

Local-first MCP memory with SQLite storage, human review gates, audit logging, recall, revisions, and token usage tracking.

Install Memory Eternal

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": {
    "memory-eternal": {
      "command": "npx",
      "args": [
        "-y",
        "-p",
        "memory-eternal",
        "dsh-memory"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio memory-eternal -- npx -y -p memory-eternal dsh-memory

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

npx -y -p memory-eternal dsh-memory

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

memory-eternal MCP server gives AI clients access to a shared, local SQLite memory vault with human-controlled writes. Agents can recall approved cards, submit new memories for review, and propose revisions; approval happens through the Web UI, terminal UI, or CLI. Approved cards can become core memory injected into every session, while FTS5 and BM25 provide retrieval without model calls. Reach for it when you need persistent, auditable memory across Claude Code, Codex, Cursor, or another MCP client.

Use cases

  • Share approved project context across multiple AI coding clients
  • Review and reject agent-proposed memories before they affect recall
  • Track recall injection and distillation costs with the token ledger
  • Promote stable decisions and preferences to always-on core memory

Key features

  • Local SQLite vault with Markdown mirror
  • Human review queue for memory writes and revisions
  • FTS5 and BM25 recall without model calls
  • Immutable audit log
  • Core memory for automatic session context
  • Token ledger for recall and capture usage

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.

9/9 checks healthy over the last 25d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · memory-eternal (npm)

Adoption & maintenance

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

GitHub stars232Stargazers on the source repository.
npm downloads15kPackage downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Memory Eternal works

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:

Terminal
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:

Terminal
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.

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 Memory Eternal

memory-eternal is an MCP server that connects AI clients to a local SQLite memory vault and exposes memory_recall, memory_write, and memory_revise tools. It retrieves approved cards, submits new memory for review, and proposes revisions without letting agents approve their own changes. The vault also maintains Markdown, audit, and token-ledger records.

Install it globally with `npm i -g memory-eternal`, then use `dsh-memory connect claude`, `dsh-memory connect codex`, or `dsh-memory connect cursor`. For another MCP client, run `npx -y -p memory-eternal dsh-memory mcp`.

Yes, memory-eternal provides a Cursor connection command: `dsh-memory connect cursor`. Cursor can use the shared local vault through the MCP server, subject to the same approval gate as other clients.

No, agent writes are queued for human review. `memory_write` submits a memory for approval, and `memory_revise` submits a proposed replacement; agents cannot approve their own changes.

No, normal `memory_recall` searches approved cards with SQLite FTS5 and BM25 without a model call. Session distillation can use an LLM when converting captured activity into memory.

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