Mnemosyne
Lets your AI agent keep long-term memory in one local SQLite file, with the evidence behind each memory.
157 stars on GitHubby 28naem-delLicense MITUpdated 20 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add mnemosyne -- npx -y mnemosy-ai mcp --db "<db>" --workspace "<workspace>" --agent "<agent>"
What to fill in
| Name | What it is | Required |
|---|---|---|
MNEMOSYNE_INDEX_MODE | Dense index used for semantic recall; defaults to auto | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Remember that the build needs Node 22 and note where that came from.
What did you know about our deploy process last Tuesday?
What it is
Mnemosyne stores what an agent learned together with its source and trust level, all in one local SQLite file. When a source is corrected, the memories that depended on it are retired, so the next agent does not repeat an outdated lesson. It works over MCP, a command line, a TypeScript library or HTTP.
What it can do
- Save memories with their source and trust tier
- Recall relevant memories for a task
- Correct a source and retire dependent memories
- Replay what the agent believed at a past time
bisect: find the records that pushed expected results out of a retrievalmnemosy demo: run an offline demo of the main features
When to use
- βΊWhen you want your coding agent to remember lessons between sessions
- βΊWhen you need to see where a stored memory came from
- βΊWhen a fact changes and you want the old lessons that relied on it removed
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
rememberHelps your agent save an insight, decision, or fact to long-term memory with search tags, so it can find it in later sessions.jev-memoryHelps your Claude Code sessions remember your lasting preferences, by having a classifier save durable preferences after each answer.hindsight-localLets your agent save and recall long-term memories on your own machine through the hindsight-embed tool, after a one-time setup.Frequently asked questions
Is it free and open source?
Yes. The readme lists an MIT license.
Does it need an API key or the cloud?
No. The local engine needs no model API key, database server or Docker.
Which version should I install?
The stable release is 2.0.0. A newer 3.0.0 release candidate is available with the next tag.
Which clients does it work with?
It has MCP setup for Claude Code, Cursor and Codex, plus a TypeScript SDK, a CLI and authenticated HTTP.
Where is the data stored?
In one SQLite file on your machine, for example the path you give with --db.
Is it the same as the Python mnemosyne-memory project?
No. The readme says they share a name only and are separate projects.
If it does not work
- βΊCheck that Node.js 22.16 or newer is installed with node --version.
- βΊRestart your AI app fully after running claude mcp add so it picks up the server.
- βΊPass a writable path to --db so the SQLite file can be created.
5 new skills a week. 1 minute to read.