SuperAPIAI Directory

mnemosyne

github.com · Other AI tools

Mnemosyne is a local-first long-term memory system for AI agents that stores what an agent has learned, together with the evidence sources for it, in a single SQLite file, and exposes it to any host via a TypeScript SDK, MCP, CLI, or HTTP. It emphasizes auditability: every memory retains its source and trust tier, and when a source is corrected, memories that depend on that source are retired, preventing later agents from repeating outdated experience. The local engine requires no model API key, database server, or Docker. It supports MCP clients such as Claude Code, Cursor, and Codex, and provides the npm package mnemosy-ai, with stable version 2.0.0 and prerelease version 3.0.0-rc.4.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

Mnemosyne is a local-first long-term memory system for AI agents. Its core is to store what an agent has learned together with the evidence sources in a single SQLite file, and expose it to any host via a TypeScript SDK, MCP, CLI, or HTTP. Its goal is to let the next agent start from what the currently recorded evidence still supports, rather than repeating outdated experience.

Main capabilities:

  • Every memory retains its source and trust tier, and superseded versions remain inspectable after correction.
  • Corrections propagate to dependents: a corrected requirement retires the processes and skills recorded as depending on it; version 3.0 can also infer undeclared dependencies and propose them for review.
  • Auditable: past beliefs can be replayed exactly; bisect can identify the record that pushed a correct result out of the returned set; in the 3.0 prerelease, consolidation is outcome-gated and reversible.
  • Multi-host access: MCP for Claude Code, Cursor, and Codex; a TypeScript SDK, a CLI, and authenticated HTTP (including a Python client and a live inspector).

Usage:

  • Install: npm install mnemosy-ai (stable version 2.0.0) or npm install mnemosy-ai@next (prerelease version 3.0.0-rc.4).
  • Run the demo: npx --no-install mnemosy demo runs an offline demo of the installed version, with no API key, server, or Docker required.
  • Connect an MCP client: mnemosy mcp requires the --db, --workspace, and --agent parameters; the database file is created on first use with permissions 0600 and a parent directory of 0700, and it is recommended to add .mnemosyne/ to .gitignore.
  • Claude Code can be installed via the plugin marketplace, or the server can be registered via .mcp.json or claude mcp add.
  • Configuration methods for Cursor and Codex are provided in the documentation, but some have not been tested by actual execution.

Use cases: development scenarios that need to provide auditable, traceable long-term memory for AI agents and want corrections to propagate to dependents; suitable for developers using MCP clients such as Claude Code, Cursor, and Codex.

Limitations:

  • Requires Node.js ≥ 22.16 and npx.
  • 3.0 is a breaking version; the old vector engine has moved to mnemosy-ai-legacy (not yet published on npm).
  • Integrations for some hosts (such as Cursor and Codex) have only been configuration-tested or documented, and have not been run in real sessions.
  • The demo and benchmarks are based on synthetic corpora, and some performance data cannot be reproduced from the repository.
  • It is a different project from mnemosyne-oss/mnemosyne (a Python library); they share only the name.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools