Mnemosyne

Memory and knowledge

Evidence-tracked local memory MCP server: one SQLite file; corrections retire dependent memories.

Your AI app calls the Mnemosyne MCP server, which does the memory and knowledge work and sends the result back to the chat.

About Mnemosyne

Mnemosyne is a community MCP server from 28naem-del, filed in our directory under memory and knowledge. Evidence-tracked local memory MCP server: one SQLite file; corrections retire dependent memories.

Mnemosyne runs on your own machine: your AI app starts it with the command npx -y mnemosy-ai@3.0.0-rc.4 mcp and talks to it over standard input and output.

Mnemosyne is listed in the official MCP registry as io.github.28naem-del/mnemosyne, version 3.0.0-rc.4.

At a glance

Publisher
28naem-del (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mnemosy-ai
Written in
TypeScript
License
MIT
GitHub stars
162
Official MCP registry
io.github.28naem-del/mnemosyne

How to set up Mnemosyne

  1. Install Node.js on the machine that runs your AI app, because Mnemosyne starts with npx and downloads its package on first run.
  2. Check the Mnemosyne README for keys or settings; the registry lists none that Mnemosyne requires.
  3. Add Mnemosyne to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mnemosyne tools to confirm the connection.
  5. Run one read-only task with Mnemosyne first, and keep your app asking before each tool call until the results look right.

Mnemosyne compared with similar servers

  • ContextKeep by mordang7 has fewer GitHub stars than Mnemosyne (161 against 162); both are community servers, and both run locally.
  • Mnemo Cortex by GuyMannDude has fewer GitHub stars than Mnemosyne (162 against 162); both are community servers, and both run locally.
  • Eion by eiondb has fewer GitHub stars than Mnemosyne (160 against 162); both are community servers, and both run locally.

Before you connect Mnemosyne

  • Give Mnemosyne its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mnemosyne tool call until you trust what it does with them.
  • Treat text that Mnemosyne fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mnemosyne on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mnemosyne

How marketing and sales teams put Mnemosyne to work, by company size. Pick the size closest to yours and start Mnemosyne on one use case.

Small business

  • A small business can give Mnemosyne its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use Mnemosyne to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • Mnemosyne runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect Mnemosyne to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through Mnemosyne, so answers about pricing and features match across teams.
  • Start Mnemosyne on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Mnemosyne with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make Mnemosyne the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • Mnemosyne is a community server, so have security review the code and pin a version before Mnemosyne touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mnemosyne README

From 28naem-del/mnemosyne on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Mnemosyne

The next agent starts wiser.

Mnemosyne is local-first, long-term memory for AI agents: one SQLite file that keeps what an agent learned together with the evidence it came from, served to any host over TypeScript, MCP, CLI or HTTP. When a source is corrected, the memories recorded as depending on it are retired, so the next agent starts from what current recorded evidence still supports instead of repeating a stale lesson. The local engine needs no model API key, database server or Docker.

  • Evidence on every memory. Each record keeps its source and trust tier, and the superseded version stays inspectable after a correction.
  • Corrections that reach dependents. A corrected requirement retires the procedures and skills recorded as depending on it; 3.0 can also propose dependencies nobody declared, for review.
  • Auditable over time. Past beliefs replay exactly. Given the records a failed retrieval should have returned, bisect finds the records that pushed them out. In the 3.0 pre-release, consolidation is outcome-gated and reversible.
  • Any host. MCP for Claude Code, Cursor and Codex; a TypeScript SDK; a CLI; and authenticated HTTP with a Python client and live inspector.

Stable: 2.0.0 (npm install mnemosy-ai) · Newest pre-release: 3.0.0-rc.4, the breakthrough release (npm install mnemosy-ai@next) · MIT · Node.js ≥22.16

Website · Quickstart · Documentation (github.com/28naem-del/mnemosyne/blob/main/docs/README.md) · Examples · Migration · Measured results · Trust evidence · Claims and evidence · Releases · npm · Contributing · Issues

[!NOTE] Which Mnemosyne is this? This repository is the TypeScript package published on npm as mnemosy-ai, with its site at mnemosy.ai. It is a separate project from mnemosyne-oss/mnemosyne, the Python memory library published on PyPI as mnemosyne-memory; the two share a name, not code or maintainers. Please file issues for that project in its own repository.

This repository predates mnemosyne-oss/mnemosyne: GitHub records its creation on February 24, 2026; the separate Python repository was created on April 5, 2026.

Try it

The first npx run downloads the package; after that, the 3.0.0-rc.4 demo runs offline on synthetic corpora, with no API key and no model, and measures each claim while it runs:

npx -y -p mnemosy-ai@next mnemosy demo

The recording above is one unedited run (assets/demo.tape regenerates it with vhs). The last line of each of its five moments, matching the recorded run of 28 October 2026 (site/demo-five.json; timings vary by machine; the pass bars printed after each line are omitted here):

PROOF  replay determinism: 1000/1000 identical, 24000/24000 as-of answers = ground truth   [PASS]
PROOF  downstream repair: undeclared invalidated 3/3, accepted edges true 3/3, stale after correction 0 (11 probes)   [PASS]
PROOF  blame precision / time-to-locate: precision 1.00, 0.40 s, 2000 records   [PASS]
PROOF  poisoning suite v1, live: 227 cases, 0 escapes, 0 false quarantines   [PASS]
PROOF  consolidation receipts: kept 1 (delta +2), rolled back 2 (regression, invariant violated), rollback identical hash true, chain verified 4 receipts   [PASS]

5/5 moments proved.

What each moment proves, and what it does not. Then give the memory to Claude Code (other clients: Install and connect an agent):

claude mcp add mnemosyne -- npx -y -p mnemosy-ai@next mnemosy mcp --db ./.mnemosyne/memory.sqlite --workspace my-project --agent assistant

For the stable release, write mnemosy-ai@2.0.0 in place of mnemosy-ai@next; on 2.0.0, mnemosy demo runs the earlier single-scenario demo.

Contents: 3.0: the breakthrough release · Install and connect an agent · Measured results · Choose your engine · A working demonstration · Corrections in code · Tune the dense index · What you can build · Entry points · Migrate · Limits · Operational boundaries · Build with us

New in 3.0: the breakthrough release (pre-release on npm next)

3.0 is the breakthrough release. Replay and bisect already existed in 2.0.0. 3.0 adds four things: dependencies nobody declared, inferred and proposed for review, so that corrections reach them once accepted; a poisoning gate checked against a reproducible attack suite; outcome-gated, reversible consolidation with signed receipts; and opt-in precision controls. bisect also gained the hybrid retrieval path: since 3.0.0-rc.4 the mnemosy bisect CLI re-executes the store's own path (--retrieval auto|lexical|hybrid, default auto, which picks hybrid when the store has stored vectors for the bundled model; an hnsw index is refused). bisect is not a public package export, so from npm the CLI is the entry point. Each of these is documented and tested below, and each public claim is listed with its evidence in Claims and evidence. 3.0.0-rc.4 is the current release candidate on the npm next channel: npm install mnemosy-ai@next installs it, while npm install mnemosy-ai still installs the stable 2.0.0. Every number below was measured on 3.0.0-rc.2, offline, with no API key, no paid model and no LLM judge. Each one reproduces with the commands in Benchmarks and trust evidence, which also lists what is not claimed.

Measurement Result Protocol
PrecisionMemBench 70/77 single-turn, 11/12 session turns (rc.1: 22/77 unfiltered, 48/77 with tuned wrapper filters, session 6/12) Public 35-belief fixture the controls were designed against, protocol-exact, retrieval mode, no wrapper-side filter, no LLM judge · protocol
Poisoning suite v1, consolidation on 0/167 escapes, 0/60 false quarantines (85/167 escape without the gate) 227 synthetic cases, lexical path, 294 gate decisions · protocol
Dependency suite v1 recall 96.05 %, precision 98.06 %, 0 stale procedures with the premise guard (inference alone: 7/248 stale; guard false-hold rate 92.78 %) Synthetic corpus, seed 20261028, 120 corrections, accept-all eval reviewer · protocol
Replay determinism 1000/1000 identical states, 24,000/24,000 as-of answers Two readers of one store at 1000 seeded cut points; answers against ground truth from the plan · protocol
Bisect precision 1.00 on 2,000 records, 0.40 s in the recorded run of 2026-10-28 (site/demo-five.json; varies by machine; bar 60 s) One seeded false record in a synthetic store; the expected record is known, and the blame is confirmed by re-running recall without the culprit · protocol

The default retrieval path's recall did not move: LoCoMo and LongMemEval-S recall are identical before and after (regression check). Recall latency was measured only on a loaded machine, with a scratch harness that is not committed, so those figures cannot be reproduced from this repository; the known limits, including a slowdown of the non-default overlap scorer, are in the changelog.

  • Precision you can switch on. The new opt-in controls are a names gate and guarded single-edit fuzzy matching. Empty answers are native abstentions, and the ledger records why. With the controls on, the kernel scores 70/77 single-turn cases and 11/12 session turns on PrecisionMemBench (session was 6/12 with the rc.1 filtered configuration). That run was protocol-exact, in retrieval mode, with no LLM judge, no wrapper-side filter and no wrapper kinds predicate, and the lexical and hybrid paths score the same. The 12th session turn needs an open-question kind policy that the kernel is not told about.

    • For comparison, the kernel scored 22/77 unfiltered and 48/77 with the fixture-tuned wrapper filters of rc.1.
    • The benchmark fixture is public, and the controls were designed against it, so this is not a held-out estimate.
    • The 7 remaining misses are those of our metadata-based configuration; the single-turn protocol does not send explicit lifecycle fields.
    • The default retrieval path is unchanged: LoCoMo and LongMemEval-S recall are identical before and after.
  • Consolidation that has to earn its keep. A consolidation pass is a signed diff, replayed against the agent's own recorded outcomes. It is kept only when aggregate lexical coverage on that replay set does not drop and no invariant breaks. One command undoes a kept pass that nothing has changed since; the visible-record state hash comes back identical only when nothing was written after the pass. The gate is off by default in the standard MCP setup: the host turns it on from the SDK by recording query text in the ledger and verifier outcomes (how). With consolidation on, the poisoning suite v1 run (227 synthetic cases, reproducible) has zero escapes: 0 of 167 attacks escaped and 0 of 60 benign controls were falsely quarantined, across 294 gate decisions. An ungated control lets 85 of the 167 attacks through. Consolidation gate · Signing and receipts

  • Corrections that reach what nobody linked. Dependencies are inferred from successful co-use and proposed for review. Once accepted, they are declared through correct(), and runtime skills can be linked to their premises. The measurement is on a synthetic seeded corpus (dependency suite v1, seed 20261028, 120 corrections):

    • invalidation recall is 96.05 %;
    • precision of accepted edges is 98.06 %;
    • 0 stale procedures ran through the premise guard. That zero comes from the guard, a blanket hold on anything co-used with a changed premise: inference alone leaves 7 of 248 checks stale, and the guard's false-hold rate is 92.78 %.

    Inferred dependencies

  • A demo that measures itself. mnemosy demo walks through five moments on synthetic corpora, offline, on the zero-model lexical path:

    1. a past belief replayed exactly;
    2. a correction reaching dependents nobody linked;
    3. bisect finding the seeded record that pushes a known right answer out of the results;
    4. a poisoning attempt caught, with the suite run live;
    5. a consolidation kept, another rolled back, and the kept one undone.

    Each moment prints a PROOF line measured in that run. What each moment proves

npx -y -p mnemosy-ai@next mnemosy demo             # five moments, offline, each PROOF line measured live
npx -y -p mnemosy-ai@next mnemosy demo --classic   # the previous single-scenario demo

From a source checkout, run npm run build and then node dist/cli/index.js demo.

3.0 is a breaking release: the legacy vector engine moves to mnemosy-ai-legacy, which is not on npm yet; build it from a checkout or stay on mnemosy-ai@2 (3.0 migration). The release notes are in the changelog.

Install and connect an agent

Choose one channel:

npm install mnemosy-ai                   # stable: latest = 2.0.0; pin mnemosy-ai@2.0.0 to reproduce
npm install mnemosy-ai@next              # or the pre-release: next = 3.0.0-rc.4; pin mnemosy-ai@3.0.0-rc.4 to reproduce

Then, in that project, npx --no-install mnemosy demo runs the demo of the installed version offline (no API key, no server, no Docker); --no-install makes npx fail instead of fetching another package if none is installed. Without installing, npx -y -p mnemosy-ai@3.0.0-rc.4 mnemosy demo downloads and runs exactly that version.

Give the memory to an MCP client. The entries below run the 3.0.0-rc.4 pre-release through mnemosy-ai@next (the Hermes entries pin mnemosy-ai@3.0.0-rc.4); for the stable release write mnemosy-ai@2.0.0 in its place, and to pin the pre-release write mnemosy-ai@3.0.0-rc.4. Both versions expose the same MCP tools. mnemosy mcp requires --db, --workspace and --agent. The database file (mode 0600) and its parent directory (mode 0700) are created on first use; add .mnemosyne/ to the project's .gitignore. Relative paths resolve from the directory the client starts the server in; use absolute paths if your client launches servers elsewhere. Node.js >= 22.16 and npx must be on PATH.

Each host is labelled Tested (we ran the commands shown, with the versions named) or Documented (written from the host's documentation; we did not run it).

Claude Code

Plugin. This repository is a Claude Code plugin marketplace (mnemosy-ai, file .claude-plugin/marketplace.json) with one plugin, mnemosyne (integrations/claude-code):

claude plugin marketplace add 28naem-del/mnemosyne      # in a session: /plugin marketplace add 28naem-del/mnemosyne
claude plugin install mnemosyne@mnemosy-ai             # add --scope project to share it through .claude/settings.json

Tested with Claude Code 2.1.301, from a local checkout of these files and from GitHub with the commands above (run against main): claude plugin validate passes, claude mcp list shows plugin:mnemosyne:mnemosyne connected, and a session lists 16 tools. The plugin starts npx -y -p mnemosy-ai@next mnemosy mcp --db ${CLAUDE_PROJECT_DIR}/.mnemosyne/memory.sqlite --workspace default --agent claude-code, so each project gets its own database. In Claude Code its tools are named mcp__plugin_mnemosyne_mnemosyne__memory_*; permission rules must use that form.

Without the plugin. Claude Code reads .mcp.json in the project root:

{
  "mcpServers": {
    "mnemosyne": {
      "command": "npx",
      "args": [
        "-y", "-p", "mnemosy-ai@next", "mnemosy", "mcp",
        "--db", "./.mnemosyne/memory.sqlite",
        "--workspace", "my-project", "--agent", "assistant"
      ]
    }
  }
}

or registers the same server from the shell:

claude mcp add mnemosyne -- npx -y -p mnemosy-ai@next mnemosy mcp --db ./.mnemosyne/memory.sqlite --workspace my-project --agent assistant

Tested with Claude Code 2.1.301: claude mcp list shows the server connected after claude mcp add, and for .mcp.json once the project is trusted and its server approved.

Cursor

Documented. Cursor was not available to us, so neither form below has been run.

The button opens Cursor's install page; the direct link is cursor://anysphere.cursor-deeplink/mcp/install?name=mnemosyne&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIi1wIiwibW5lbW9zeS1haUBuZXh0IiwibW5lbW9zeSIsIm1jcCIsIi0tZGIiLCIke3VzZXJIb21lfS8ubW5lbW9zeW5lL21lbW9yeS5zcWxpdGUiLCItLXdvcmtzcGFjZSIsImRlZmF1bHQiLCItLWFnZW50IiwiY3Vyc29yIl19. Either one adds a global server whose database is ${userHome}/.mnemosyne/memory.sqlite, shared by every Cursor project. For one database per project, put this in the project's .cursor/mcp.json instead:

{
  "mcpServers": {
    "mnemosyne": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y", "-p", "mnemosy-ai@next", "mnemosy", "mcp",
        "--db", "${workspaceFolder}/.mnemosyne/memory.sqlite",
        "--workspace", "default", "--agent", "cursor"
      ]
    }
  }
}
Codex

Codex keeps MCP servers in ~/.codex/config.toml. Register the server with an absolute database path:

codex mcp add mnemosyne -- npx -y -p mnemosy-ai@next mnemosy mcp --db /absolute/path/project/.mnemosyne/memory.sqlite --workspace my-project --agent assistant

The command writes the table below without the last line. Codex waits 10 s for a server to start by default, and the first npx launch downloads the package, so add startup_timeout_sec = 60 by hand (or write the whole table yourself):

[mcp_servers.mnemosyne]
command = "npx"
args = ["-y", "-p", "mnemosy-ai@next", "mnemosy", "mcp", "--db", "/absolute/path/project/.mnemosyne/memory.sqlite", "--workspace", "my-project", "--agent", "assistant"]
startup_timeout_sec = 60

Tested as configuration only, with codex-cli 0.153.4: codex mcp add wrote the table, and codex mcp list and codex mcp get read it back enabled, including startup_timeout_sec. The server has not been run inside a Codex session.

Hermes Agent

Documented, not tested: Hermes is not available in our CI or development environment. Hermes reads MCP servers from ~/.hermes/config.yaml:

# ~/.hermes/config.yaml
mcp_servers:
  mnemosy:                       # not "mnemosyne": avoids confusion with the mnemosyne-oss provider
    command: "npx"
    args: ["-y", "-p", "mnemosy-ai@3.0.0-rc.4", "mnemosy", "mcp",
           "--db", "/absolute/path/.mnemosyne/memory.sqlite",
           "--workspace", "hermes", "--agent", "hermes"]
    connect_timeout: 120         # default 60 s; the first npx run downloads the package
    # trust: untrusted           # optional: ask before every write tool (read tools carry readOnlyHint)

integrations/hermes holds the same server as a Hermes portable plugin (mnemosy-ai, one MCP server and one skill). It is not listed in the Hermes plugin catalog.

Every host

The first npx launch downloads the package; if a client gives up during that first start, install the package in the project first.

The server exposes 16 memory_* tools (memory_store, memory_recall, memory_context, memory_correct, memory_checkpoint, memory_resume, memory_observe, memory_skill, …); memory_forget is added only when the server is launched with --allow-destructive. Add --read-only to omit every mutation tool. A model cannot switch workspace, raise its own trust or report its own skill trials through MCP. The MCP tools do not include consolidation, bisect or outcome recording, so the 3.0 outcome gate stays off in this setup (turn it on from the SDK). Agent-readable summaries of this repository are in llms.txt and AGENTS.md; the full MCP contract is in Connect through MCP.

Measured: 409 of 500 on LongMemEval-S, with the misses printed

What Result How it was measured
Answer accuracy, LongMemEval-S, all 500 questions 409 / 500 correct (81.8%), Wilson 95% CI 78.2–84.9; exact match 7.6% Mnemosyne reranked retrieval, top-20 hits packed to 16 KB, read by claude-sonnet-4.6, judged by claude-haiku-4.5. Prompt and budget were chosen on 100 of the questions; the other 400 score 82.3%.
Reranker gain, LoCoMo, 1,531 annotated questions MRR@10 0.461 → 0.624, +0.163 (paired bootstrap 95% CI 0.146–0.181; 599 wins, 133 losses) The same hybrid candidate set with and without the bundled cross-encoder, on the shipped build.
Against Mem0 OSS, same corpus, chunks, K, packing budget, scorer, one process LoCoMo recall@10 73.57 vs 63.72 for Mem0 OSS with Mnemosyne's reranker; LongMemEval-S recall@20 tied at 96.67. Fast mode without the reranker trails Mem0 on LoCoMo by under 1 point at every K, and Mem0 has the higher LongMemEval-S MRR COMPARISON.md, every loss in the same tables

What these numbers do not say. The 81.8% is not a paired gain over the earlier 71.2%: that baseline used a different 250-question sample, prompt and budget, so the improvement belongs to the whole bundle of changes. The reader is nondeterministic; rerunning one configuration moved its score by about a point. Retrieval numbers measure coverage, not answers. Two Tier 1 targets of 2.0.0 are not met and ship disclosed: recall latency at one million records is p95 139–223 ms against a 50 ms goal (opt-in indexMode: 'hnsw', see Tune the dense index), and contextual reranking ships at 71.98% all-evidence hit against a 72.80% gate, 0.82 points (13 of 1,531 questions) short; the best variant tried was still four short and was not merged. Commands and raw outputs are in reports/t1-targets/evidence/; the answer-accuracy and gate results are restated with their commits in the changelog, and the Mem0 and reranker retrieval tables are in COMPARISON.md.

Choose your engine

Both engines ship in 2.0.0; from 3.0.0-rc.2, mnemosy-ai ships the Local Engine and the Vector Engine moves to mnemosy-ai-legacy. Choose the storage and runtime that fit your application:

Engine Best starting point SDK entry point Guide
Vector Engine An application using the existing service-backed memory architecture. Requires configured external services. createMnemosyne from mnemosy-ai 2.x; from 3.0 in the separate mnemosy-ai-legacy package Working example · Version 2 changes · 3.0 split
Local Engine A self-contained SQLite memory store with evidence, corrections and agent lifecycle tools. createLocalMemory from mnemosy-ai/local Local API · Agent lifecycle

The MemoryAgent adapter uses the Local Engine's runtime. These engines have separate schemas and do not automatically migrate or synchronize data. To transition gradually, explicitly connect your existing store through the read-only migration bridge; it leaves that store unchanged.

Engine choice is separate from version: mnemosy-ai@latest is 2.0.0 and contains both engines; the 1.x line stays installable as mnemosy-ai@1. Upgrading from 1.x is a breaking change: read the migration notes before upgrading an existing Vector Engine application. From 3.0.0-rc.2 (npm next), the Vector Engine has moved out of mnemosy-ai into the mnemosy-ai-legacy package, which is not on npm yet; see the 3.0 migration notes.

Start with a working demonstration

Install the package in your project. Node 24 is recommended; the local memory engine needs no model API key, database server, or Docker.

npm install mnemosy-ai                   # stable 2.0.0; or mnemosy-ai@next for the 3.0.0-rc.4 pre-release
npx --no-install mnemosy demo            # runs the installed package offline; the install itself needs the network
npx --no-install mnemosy learning-demo

Unqualified npm install mnemosy-ai follows the latest channel, which is 2.0.0 from 27 October 2026; pin mnemosy-ai@2.0.0 for reproducible deployments. npm install mnemosy-ai@next installs the 3.0.0-rc.4 pre-release; pin mnemosy-ai@3.0.0-rc.4 to reproduce it. If you are upgrading from the 1.x line, read the migration notes first: version 2 changes vector retrieval scoring, startup indexing and erasure, and does not migrate an existing database. Evaluate on your own workload before production. Python registry publication is separate; the bundled Python client can be installed from the checkout.

To build and run the same release from source (use --branch v3.0.0-rc.4 for the pre-release):

git clone --branch v2.0.0 --depth 1 https://github.com/28naem-del/mnemosyne.git
cd mnemosyne
npm ci --ignore-scripts
npm run build
npm run demo
npm run demo:learning

In 2.0.0, the first demo uses a temporary database to show a handoff, correction, private scope and forgetting. From 3.0.0-rc.2, mnemosy demo is the five-moment demo and the 2.0.0 demo is mnemosy demo --classic. The learning demo exercises capture, a scripted observation job, skill trials, explicit sharing and correction-driven retirement. Both run real local APIs with deterministic fixtures and no model calls. Choose your next example.

For full contributor validation, run npm run check, npm run check:docs and npm run check:public. 2.0.0 is the 2.0.0-rc.10 candidate promoted to stable with no source change (one dependency security patch, zod 4.6.2 → 4.6.7, is noted in the changelog); it carries the Tier 1 retrieval work (hybrid default, cross-encoder reranking, opt-in dense index and temporal routing) over the RC9 packaging. The recorded evaluation reports remain historical measurements of the versions and conditions they name.

To consume your built checkout from another project, run npm install /absolute/path/to/mnemosyne in that project. Keep the checkout and its dist directory available. The older RC8 GitHub release and checksummed downloads remain unchanged.

A correction should change what the next agent does

import { createLocalMemory } from 'mnemosy-ai/local';

const memory = createLocalMemory({
  path: './agent-memory.sqlite',
  workspaceId: 'catalogue',
  agentId: 'designer',
});

const brief = memory.store({
  text: 'Product images must be 1200 by 900 pixels.',
  kind: 'fact',
  key: 'catalogue.image-size',
  source: { uri: 'brief://catalogue/v1' },
  trust: 'observed',
  visibility: 'workspace',
});

const procedure = memory.store({
  text: 'Export catalogue product images at 1200 by 900 pixels.',
  kind: 'procedure',
  source: { uri: 'run://designer/export' },
  trust: 'observed',
  dependencies: [brief.id],
  visibility: 'workspace',
});

memory.correct(brief.id, {
  text: 'Product images must be 1600 by 1200 pixels.',
  source: { uri: 'brief://catalogue/v2' },
  reason: 'The delivery specification changed.',
});

console.log(memory.get(procedure.id)?.status); // invalidated
const context = memory.compile({
  query: 'catalogue product images',
  maxTokens: 2048,
});
console.log(context.text); // Send eligible context to your responder.
// Inspect context.citations and context.uncertainty alongside the text.
memory.close();

The old procedure remains inspectable but is no longer eligible as current guidance. Dependencies are declared by the controller. In 3.0, the dependencies module can also propose undeclared dependencies from successful co-use, and a reviewer accepts or rejects each one. observed means the host recorded the source; it does not certify its truth. The default context counter measures UTF-8 bytes conservatively, not a model's tokenizer. Context contract.

Tune the dense index

Recall works without any of this. These three options exist for stores large enough that the defaults stop being the right trade, and all three are opt-in.

const memory = createLocalMemory({
  path: './agent-memory.sqlite',
  workspaceId: 'catalogue',
  agentId: 'designer',

  indexMode: 'hnsw',            // 'exact' | 'auto' (default) | 'sqlite-vec' | 'hnsw'
  sqliteVecPath: '/opt/lib/vec0.dylib',  // explicit extension path; no env-var equivalent
  cacheSize: -65536,            // PRAGMA cache_size: negative = KiB, positive = pages
});

indexMode, which dense index to search. Defaults to $MNEMOSYNE_INDEX_MODE, else auto.

mode what it does
exact Scores every authorized vector. No optional binaries, no index files, and the answer every other mode is measured against.
auto (default) sqlite-vec when the extension loads, otherwise exact. Still an exact search, vec0 scores the same vectors in C instead of in JS.
sqlite-vec As auto, but throws instead of degrading silently when the extension is unavailable.
hnsw Approximate and sublinear, for stores past a few hundred thousand vectors. The one retrieval component here that can miss a true neighbour, which is why it is never selected on your behalf. Its 50 ms p95 target at 1M records is not met: 139–223 ms measured (see CHANGELOG).

Asking explicitly for sqlite-vec or hnsw and not getting it is an error, not a downgrade: those two modes throw when the backend is unavailable. auto is the only mode that degrades, and it only ever degrades to an exact search, never to an approximate one.

No mode changes what a record scores or whether it may be returned. Every candidate an index proposes is re-authorized and rescored against the stored vector before it reaches you, so the index is a shortlist, never an authority.

sqliteVecPath, an explicit filesystem path to a sqlite-vec loadable extension, overriding the bundled package's own resolution. Only consulted when indexMode is auto or sqlite-vec.

There is deliberately no environment-variable equivalent. An env-controlled path would make every LocalMemory opened on the machine dlopen whatever that variable pointed at, by default and without the caller asking. Loading a native extension is a decision the calling code has to make in the open, so it lives in the constructor and nowhere else.

cacheSize, PRAGMA cache_size, applied on every open, in SQLite's own units: a positive value is a page count, a negative value is a KiB budget. Defaults to -65536 (64 MiB), and a negative value is the recommended form since page size can vary. Must be a nonzero integer: a positive value is at most 524,288 pages, and a negative value is at most 2,097,152 in magnitude (2 GiB either way at the default page size).

A larger page cache buys fewer trips through the OS page cache for the shortlist rescore and the BM25 postings that the hot recall path reads on every query. It matters once the working set stops fitting in the few megabytes SQLite would otherwise settle for on its own, and it is a real memory cost, charged per open connection, so it is set rather than guessed.

Read the rest of the Mnemosyne README on GitHub

Questions about Mnemosyne

What is the Mnemosyne MCP server?

Evidence-tracked local memory MCP server: one SQLite file; corrections retire dependent memories. Mnemosyne is maintained by 28naem-del on GitHub at 28naem-del/mnemosyne, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mnemosyne MCP server?

Add Mnemosyne to your AI app's MCP config with the command npx -y mnemosy-ai@3.0.0-rc.4 mcp. In Claude Code, run claude mcp add --transport stdio mnemosyne -- npx -y mnemosy-ai@3.0.0-rc.4 mcp. To run Mnemosyne this way you need Node.js installed.

Does Mnemosyne need an API key?

The registry lists no required keys for Mnemosyne. Check the Mnemosyne README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mnemosyne an official MCP server?

No. Mnemosyne is a community server maintained by 28naem-del. Community servers can be excellent; read the code and the open issues before you give Mnemosyne access to company data.

What license is Mnemosyne under?

Mnemosyne is released under the MIT license, according to its GitHub repository. The license covers the code of Mnemosyne; the service it connects to has its own terms.