MemoryHub
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., "@MemoryHub What did we decide about the API authentication approach?"
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.
MemoryHub
MemoryHub is an experimental local long-term memory service for AI assistants. It uses SQLite and FTS5 and exposes memory tools through a lightweight MCP server over standard input and output. Assistants can retrieve earlier notes, decisions and project context without placing the whole database in every conversation.
Instrukcja po polsku | Manual installation | AI-assisted setup | Architecture and limitations
This is an experimental release prepared from a system used in daily work. It has not been independently reviewed or installed end-to-end on a separate clean machine. The code and tools currently use Polish descriptions; support for other languages and clients is not guaranteed.
How it works
A single SQLite database can be used for one assistant, or a local shared database can be combined with a separate private database for each agent ID.
mem_search_indexreturns a compact index;mem_get_detailsretrieves selected records.mem_listlists metadata for an audit; its offset pagination is not a frozen snapshot.mem_save,mem_deprecateandmem_purgechange entries. When the same ID exists in both databases, destructive operations without an explicit scope fail rather than selecting one silently.FTS5 is supplemented with simple Polish stemming heuristics. It is not a language model, and missing a search result does not prove that a record is absent.
The default MCP stdio mode uses Python's standard library. FastMCP is an optional separate mode and has not been checked as part of this package.
Related MCP server: io.github.cdnsteve/sugar
Boundaries
The private/shared split is application-level routing, not OS-level security. Another process running under the same account may access the files. The viewer reads every database it discovers in the chosen directory and writes an HTML snapshot containing their contents to a temporary file; use it only in an appropriate local environment. The service does not automatically sync databases between machines or set up backups.
P04-style checks are heuristics, not a guarantee against storing credentials, data leakage or malicious instructions. Memory entries are untrusted context. Verify important facts against their sources. SQLite databases using WAL should be kept on a suitable local filesystem; use consistent snapshots for backups rather than treating a live file copy as a backup.
Quick start
You need Python 3.10 or later with SQLite FTS5 enabled. Download or clone the repository and follow the step-by-step guide, including a synthetic test and setup for your MCP client. Example for two different agent identities on one machine:
python mcp_server.py --memory-dir <local-directory> --agent alpha
python mcp_server.py --memory-dir <local-directory> --agent betaThese are separate stdio servers for clients to launch, not commands to run interactively in one terminal. Each uses shared_memory.db and <agent>_memory.db in that directory. With --db-path <path> the server uses a single database. With neither option it uses an ephemeral in-memory database.
To ask an AI agent for help, use the setup interview. It asks about your clients, storage, backups, existing data and optional instructions before changing configuration.
Project status
The synthetic tests exercise the engine, MCP stdio, scopes and conflicting IDs. Source and design were developed with reference to the open-source claude-mem project; the documented provenance review and preserved upstream notices are described in NOTICE. No external hosting, HACS integration or automatic installation is provided.
The repository is distributed under the MIT license; third-party notices and the Apache-2.0 reference are retained in NOTICE.
Available Tools
6 toolsmem_deprecateA
Oznacza wpis jako zastąpiony/historyczny bez fizycznego usuwania i bez fałszowania daty weryfikacji. Jeśli ten sam item_id istnieje w bazie shared i private, bez jawnego parametru scope operacja kończy się błędem niejednoznaczności.
Inputs: item_id (required), scope, superseded_by.
mem_get_detailsA
Etap 2 Smart Search: pobiera pełną treść dla wskazanych identyfikatorów. W trybie scope='all' (domyślnym) zwraca wszystkie dopasowane rekordy z obu baz (w tym oba rekordy przy kolizji ID między shared i private, oznaczone zakresem).
Inputs: item_ids (required), scope, as_evidence_block.
mem_listA
Zwraca stronicowany spis lekkich metadanych wpisów (bez pola content) z filtrami projektu, statusu i zasięgu (tylko baza wspólna oraz własna prywatna bieżącego agenta), w stabilnym porządku (scope ASC, id ASC), wraz z licznikami i raportem duplicate_ids przy kolizji ID. OGRANICZENIE: paginacja offset/limit przedstawia bieżący stan i nie gwarantuje zamrożonej migawki, jeśli baza zmienia się między wywołaniami stron.
Inputs: limit, scope, offset, status, +1 more.
mem_purgeA
Usuwa wpis z tabeli SQLite (secure_delete włączone) oraz indeksu FTS5. Nie gwarantuje wyczyszczenia struktur cieni FTS, nieskonsolidowanego WAL ani zewnętrznych kopii/migawek. Jeśli ten sam item_id istnieje w bazie shared i private, bez jawnego parametru scope operacja kończy się błędem niejednoznaczności.
Inputs: item_id (required), scope.
mem_saveB
Zapisuje nowy wpis do pamięci długoterminowej z heurystyczną walidacją P04 pól i tagów (druga linia obrony; nie zastępuje wykluczenia źródeł).
Inputs: tags (required), title (required), content (required), project (required), +7 more.
mem_search_indexB
Etap 1 Smart Search (Progressive Disclosure): przeszukuje bazę pamięci i zwraca lekki indeks pasujących wpisów z filtrem fleksyjnym dla języka polskiego.
Inputs: query (required), limit, scope, project.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct role: listing metadata, two-stage progressive search, save, soft-deprecate, and hard purge. The only soft overlap is mem_list vs mem_search_index, both returning lightweight entry indexes, but filters vs. inflection-aware matching distinguish them adequately.
All tools share a consistent mem_ snake_case prefix with verb-style suffixes (mem_save, mem_list, mem_purge, mem_deprecate). Minor deviation: two tools use verb_noun (mem_search_index, mem_get_details) while others are verb-only, but the convention remains readable and predictable.
Six tools is a tight, well-scoped set covering the memory lifecycle plus a deliberate two-phase search design. No tool appears redundant or padded.
Coverage spans create (mem_save), read (mem_list, mem_search_index, mem_get_details), soft-update (mem_deprecate), and delete (mem_purge). The notable gap is an explicit in-place content update/edit, forcing agents to deprecate-and-recreate; otherwise the surface is coherent.
Maintenance
Related MCP Connectors
Cross-tool persistent memory and context for AI assistants over MCP.
Persistent personal memory for AI assistants — save, search, and recall across every MCP client.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Persistent, verbatim, searchable memory for AI assistants — one memory across every MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to persistently save, search, retrieve, update, link, and forget project-scoped memories through MCP tools, using local SQLite FTS5 keyword search without cloud access or telemetry.11 npm14MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to read and write persistent, local-first memory over MCP, storing decisions, preferences, error patterns, research, and cross-project guidelines in SQLite with semantic search. Agents can recall relevant context before tasks and store new learnings mid-session, keeping knowledge across sessions and projects without any external API calls.-

cairnofficial
AlicenseAqualityCmaintenanceEnables AI assistants to read and write a local-first SQLite memory vault from inside a chat — orienting on inherited context, searching and fetching past decisions and notes, wandering linked memories, and recording new ones on demand. All data stays on the user's machine, shared across local and cloud tools via MCP.85Business Source 1.1- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to persist, version, retrieve, and consolidate episodic, semantic, and procedural knowledge in SQLite with hybrid search, then expose that long-term memory to MCP clients such as Claude Desktop or VS Code.MIT