TOMC Memory

Memory and knowledge

CPU task-specific context preparation and explicitly saved local project notes through MCP.

Your AI app calls the TOMC Memory MCP server, which does the memory and knowledge work and sends the result back to the chat.

About TOMC Memory

TOMC Memory is a community MCP server from ZipengWu365, filed in our directory under memory and knowledge. CPU task-specific context preparation and explicitly saved local project notes through MCP.

TOMC Memory is listed in the official MCP registry as io.github.ZipengWu365/tomc-memory, version 0.1.1.

At a glance

Publisher
ZipengWu365 (community)
Runs
See the README for setup
Install from
MCP bundle: https://github.com/ZipengWu365/TOMC/releases/download/v0.1.1-assistant-preview.1/tomc-memory-0.1.1.mcpb
Written in
Python
License
MIT
GitHub stars
264
Official MCP registry
io.github.ZipengWu365/tomc-memory

How to set up TOMC Memory

  1. Follow the install steps in the TOMC Memory README; it is written in Python, so have that toolchain ready.
  2. Check the TOMC Memory README for keys or settings; the registry lists none that TOMC Memory requires.
  3. Add TOMC Memory to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the TOMC Memory tools to confirm the connection.
  5. Run one read-only task with TOMC Memory first, and keep your app asking before each tool call until the results look right.

TOMC Memory compared with similar servers

  • Flights by ravinahp has fewer GitHub stars than TOMC Memory (262 against 264); both are community servers, and both run locally.
  • ClickHouse Loom by ClickHouse has fewer GitHub stars than TOMC Memory (264 against 264); ClickHouse Loom is official while TOMC Memory is a community server, and both run locally.
  • Codebase Memory MCP Pro by win4r has fewer GitHub stars than TOMC Memory (260 against 264); both are community servers, and both run locally.

Before you connect TOMC Memory

  • Give TOMC Memory its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each TOMC Memory tool call until you trust what it does with them.
  • Treat text that TOMC Memory fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for TOMC Memory on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for TOMC Memory

How marketing and sales teams put TOMC Memory to work, by company size. Pick the size closest to yours and start TOMC Memory on one use case.

Small business

  • A small business can give TOMC Memory its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • Founders can use TOMC Memory to keep notes from calls and decisions, then ask what was agreed with a customer weeks later.
  • TOMC Memory runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can connect TOMC Memory to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Sales and marketing can share one knowledge base through TOMC Memory, so answers about pricing and features match across teams.
  • Start TOMC Memory on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use TOMC Memory with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Large orgs can make TOMC Memory the approved memory layer for agents, with retention rules and a way to delete what shouldn't be kept.
  • TOMC Memory is a community server, so have security review the code and pin a version before TOMC Memory touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

TOMC Memory README

From ZipengWu365/TOMC on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

TOMC Memory

English | 简体中文 · v0.3.1 research preview · MIT · Python 3.10+

I got tired of re-explaining my project to every new AI chat, and then getting the old version of a decision back.

When a fact changes, only the latest version comes back.

Say your project chat moved from Flask to Django, then FastAPI, then Litestar. TOMC Memory hands your assistant framework = Litestar, plus the line it came from.

After installing, say to your assistant: "Try TOMC Memory". In a terminal: tomc try.

  • Latest value, offline check (v0.3.0): 144 questions per budget, each about a fact that changed 3 to 5 times. At the default budget the prepared context held the latest value every time (v0.2.1: 58%). At a 10% budget: 85% (v0.2.1: 51%). Synthetic notes and chats, no model call. We wrote these questions alongside the fixes, so treat them as our regression test, not an independent evaluation.
  • Smaller requests in Codex (0.1.0 preview, not re-run since): 9 synthetic project chats of about 10K to 40K tokens, 5 questions each, gpt-6.1-sol. Keeping 40% of the history cut request input by 29.7% on average, and all 45 answers stayed right. One run per condition.
  • BEAM long-history benchmark (paper experiments): same reader model on both sides, 3 readers, 6 other memory methods. TOMC had the higher mean score in 54 of 54 comparisons at 500K to 10M tokens, and 17 of 18 at 100K. Mean scores only; not comparable with other projects' BEAM numbers.

Every number, with its conditions and failures · Before you use it · Install

Before you use it

  1. It does not shrink the chat your assistant is already having. Claude Code and Codex manage their own chat. TOMC Memory works on history you hand it and notes you saved. Context ownership
  2. Short histories gain little. Under about 10K tokens there is not much to cut. With the default budget, our earlier tests saved roughly 10–20% of input (Codex 9.2%, Claude API-style 19.8%; 0.1.0 previews). Smaller budgets save more but can drop the latest value. Check them on your own tasks first. The default keeps 80% of a history up to 10K tokens, sliding to 60% at 1M, and never less than 1,024 tokens.
  3. It matches words, not meaning. A reworded update such as "scratch that, go with Django" can be missed, mostly at small budgets. When a later line may have changed a value, the value is marked STATE? and that line is attached so you or your assistant can check it.
  4. What gets stored, and how to erase it. Results of prepare_context and recall_memory are not saved unless you turn it on (tomc settings --save-mcp-results on). Notes you save with remember_memory stay on your computer in ~/.tomc/memory.sqlite3. Delete one notebook with forget_memory, or everything with tomc erase-all --yes. Security and privacy
  5. Not every client is checked. Codex and Claude Code passed real model calls with earlier previews. For Cursor, TRAE and WorkBuddy the setup is written, but their tool calls have not been checked on real machines. Claude Desktop installation has not been checked in the app.
  6. The paper is not public yet. The benchmark numbers come from our own runs and setup. The evidence page lists sources, sample sizes and what can be rechecked offline (make reproduce).

Install

Each path ends the same way: say "Try TOMC Memory" in a new chat, and run tomc doctor if something looks wrong. The Claude Code and Codex plugins need uv. Running from source needs Python 3.10 or newer (python3 --version; the macOS system Python 3.9 is too old).

Claude Code
/plugin marketplace add ZipengWu365/TOMC
/plugin install tomc-memory@tomc

Start a new session, check /mcp for plugin:tomc-memory:tomc, then say "Try TOMC Memory" or run /tomc-memory:try. More Claude Code notes

Codex

Download tomc-memory-codex-0.3.1.zip, unzip it into a folder you will keep, and run there:

uv run --no-project --python 3.12 install.py --check
uv run --no-project --python 3.12 install.py

The installer starts the server once to check it. Open a new Codex session and say "Try TOMC Memory". Full Codex steps

Any MCP client (Cursor, Claude Desktop, WorkBuddy, TRAE …)
git clone https://github.com/ZipengWu365/TOMC.git && cd TOMC
python3 -m venv .venv && .venv/bin/python -m pip install -e '.[mcp]'
.venv/bin/tomc setup --client cursor --write   # or claude-desktop, claude-code, codex, workbuddy
.venv/bin/tomc doctor

--write backs up the client's config file first and keeps your other servers. For TRAE or a project file, add --config path/to/mcp.json. Restart the client and say "Try TOMC Memory". On Windows use py -3.12 -m venv .venv and .venv\Scripts\. Per-client guides

Python API
from tomc import prepare_context  # pip install -e . from a clone; no dependencies

prepared = prepare_context(history, task)
response = client.chat.completions.create(model=model, messages=prepared.messages)

Send prepared.messages in place of the old history; appending it adds input. .venv/bin/tomc try shows a worked example offline. API guide

Mainland China network

If GitHub or PyPI downloads stall, use a mirror for pip and uv:

python3 -m pip install --user uv -i https://pypi.tuna.tsinghua.edu.cn/simple
export UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple
export UV_PYTHON_INSTALL_MIRROR=https://registry.npmmirror.com/-/binary/python-build-standalone
python3 -m uv run --no-project --python 3.12 install.py   # Codex installer, run in the unzipped folder

For a source install, add -i https://pypi.tuna.tsinghua.edu.cn/simple to the pip install line. In PowerShell, set the variables with $env:UV_DEFAULT_INDEX="…".

Go deeper

Community, citation and license

Try, compare, contribute: First-run reports · Context-compression evaluation note · Contribution guide

Follow Zipeng Wu for work across time-series research software and AI task memory. Star this repository to save TOMC; use Watch settings for project notifications. Following or starring is optional and is never required for help.

Cumulative clones · recorded since 2026-10-02 · updated 2026-12-02 UTC. Method and updates

MIT License: free to use, change and ship, including commercially; keep the copyright and license notice. If TOMC Memory helps your research, please cite it with CITATION.cff (GitHub's "Cite this repository" button). Examples are synthetic; the repository holds numeric benchmark aggregates only, without question text, answers or API payloads. Data provenance · Data and licensing

Questions about TOMC Memory

What is the TOMC Memory MCP server?

CPU task-specific context preparation and explicitly saved local project notes through MCP. TOMC Memory is maintained by ZipengWu365 on GitHub at ZipengWu365/TOMC, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the TOMC Memory MCP server?

TOMC Memory doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ZipengWu365/TOMC). Like most servers, TOMC Memory ends with a command or URL you paste into your AI app's MCP config.

Does TOMC Memory need an API key?

The registry lists no required keys for TOMC Memory. Check the TOMC Memory README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is TOMC Memory an official MCP server?

No. TOMC Memory is a community server maintained by ZipengWu365. Community servers can be excellent; read the code and the open issues before you give TOMC Memory access to company data.

What license is TOMC Memory under?

TOMC Memory is released under the MIT license, according to its GitHub repository. The license covers the code of TOMC Memory; the service it connects to has its own terms.