Turbo Quant Memory

Turbo Quant Memory

turbo-quant-memory•bylexus2016

A local-first MCP server that gives AI coding agents a persistent, searchable memory store and knowledge graph, returning compact result cards and keeping notes, code and secrets on your machine.

License: MIT•Runtime: Awaiting documentation review•Category: ai agents-models

WHAT IT DOES

  • •Stores typed notes — decision, lesson, pattern and handoff — with tags, provenance and knowledge-graph links to the files or issues they concern.
  • •Uses tiered memory so durable and reference notes are searched by default while episodic session handoffs stay hidden until requested.
  • •Combines a dense vector lane with a BM25 lane fused by Reciprocal Rank Fusion, matching exact terms such as function names, file paths and IDs.
  • •Provides a directed, timestamped knowledge graph whose linked context appears inline in search results, plus an encrypted AES-256-GCM secrets vault unreachable from search.

BEST FOR

  • •AI coding agents that need to retain decisions and lessons across context compaction instead of re-reading files and re-deriving conclusions.
  • •Teams or developers who want memory and secrets to stay entirely on their own machine.
  • •Running several agents in one git working tree that should share memory and see each other's sessions and recent file changes.

ABOUT TURBO-QUANT-MEMORY

Turbo Quant Memory is cataloged as an MCP server attributed to lexus2016. A local-first MCP server that gives AI coding agents a persistent, searchable memory store and knowledge graph, returning compact result cards and keeping notes, code and secrets on your machine. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Turbo Quant Memory are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does data leave the machine when using Turbo Quant Memory?

No. The server has no HTTP client, telemetry or phone-home, and data lives on your disk; the only first-run network activity is downloading the embedding model from Hugging Face, after which it runs fully offline.

How many MCP tools does the server expose?

It exposes 29 MCP tools grouped into Write, Read, Projects, Graph, Hygiene, Vault and Workspace categories.

Can memory from one project be reused from another folder?

Yes, by binding an existing project ID to an absolute folder path; the binding persists locally and the current MCP connection switches immediately, though the new folder is not indexed unless index_paths is called.

Upstream README

View this exact version on GitHub

README.md · d983ff7b7224 · Fetched 2026-11-13 10:16:12 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Turbo Quant Memory

Local-first memory and knowledge graph for AI coding agents

Your agent stops re-reading files and re-deriving the same conclusions.
Your notes, code and secrets never leave your machine.

PyPI License: MIT MCP Registry Python 3.11+ CI MCP tools Local-first


Demo

30-second demo of Turbo Quant Memory
Watch the 30-second demo

The problem

A long session accumulates hard-won detail about why the code is the way it is. Then the context compacts and it is gone. Next session the agent re-reads the same files, re-derives the same conclusions, and bills you for the same tokens again.

CLAUDE.md does not scale past a few dozen lines, and it cannot answer "what did we decide about X, and why?".

Turbo Quant Memory is an MCP server that gives the agent a persistent, searchable store it writes to while it works — decisions, lessons, patterns, session handoffs — plus a compact index of your Markdown. Retrieval returns ~220-character result cards rather than whole documents; the agent loads full content only when a card is not enough.

Why this one

Turbo Quant Memorymem0 / OpenMemoryMCP memory server
Where your data livesyour disk, alwaysvendor cloud or self-hostyour disk
Your data leaves the hostneveryes, unless self-hostednever
Retrievalhybrid BM25 + dense vector, RRF-fuseddense vectorexact graph lookup
What a search returnscompact cards, hydrate on demandfull memoriesfull nodes
Knowledge graphyes — with lifecycle + lintingnoyes
Non-English contentCyrillic exact-match out of the boxvariesn/a
Measures its own savingsyes — server_info()nono
Pricefree, MITpaid tiersfree

No HTTP client, no telemetry, no phone-home. Verify it yourself — this returns nothing:

grep -rnE '^[[:space:]]*(import|from)[[:space:]]+(requests|httpx|aiohttp|urllib3)\b' src/

To be precise about the one exception: on first run fastembed downloads the embedding model (~0.22 GB) from Hugging Face. After that the server runs fully offline. Your notes, code and secrets are never transmitted anywhere — there is nothing in the package that could send them.

Install

Let your agent install it

Paste this into Claude Code, Codex, Gemini CLI, Cursor or Antigravity:

Install and configure the Turbo Quant Memory MCP server for this workspace from https://github.com/Lexus2016/turbo_quant_memory — follow the README, register the tqmemory server, run turbo-memory-mcp skill install, run the health check, and index this project.

skill install copies an operating manual into every agent skill directory on the machine, so every future session already knows how to use the memory without being told.

Or install it yourself

uv tool install turbo-quant-memory

Upgrading from 0.27.x or earlier? The distribution was renamed in 0.28.0, so uv tool upgrade turbo-memory-mcp no longer resolves — run uv tool install --force turbo-quant-memory once, and uv tool upgrade turbo-quant-memory afterwards. The turbo-memory-mcp command itself is unchanged, so client configs keep working.

Then register the server with your client:

claude mcp add --scope project tqmemory -- turbo-memory-mcp serve   # Claude Code
codex  mcp add tqmemory -- turbo-memory-mcp serve                   # Codex
gemini mcp add tqmemory turbo-memory-mcp serve                      # Gemini CLI

Cursor, OpenCode, Antigravity and other clients → CLIENT_INTEGRATIONS.md. Hermes runs MCP through a systemd gateway → docs/hermes.md.

📈 It measures its own savings — see for yourself

Turbo Quant Memory doesn't just claim to save tokens — every install keeps a running tally you can read anytime with server_info() (field usage_stats.headline). The savings are yours to verify, not ours to promise.

Live snapshot from a real developer instance (v0.28.2):

What the memory didNumber
🔢 Input tokens saved (cumulative)≈ 2,640,000 and counting
🔁 Retrievals served2,280 searches + 280 deep hydrations
📉 Average saved per retrieval≈ 1,200 tokens
📚 Knowledge under management237 active notes + 763 indexed code blocks
🛡️ Integrity0 corrupted records · 0 pending migrations

These are one machine's cumulative numbers, not a synthetic benchmark — your own counter starts at zero and grows as your agent works. Run server_info() on your install to see your real figure.

What it does

  • Typed notes. decision, lesson, pattern, handoff — each stored with tags, provenance and a knowledge-graph link to the file or issue it is about.
  • Tiered memory. durable (decisions, patterns) and reference (indexed docs) are searched by default; episodic (session handoffs) stays out of the way until you ask for it, so yesterday's noise never buries an architectural decision.
  • Hybrid retrieval. A dense vector lane leads; a BM25 lane rescues exact terms — function names, file paths, IDs — fused with Reciprocal Rank Fusion. Cyrillic and other non-English terms match exactly, case- and accent-insensitive, with no configuration.
  • Knowledge graph. Directed, timestamped relations between notes, files and issues. Search results carry the linked context inline, so the agent does not need a second lookup.
  • Human notes outrank agent notes. Anything you explicitly asked to remember is flagged human-explicit and ranks above the agent's own observations at equal relevance.
  • Encrypted secrets vault. Project-scoped, AES-256-GCM, structurally unreachable from search. → docs/secrets-vault.md
  • Runs on a small machine. The default embedder is ONNX via fastembed — no PyTorch, ~0.22 GB model, comfortable on 2 GB of RAM.
  • Several agents, one project — automatically. Agents working in the same git working tree see each other's sessions, announced work and recent file changes; while two or more of them share the tree, changes to text files are recorded so they can be restored. No setup.

Full technical detail → docs/features.md

Several agents in one project

If you run more than one agent in the same working tree, tqmemory connects them automatically. There is nothing to configure.

  • Agents see each other. workspace_status lists the active sessions, what each one announced it is working on (announce_work, finish_work) and which files changed recently. A session that made no tqmemory call for 30 minutes is listed under idle_sessions instead: it is not an active peer and its announced areas are left out of overlaps. Other tqmemory responses carry a short workspace note only when something new has happened, and never for a lone session. health and server_info always include a workspace diagnostics block.
  • Changes are recorded. While two or more sessions share a git working tree, the watcher records new versions of text files it sees change (up to 1 MiB each, skipping anything matched by .gitignore or .tqmemoryignore). Several quick writes in a row can be merged into one version. file_history lists the versions and restore_file brings one back; the restore is itself undoable. The same is available from a terminal: turbo-memory-mcp files log and turbo-memory-mcp files restore.
  • Limits. Versions are recorded only while two or more sessions share a git working tree. The journal never runs outside a git working tree, in your home directory or at a filesystem root. Defaults: 1 MiB per file, a 256 MiB per-project size target and 14 days of retention. Recorded versions stay recoverable for 14 days; past that, or when the project is over its size target, the oldest are removed. The newest version of each file changed in the last 24 hours is never dropped for size. These defaults are set by TQMEMORY_JOURNAL_MAX_FILE_BYTES, TQMEMORY_JOURNAL_MAX_BYTES and TQMEMORY_JOURNAL_RETENTION_DAYS; the size limit is a target, not a hard maximum.

This is partial protection, not a guarantee that every change is saved. It does not block writes: two agents can still overwrite each other's work, and tqmemory can only show it and help you recover. Agents that never call tqmemory see nothing. It works on one computer only. To turn it off, set TQMEMORY_WORKSPACE_DISABLE=1.

Reuse one project's memory from another folder

For a temporary choice without a folder binding, call list_projects() and then select_project(project_id="<id>"). The current MCP connection uses that project's memory immediately. select_project() resets to automatic detection. Selection does not rewrite the project's original root or index local files. An explicit TQMEMORY_PROJECT_ID must not conflict with the selected ID.

list_projects() shows saved project IDs, names, display labels, original roots, and bound folders. The terminal equivalent is turbo-memory-mcp projects. To use an existing project's memory from a new folder, call bind_project(project_id="<id>", path="/absolute/new/folder"). The binding persists locally, and the current MCP connection switches to that folder immediately. server_info() confirms the resolved project. set_project_labels(project_id, labels=[...]) changes display labels; labels never determine identity. unbind_project(path="/absolute/new/folder") removes the exact binding.

Only existing project IDs can be bound. A binding does not index files in the new folder; call index_paths separately when you want that. Bindings are exact folders, so a nested repository is not silently captured. If a folder is replaced or its recorded Git origin changes, access fails until you explicitly rebind it. An explicit TQMEMORY_PROJECT_ID environment override still takes precedence.

Memory calls follow the selected folder; workspace_status, file_history, and restore_file still describe the MCP process's original working tree.

When restoring a storage snapshot on another machine, project notes, global notes, labels, and encrypted secrets move with the storage root. Local folder bindings contain the old machine's absolute paths; use select_project by ID and rebind folders on the new machine when needed. The secrets vault also requires its original passphrase or keyring key.

Automatic index maintenance

The primary storage-owning MCP process checks retrieval indexes immediately after startup and every six hours while it runs. It optimizes tables that have unindexed full-text rows or versions older than seven days. Work runs in the background under each project's in-process write lock; requests for that project may briefly receive a busy response while optimization holds the lock. Independent standalone or CLI writers are not covered by this lock; an optimization conflict is logged and retried on a later pass. Proxy clients and uncoordinated standalone fallback processes do not run maintenance. The source Markdown and canonical JSON notes are not changed. turbo-memory-mcp index-status reports table size, version age, and full-text coverage without modifying data.

LanceDB keeps recent versions for seven days, so optimization can temporarily increase disk use on an active table. Do not delete LanceDB files manually. If an older MCP process still owns the storage, restart its clients so the new process can become the owner and start maintenance.

The first full sync of a legacy table re-embeds its rows once. Later full syncs skip unchanged rows while the embedding model, backend, and backend version remain the same. Changing any of these rebuilds the vectors on the next full sync; scheduled maintenance alone does not re-embed them.

The 29 MCP tools

GroupTools
Writeremember_note · deprecate_note · promote_note · index_paths
Readsemantic_search · hydrate · recent_context · list_scopes · list_projects
Projectsselect_project · set_project_labels · bind_project · unbind_project
Graphlink_entities · unlink_entities · get_related_entities
Hygienelint_knowledge_base · health · self_test · server_info
Vaultset_secret · get_secret · list_secrets · delete_secret
Workspaceannounce_work · finish_work · workspace_status · file_history · restore_file

Documentation

MEMORY_STRATEGY.mdHow to actually use the memory day to day
CLIENT_INTEGRATIONS.mdPer-client setup: Cursor, OpenCode, Antigravity, …
TECHNICAL_SPEC.mdArchitecture and storage format
docs/features.mdRetrieval, graph, tiers, embedder, FTS language
docs/secrets-vault.mdVault setup, threat model, FAQ
docs/hermes.mdHermes gateway setup and troubleshooting
CHANGELOG.mdRelease history

License

MIT. Copy it, modify it, fork it, ship it inside a closed-source product, sell it. Attribution is the only condition.

Languages

🇺🇸 English · 🇺🇦 Українська · 🇷🇺 Русский

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Turbo Quant Memory from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/turbo-quant-memory)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related ai agents-models MCP Servers

Alternative and complementary servers in the same category

View all in ai agents-models →
Knowledge Graph Memory
@modelcontextprotocol/server-memory•Model Context Protocol

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

create_entitiescreate_relationsadd_observations+6 more
92K
AI & Multi-Agent
Sequential Thinking
@modelcontextprotocol/server-sequential-thinking•Model Context Protocol

Organize problem solving into revisable, branching thought steps through an MCP tool.

sequential_thinking
92K
AI & Multi-Agent

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.

146
AI & Multi-Agent