原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Toon Memory

作者:LuiggiVal08版本 4.3.5i★ –i在你的电脑上运行
注册名称io.github.LuiggiVal08/toon-memory

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:TOON_MEMORY_KEY, GITHUB_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: TOON_MEMORY_KEY, TOON_MEMORY_CAPTURE, TOON_MEMORY_SESSION_ID, TOON_MEMORY_BRANCH, TOON_MEMORY_NO_SESSION, GITHUB_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "toon-memory": {
      "command": "npx",
      "args": [
        "-y",
        "toon-memory",
        "mcp"
      ],
      "env": {
        "TOON_MEMORY_KEY": "your-value",
        "TOON_MEMORY_CAPTURE": "your-value",
        "TOON_MEMORY_SESSION_ID": "your-value",
        "TOON_MEMORY_BRANCH": "your-value",
        "TOON_MEMORY_NO_SESSION": "your-value",
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add toon-memory --env TOON_MEMORY_KEY=your-value --env TOON_MEMORY_CAPTURE=your-value --env TOON_MEMORY_SESSION_ID=your-value --env TOON_MEMORY_BRANCH=your-value --env TOON_MEMORY_NO_SESSION=your-value --env GITHUB_TOKEN=your-value -- npx -y toon-memory mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "toon-memory": {
      "command": "npx",
      "args": [
        "-y",
        "toon-memory",
        "mcp"
      ],
      "env": {
        "TOON_MEMORY_KEY": "your-value",
        "TOON_MEMORY_CAPTURE": "your-value",
        "TOON_MEMORY_SESSION_ID": "your-value",
        "TOON_MEMORY_BRANCH": "your-value",
        "TOON_MEMORY_NO_SESSION": "your-value",
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "toon-memory": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "toon-memory",
        "mcp"
      ],
      "env": {
        "TOON_MEMORY_KEY": "your-value",
        "TOON_MEMORY_CAPTURE": "your-value",
        "TOON_MEMORY_SESSION_ID": "your-value",
        "TOON_MEMORY_BRANCH": "your-value",
        "TOON_MEMORY_NO_SESSION": "your-value",
        "GITHUB_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • TOON_MEMORY_KEY 机密 env
    Encryption key for AES-256-GCM memory encryption
  • TOON_MEMORY_CAPTURE env
    Set to 'true' to enable activity capture hooks
  • TOON_MEMORY_SESSION_ID env
    Override the auto-detected session ID
  • TOON_MEMORY_BRANCH env
    Override the auto-detected git branch name
  • TOON_MEMORY_NO_SESSION env
    Set to disable session heartbeat tracking
  • GITHUB_TOKEN 机密 env
    GitHub personal access token for exporting/importing memory to Gist

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 LuiggiVal08 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7258 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7258 个服务器的 28% 更新
  • 基础检查结果等于或优于此分类中其他 7258 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Toon Memory 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:TOON_MEMORY_KEY, GITHUB_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(4.3.5)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT今天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT20天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

English | Español | 中文 | 日本語 | 한국어 | Português (BR) | Deutsch | Français

toon-memory

The Continuity Layer for AI Agents — AI agents shouldn't have to relearn your project every session.


Table of Contents

  • Overview
  • Blog Post
  • Features
  • Installation
  • Supported Agents
  • MCP Tools
  • Coordinación multi-sesión
  • Memory Graph (recall basado en grafo)
  • Tips & Best Practices
  • CLI Commands
  • Configuration
  • How It Works
  • Why TOON?
  • Troubleshooting
  • FAQ
  • Development
  • Contributing
  • Security & Privacy
  • License

Overview

Ever had that feeling where your AI agent forgets everything from yesterday's session? You explain the same architecture decision for the third time, and it still suggests the approach you already rejected?

toon-memory fixes this. It's the Continuity Layer for AI Agents — a lightweight system that preserves your project's knowledge, decisions, and conventions across sessions, so every session starts where the last one ended. Fully local and private, over MCP — no cloud, no server.

📖 [Read the documentation](https://luiggival08.github.io/toon-memory/)

Real-world use cases
ScenarioWhat toon-memory does
Design debates"We chose Redis over Memcached because of pub/sub support"
Framework choices"This project uses Zod for validation, not Joi"
Bug fixes"Redis pool exhaustion — fix was max_connections=20"
Architecture notes"Broker service uses RESP protocol, not HTTP"
Onboarding"The deploy script lives in scripts/deploy.sh"
Team context"PR #142 reverted the caching change — don't re-add it"

Blog Post

Read How toon-memory Makes Your AI Agent Smarter to see a real-world demo of persistent memory in action.


Features

  • A complete memory toolkit — Full memory management via Model Context Protocol, including memory_smart_recall (unified recall with session bias), memory_sessions for multi-session coordination, context_* tools for one-call context generation (briefing, diff, focus, health audit, export), memory_compress (LLM-powered compression), memory_consolidate (deterministic dedup/merge/cleanup), memory_primer (auto-injected context), memory_merge_sessions (cross-session merge), memory_pin/memory_unpin (pin important entries with priority 1-5), memory_checkpoint (session snapshot with 7d TTL), memory_search (unified search with tag filters + session bias), memory_tag (batch tag operations), memory_export_gist/memory_import_gist (GitHub Gist sync), memory_secret (encrypted secrets vault), memory_export_global/memory_import_global (cross-project conventions), memory_forget (soft/hard delete, restore, supersede), memory_reflect (staleness/quality reflection), and memory_promote (auto-promote low-confidence drafts)
  • MCP Resources — Read memory as context without tool invocations, including a System Primer (auto-generated knowledge map)
  • 22 agents supported — OpenCode, VS Code, Claude Code, Cursor, Windsurf, Cline, Continue, Codex CLI, Gemini CLI, Zed, Antigravity, Aider, KiloCode, OpenClaw, Kiro, Qwen, Kimi, Goose, Junie, Amp, Grok, Trae
  • Interactive installer — Select which agents to configure from a menu
  • SessionStart hooks — Auto-reminders for Claude Code, Codex CLI, Gemini CLI, Antigravity
  • TOON format — 22% fewer tokens than JSON (measured), better LLM comprehension
  • Per-project memory — Each project gets its own memory file
  • Zero config — Just install and use
  • Auto gitignore — Automatically adds .toon-memory/memory/ to .gitignore
  • Date filtering — Search memory by date range
  • Auto-archive — Old entries (>30 days), expired TTL entries, or 100+ entries moved to archive automatically
  • Encryption — AES-256-GCM encryption for sensitive data
  • Watch mode — Auto-backup every N minutes
  • Memory TTL — Configurable per-entry expiration (7d, 30d, or exact dates)
  • Tag inference — Auto-detect tags from content when tags are empty (built-in vocabulary + project dependencies)
  • Memory diff — See what changed since your last session
  • Related entries — Auto-suggest related memories when saving
  • Memory graph — Connect entries with links/[[key]] refs; memory_recall can expand a relationship-aware subgraph for more precise, lower-token recall (no embeddings, no LLM)
  • Token-efficient recall — memory_recall({ compact: true }) returns numeric-indexed entries, drops id/date/file, renders graph edges as ->2, and truncates graph neighbors to snippets
  • BM25 + centrality ranking — Recall re-ranks by BM25 relevance and graph centrality (hubs surface even without the query word); per-hop decay keeps distant nodes low
  • Auto-tag from dependencies — toon-memory init scans package.json/Cargo.toml/requirements.txt/go.mod and writes a project vocabulary so entries mentioning a dependency get auto-tagged with it
  • Smart Recall — memory_smart_recall combines BM25 + graph + decay + quality in one call; the LLM calls this at the start of every task
  • Quality scoring — Every entry gets a 0–1 quality score based on structure (tags, links, content specificity, recency, access count); high-quality entries surface first
  • Merge-dedup — Saving with the same key merges attributes (union of tags, max confidence, latest date, combined links) instead of overwriting
  • Near-duplicate detection — Consolidation detects near-duplicates via Jaccard similarity (threshold 0.7) and merges them
  • Confidence score — Each entry tracks reliability: user-asserted = 1.0, inferred = 0.65–0.75
  • LLM-powered compression — memory_compress uses AI to summarize long entries; memory_consolidate(mode: "low-quality") does batch cleanup deterministically
  • Cross-session merge — memory_merge_sessions merges observations across parallel sessions for a file
  • GitHub Gist sync — memory_export_gist and memory_import_gist sync memory entries via GitHub Gist (zero dependencies)
  • Verbatim mode — config.verbatim preserves original entries instead of overwriting on save
  • Context generation tools — context_generate (full briefing), context_diff (incremental), context_focus (targeted), context_health (audit), context_export (markdown) — each replaces 5-6 manual tool calls. Zero LLM, pure deterministic aggregation
  • System Primer — Auto-injected at session start via systemPrimer(), showing top 5 memories for instant context
  • Path Scoping — Entries can be scoped to file paths via glob patterns (path_scope); recall filters by scope automatically
  • Budget Control — Three output levels: budget: "tiny" (key+1 line, ~50 tokens), "normal" (compact with tags/edges), "deep" (all fields with origin/scope/status). Backward compatible with compact: true
  • Origin Tracking — Each entry tracks its origin (human, agent, inferred); human assertions get a quality boost
  • Soft Delete — memory_forget soft-deletes by default (sets status=obsolete). Restore with memory_forget(key, action: "restore"), hide with action: "soft", permanent removal via action: "hard"
  • Enhanced Health Audit — context_health now detects missing-evidence (path_scope without file) and stale-claims (overlapping content in same category)
  • Typed graph edges — Edges carry types (superseded_by, supersedes, relates), written as type:key in the graph. Explicit links become relates:key, so you can tell *how* entries are related, not just that they are
  • RRF ranking — Recall fuses BM25 (×3) and graph-centrality ranks with Reciprocal Rank Fusion and an adaptive k = clamp(3..60, round(sqrt(n))). Benchmark (8 gold queries): nDCG 0.776, MRR 0.917 — exact parity with the previous linear scoring. Pass rrf: false to fall back
  • Memory reflect — memory_reflect ranks entries by staleness, quality, and over-connection to surface what needs attention or cleanup. Deterministic, zero LLM
  • Memory supersede — memory_forget(key, action: "supersede", new_key) marks an entry as replaced by a newer one (superseded_by link + supersededOn date). memory_recall({ as_of }) re-includes old entries for point-in-time queries before their supersession
  • Auto-promote — memory_promote promotes low-confidence drafts to active entries deterministically (threshold 0.65, Jaccard dedup), with dryRun by default
  • Explain WHY — memory_recall/memory_smart_recall accept explain: true and append a deterministic reason line to every returned entry (↳ 100% relevance · used 14× · used today · importance HIGH) — *why* it was retrieved, no LLM
  • Token budgets — budget_tokens caps the recall output by estimated token count; entries accumulate greedily and the tail that would exceed the budget is dropped (0 = no limit)
  • Version supersession — memory_consolidate(mode: "versions") detects entries describing the same subject at different library versions (e.g. "Use React 18" vs "Use React 19") and retires the older ones in favor of the newest
  • Negative memories — a warning category for "do NOT do this" facts; warning entries get a recall boost so the agent sees the landmines before repeating them
  • Language + folder ranking — recall boosts entries written in the same script family (latin/CJK/cyrillic/…) and entries whose path_scope matches the current file
  • Explicit importance — memory_remember({ importance }) sets critical, high, medium, or low. Critical decisions surface first (+0.3), low notes stay out of the way (−0.1); empty = auto (recency + frequency). Re-saving keeps the higher level
  • Evidence layer — every memory_remember save is annotated with an evidence level: verified when its referenced file exists on disk, unverified when it doesn't, conflict when it overlaps a warning or critical/high decision. Conflicts get a +0.15 recall boost (verified +0.03, unverified −0.02) and a ⚠️ CONTRADICTION warning on save — but never block the write
  • Secrets vault — memory_secret stores credentials in an encrypted sidecar (secrets.toon, AES-256-GCM) so data.toon stays a readable open format while sensitive values never hit plaintext
  • Global memory import/export — memory_export_global writes project memory to ~/.toon-memory/memory/global.toon; memory_import_global pulls cross-project conventions back with a one-shot, deterministic, offline merge (never a live dual source)
  • ~1 MB install — three tiny prompt packages (@inquirer/checkbox/select/confirm); the MCP SDK, zod, and the TOON parser are bundled into the shipped binary — a single npm i -g downloads ~1 MB (was ~14 MB) and lands ~4.4 MB on disk (was ~33 MB)

Installation

1. Install
# macOS / Linux

curl

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx