# Toon Memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/LuiggiVal08/toon-memory  
**GitHub Stars:** 12  
**npm Downloads (last month):** 637  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/toon-memory

## Description
Offline persistent memory for AI coding agents — 37 tools, 80% fewer calls, no LLM

## Tools
Capabilities this server exposes over MCP:

- **memory_remember** — Save a fact to the project's persistent memory (decisions, patterns, bugs, knowledge). Persists between sessions. Tags: 'private' excludes from context injection; 'superseded' marks as obsolete.
- **memory_recall** — Search the project's persistent memory. Returns relevant entries. Use BEFORE reading files. Pattern: recall → context_diff for recent changes → capture to save observations.
- **memory_forget** — Lifecycle operations for a memory entry: soft (default) marks it obsolete and hides it from recalls, hard permanently removes it, restore brings it back to active, supersede retires it with a typed superseded_by edge to a newer entry.
- **memory_smart_recall** — Unified retrieval: combines BM25 + graph + decay + quality in a single call. Use at the START of each task to get all relevant memory context. Then use context_diff for recent changes, context_focus for deep dives.
- **memory_summary** — Save or retrieve a summary of a large file to save tokens.
- **memory_captured** — Show activity log captured automatically by hooks (only if capture is enabled). Useful for promoting observations to memory with memory_remember.
- **context_brief** — Generate a compact context briefing: relevant memory + active sessions + project health. Single call instead of 5-6 separate calls. Zero LLM, pure deterministic logic.
- **context_compile** — Compile a task into a tiny context packet: directives, constraints, relevant memory, decisions, retrieval queries, hydrate keys, files and sessions. Deterministic, zero LLM, feedback-aware. Prefer this over context_brief when a task is known.
- **context_hydrate** — Expand hydrate keys emitted by context_compile into full memory entries. Layer 2 of progressive disclosure.
- **memory_checkpoint** — Save or update a session checkpoint with 7-day TTL. Creates a knowledge entry snapshot of the current session state. Same session = upsert (single checkpoint per session). Auto-expires.
- **memory_feedback** — Tell toon-memory whether a recalled entry was useful, irrelevant, outdated or wrong. Explicit feedback adjusts learned utility; 'wrong' also flags evidence as conflict. Use this after acting on a recalled memory.
- **memory_search** — Search memory with combined filters: text query, category, tags, and date range. Returns ranked results.
- **memory_promote** — Heuristic auto-promote from the capture log (no LLM). Each observation gets a deterministic confidence score; high-confidence ones promote as active entries, low-confidence (≤ minConfidence) become reviewable drafts. Opt-in: run with dryRun: true first.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "toon-memory": {
    "command": "npx",
    "args": ["-y","toon-memory","mcp"]
  }
}
```

## Documentation

## What Toon Memory does

Toon Memory gives AI coding agents persistent, project-scoped memory over MCP. It stores decisions, patterns, bug fixes, warnings, architecture notes, and other knowledge so later sessions can retrieve them instead of rebuilding the same context. Each project has its own memory file, and the server can also exchange selected entries through GitHub Gists or a shared global memory file.

The memory model includes tags, confidence, origin, quality, status, expiration, and optional file-path scope. Saving an existing key merges attributes rather than blindly replacing the entry, while related entries can be connected into a knowledge graph. Warnings are treated as a distinct kind of negative guidance and receive a recall boost.

## How it works

Use `memory_smart_recall` at the start of a task for a combined search across BM25 relevance, graph relationships, decay, quality, and optional branch bias. `memory_recall` supports graph expansion and compact output budgets, and `context_compile`, `context_brief`, and `context_generate` assemble task or project context from several sources in one operation. Exact entries can be fetched with `context_hydrate`.

The server records project memory locally in TOON format, which is designed to use fewer tokens than JSON. It does not require a hosted service or an LLM for ordinary storage, search, graph traversal, cleanup, or context aggregation. `memory_compress` is the exception: it can use an available Anthropic or OpenAI CLI to summarize and overwrite long entries, or return a prompt for manual compression.

Session-oriented tools track active branches, files, last-seen activity, and soft conflicts. Checkpoints create snapshots with a seven-day TTL, while merge tools combine observations from parallel sessions. Git changes and memory changes can be assembled into full or incremental briefings.

## Setup and configuration

Installation uses an interactive installer that lets you select which supported coding agents to configure. The project describes a zero-configuration starting point and automatically adds `.toon-memory/memory/` to `.gitignore`. Supported agents include Cursor, VS Code, Claude Code, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, and Zed, among others.

Memory entries can have a seven-day, 30-day, or exact-date TTL. Older entries, expired entries, and large collections can be archived automatically. A watch mode can create backups at configured intervals. AES-256-GCM encryption is available for memory, and the separate encrypted secrets vault keeps sensitive values outside the readable data file. Set `TOON_MEMORY_KEY` when using the secrets vault.

## Tools and capabilities

- Save, search, suggest, summarize, tag, pin, restore, supersede, archive, and permanently remove memory entries.
- Combine BM25 search with graph centrality, decay, quality scoring, session bias, and token budgets.
- Create project primers, task context packets, full briefings, focused context, health information, and change-based briefings.
- Track parallel sessions, merge observations by file, create checkpoints, and inspect captured hook activity.
- Deduplicate identical or similar entries and remove low-quality entries through deterministic consolidation.
- Back up memory locally, export or import entries through public or private GitHub Gists, and share conventions through global memory.
- Protect memory and secrets with AES-256-GCM encryption.

## Limitations and notes

Memory recall is based on textual ranking and graph relationships rather than embeddings. Automatic compression depends on an available Anthropic or OpenAI CLI; otherwise the tool supplies a prompt for manual work. GitHub Gist synchronization uses `GITHUB_TOKEN` or the `gh` CLI. Session-start hooks are available for Claude Code, Codex CLI, Gemini CLI, and Antigravity, while the broader agent list can be configured through the installer.

_Full upstream README: https://allmcps.com/mcp/toon-memory/readme_

