mcp-memory
Enables an optional fact-checking tool that uses an OpenAI-compatible model to judge whether memory entries contradict each other, supersede one another, or are independent.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-memoryremember that the release process requires a sign-off from QA"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-memory
A persistent memory for AI assistants that is just a SQLite file.
No vector store, no embeddings, no external service, no API key. Python,
SQLite with FTS5, stdio — the only dependency is the official mcp SDK.
Nothing leaves your machine unless you explicitly turn on the optional
fact check.
Built for German-language notes: the search understands inflection ("Rangliste" finds "Ranglisten") and compound words ("Katalysator" finds "Fusionskatalysator").
Why
An assistant's memory usually fails in one of two ways: it is a pile of markdown files that has to be read whole to be searched, or it is a vector database that answers that something matched but never why.
This one is a ranked full-text index over short entries, with two things bolted on that turn a note pile into a memory: entries are filed on two axes — where it belongs (project) and what kind of knowledge it is (pitfall, decision, measurement, …) — and when you write something down, the tool tells you which existing entries it overlaps with, so contradictions surface instead of quietly piling up.
Related MCP server: MCPMem
Features
Ranked search with German morphology — inflection and compound splitting, no dictionary file needed; the dataset itself is the dictionary.
Two filing axes — a free-text project tag and a closed, enforced vocabulary of knowledge kinds. Chronicle entries are hidden from search by default, but the header always says how many were held back.
Preview instead of full text — a hit costs about 1.2 KB, not 4.2 KB. The worst case is capped and therefore calculable.
Duplicate and contradiction hints —
rememberreports similar existing entries and which numbers changed, so you can supersede instead of accumulate.Nothing is ever deleted — superseded entries drop out of the default view and stay findable, with a note on why and by what.
Browsing, not just searching —
themen()lists projects and title lines for when you have forgotten the words to search for.Opt-in second opinion — optionally ask any OpenAI-compatible model whether two entries contradict each other or just supersede one another.
Requirements
Python 3.11+
The
mcpSDK (requirements.txt, that's the whole list)SQLite with FTS5 — included in standard CPython builds
Optional, for the fact check only: any OpenAI-compatible endpoint
Setup
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
claude mcp add memory -s user -- \
/path/to/mcp-memory/.venv/bin/python \
/path/to/mcp-memory/memory_server.py-s user makes the server available in all projects; the entry ends up in
~/.claude.json. Restart Claude Code afterward — MCP servers are only
loaded at startup. The tools are then called mcp__memory__recall and
mcp__memory__remember.
For Claude Desktop, use ~/.config/Claude/claude_desktop_config.json
instead:
{
"mcpServers": {
"memory": {
"command": "/path/to/mcp-memory/.venv/bin/python",
"args": ["/path/to/mcp-memory/memory_server.py"]
}
}
}The database is created on first use as memory.db next to the script.
One rule matters more than any setting: one fact per call, not one
document. recall returns whole entries — store a 180 KB file as a
single entry and you get it back as a single hit, having gained nothing.
The Eight Tools
| store an entry; reports similar existing ones and what it would supersede |
| ranked full-text search, preview by default |
| full text of specific entries |
| browse: which projects exist, or one project's title lines |
| mark as outdated — never deletes |
| assign the knowledge kind of existing entries |
| find groups of entries that say much the same thing |
| opt-in: have a language model judge contradiction vs. newer state |
Full reference with parameters and behavior: docs/TOOLS.md.
Some Numbers
Measured on one real dataset of ~1,300 entries — evidence from one installation, not a benchmark:
3.9× cheaper than reading markdown files for the same three real questions (5,846 vs. 22,978 tokens). The gap grows with file size, because reading a file is all-or-nothing: one question against a 188 KB project file costs 94,152 tokens.
82.3 % Recall@10 against the public LoCoMo dataset, untuned, first run, at 2 ms and 2.7 KB per query.
73 % smaller returns from the preview, with a calculable worst case.
64 % → 77 % hit rate from a one-line ranking fix — found by measuring where real search sessions had failed, not by guessing.
Where a measurement did not survive a larger sample, it says so:
docs/MEASUREMENTS.md, and the raw reports in
messung/.
Documentation
all eight tools in detail | |
the two axes, the morphology, the database schema, and what was left out on purpose | |
what was measured, and the known limitations | |
the opt-in fact check: setup, what it can and cannot do | |
importing an existing folder of notes, and the damage that did | |
the four underlying measurement reports (German) |
A Note on Language
This documentation is in English, the tool is not. Every string the server
prints or returns stays German: status messages, the kind vocabulary
(schnittstelle, fallstrick, entscheidung, messwert, arbeitsweise,
verlauf, gemischt) and the fact-check verdicts
(WIDERSPRUCH/contradiction, FORTSCHRITT/progress,
UNABHAENGIG/independent, uneinig/disputed).
That is not an oversight. Those words are a fixed vocabulary that several scripts compare against by exact string, and the fact-check prompt is calibrated word for word — adding one sentence to it once halved the accuracy. Example blocks in these docs therefore show real, unmodified output, glossed in English where it first appears.
Files
| MCP server, eight tools, search cascade, schema, migrations |
| stemmer and compound splitter |
| recomputes |
| opt-in second opinion via any OpenAI-compatible model (off unless configured) |
| measures the fact check against gold labels from the dataset |
| the hand-built and hand-found contradiction pairs |
| import a file-based memory (one-off; see docs/IMPORT.md) |
| regression net, one case per pitfall (no pytest) |
| just |
| the database — created on first use, never committed |
messung/ keeps the four measurement reports. The scripts that
produced them and their raw data are not included: they only run against
the author's own dataset, and the raw data is a verbatim transcript of
real working sessions.
License
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory for AI agents. Search and store durable facts, preferences and decisions.
Persistent memory for AI agents. Search, store, and recall across sessions.
Persistent memory for AI agents. Semantic search, memory graph, W3C DID identity.
Personal wiki and memory layer for AI assistants. Persistent, structured memory across sessions.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to store and retrieve memories with semantic search capabilities using vector embeddings. Provides persistent memory storage with SQLite backend for context retention across conversations.55 npm1MIT
- AlicenseAqualityBmaintenanceProvides persistent cross-session memory and full-text search for AI coding assistants, storing project context, decisions, and preferences while enabling searchable access to conversation history via local SQLite.81MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to have persistent, self-hosted memory across sessions and devices, storing context in a SQLite database you control.MIT