turbo_quant_memory
Local-first MCP memory server for AI coding agents with compact retrieval and project/global scopes.
Install / Use
claude mcp add Lexus2016 -- npx -y github:Lexus2016/turbo_quant_memoryIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of turbo_quant_memory
turbo_quant_memory scores 80/100 on our quality scale, 754th of 937 AI & Machine Learning skills we index.
Its MCP Server is 12 KB long, well organised into 13 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 9 days ago, so turbo_quant_memory is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
turbo_quant_memory compared with similar skills
All 4 of these similar skills score higher than turbo_quant_memory; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| turbo_quant_memory (this skill)by Lexus2016 | 80 | 10 | 9d ago | MCP Server |
| claude-memby thedotmack | 100 | 110.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 108.0k | 1d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.9k | 7d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install turbo_quant_memory?
- Run
claude mcp add Lexus2016 -- npx -y github:Lexus2016/turbo_quant_memory. The install tabs above show the steps for each supported agent. - Which AI agents does turbo_quant_memory work with?
- It is written for Claude Code, Claude Desktop, Cursor and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is turbo_quant_memory safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is turbo_quant_memory still maintained?
- The repository was last updated 9 days ago, so turbo_quant_memory is actively maintained.
Skill content
View source on GitHubDemo
<!-- Absolute on purpose, same as the hero: this file is the PyPI long_description. PyPI's camo proxy cannot resolve a repo-relative image, and a relative link would not open the mp4 on GitHub. README.uk.md / README.ru.md stay relative. --> <p align="center"> <a href="https://github.com/Lexus2016/turbo_quant_memory/blob/main/assets/turbo-quant-memory-promo.mp4"> <img src="https://raw.githubusercontent.com/Lexus2016/turbo_quant_memory/main/assets/turbo-quant-memory-poster.jpg" alt="30-second demo of Turbo Quant Memory" width="300"> </a> <br> <a href="https://github.com/Lexus2016/turbo_quant_memory/blob/main/assets/turbo-quant-memory-promo.mp4">Watch the 30-second demo</a> </p>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 Memory | mem0 / OpenMemory | MCP memory server |
| :----------------------- | :------------------------------------ | :----------------------- | :------------------ |
| Where your data lives | your disk, always | vendor cloud or self-host | your disk |
| Your data leaves the host | never | yes, unless self-hosted | never |
| Retrieval | hybrid BM25 + dense vector, RRF-fused | dense vector | exact graph lookup |
| What a search returns | compact cards, hydrate on demand | full memories | full nodes |
| Knowledge graph | yes — with lifecycle + linting | no | yes |
| Non-English content | Cyrillic exact-match out of the box | varies | n/a |
| Measures its own savings | yes — server_info() | no | no |
| Price | free, MIT | paid tiers | free |
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
tqmemoryserver, runturbo-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.
<!-- TQ-STATS:BEGIN (auto-generated by scripts/refresh_readme_stats.py — do not edit by hand) -->📈 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 did | Number | | :--- | :--- | | 🔢 Input tokens saved (cumulative) | ≈ 2,640,000 and counting | | 🔁 Retrievals served | 2,280 searches + 280 deep hydrations | | 📉 Average saved per retrieval | ≈ 1,200 tokens | | 📚 Knowledge under management | 237 active notes + 763 indexed code blocks | | 🛡️ Integrity | 0 corrupted records · 0 pending migrations |
<!-- TQ-STATS:END -->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) andreference(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-explicitand 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_statuslists 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 underidle_sessionsinstead: it is not an active peer and its announced areas are left out ofoverlaps. Other tqmemory responses carry a shortworkspacenote only when something new has happened, and never for a lone session.healthandserver_infoalways 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
.gitignoreor.tqmemoryignore). Several quick writes in a row can be merged into one version.file_historylists the versions andrestore_filebrings one back; the restore is itself undoable. The same is available from a terminal:turbo-memory-mcp files logandturbo-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_BYTESandTQMEMORY_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.
The 24 MCP tools
| Group | Tools |
| :--- | :--- |
| Write | remember_note · deprecate_note · promote_note · index_paths |
| Read | semantic_search · hydrate · recent_context · list_scopes |
| Graph | link_entities · unlink_entities · get_related_entities |
| Hygiene | lint_knowledge_base · health · self_test · server_info |
| Vault | set_secret · get_secret · list_secrets · delete_secret |
| Workspace | announce_work · finish_work · workspace_status · file_history · restore_file |
Documentation
| | | | :--- | :--- | | MEMORY_STRATEGY.md | How to actually use the memory day to day | | CLIENT_INTEGRATIONS.md | Per-client setup: Cursor, OpenCode, Antigravity, … | | TECHNICAL_SPEC.md | Architecture and storage format | | [docs/featur
Truncated for display — read the full file on GitHub.
Related Skills
claude-mem
110.6kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
108.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
89.9kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
