AI Skill Hub 推荐使用:记忆库 是一款优质的MCP工具。AI 综合评分 7.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
记忆库 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
记忆库 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/sandsower/memento-vault
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"---": {
"command": "npx",
"args": ["-y", "memento-vault"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 记忆库 执行以下任务... Claude: [自动调用 记忆库 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"___": {
"command": "npx",
"args": ["-y", "memento-vault"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Persistent knowledge capture for coding agents. Sessions get triaged, scored, and filed as searchable Zettelkasten notes. Runs locally or as a remote service accessible from any device.
Works with Claude Code (native hooks), pi (native extension), and any MCP-compatible agent (Cursor, Windsurf, Codex, etc.) via the built-in MCP server.
mcp Python package (for MCP setup, installed automatically by --mcp)git clone https://github.com/sandsower/memento-vault.git
cd memento-vault
./install.sh
Creates the vault at ~/memento, copies hooks and the memento/ package into ~/.claude/, optionally sets up Obsidian views and QMD search. Works on Linux and macOS.
Custom vault path:
MEMENTO_VAULT_PATH=~/my-vault ./install.sh
The installer also links the memento-vault CLI into ~/.local/bin when possible, so future updates can use memento-vault update. If ~/.local/bin is not on your PATH, either add it or run the repository-local ./bin/memento-vault directly.
To safely rerun setup for the same version without discarding local edits:
memento-vault install --reinstall
Check local vault/install health at any time:
memento-vault health # concise read-only diagnostics
memento-vault doctor # alias for health
memento-vault health --json # structured output for automation
Warnings exit 0 by default; failures exit 1. Use --strict if automation should fail on warnings too. The command is read-only: it reports suggested repairs such as ./install.sh --reinstall, but does not modify vault/config files.
--force is reserved for recovery from broken installed files. It overwrites memento-managed files and requires confirmation, or MEMENTO_FORCE=1 in non-interactive environments.
The base install captures knowledge. To also inject knowledge back into active sessions and enable background consolidation:
./install.sh --experimental
This adds two modules:
Both require QMD. Inception also needs pip install numpy hdbscan scikit-learn. See Tenet and Inception for details.
For agents that support MCP but not native hooks (Cursor, Windsurf, etc.):
./install.sh --mcp
This installs the memento/ package, writes generic MCP server config, and registers the server with Claude Code and Codex when those CLIs are installed. The server runs over stdio via python -m memento. The installer verifies the mcp Python package is available and installs it if needed. Claude Code gets Claude-specific skills and the concierge agent under ~/.claude; Codex gets agent-agnostic skills under ~/.codex/skills.
You can combine flags: ./install.sh --experimental --mcp gives you hooks + retrieval + MCP.
Deploy the vault as a service accessible from multiple devices, agents, or the claude.ai/code web interface.
The simplest option. Run on any machine with Docker — a home server, VPS, or your laptop.
MEMENTO_API_KEY=$(python3 -c "import secrets; print(secrets.token_urlsafe(32))") \
docker compose up -d
Vault is at http://localhost:8745/mcp. For TLS on a VPS, add Caddy or use setup-remote.sh --host your-domain.com --tls.
[ -x /path/to/memento-vault/bin/memento-vault ] && /path/to/memento-vault/bin/memento-vault warmup >/dev/null 2>&1
You can also run it manually:
bash memento-vault warmup ```
cd memento-vault
./uninstall.sh
Removes hooks, skills, and the agent from ~/.claude/. Your vault and notes stay untouched.
Config lives at ~/.config/memento-vault/memento.yml. All options in docs/configuration.md.
```yaml vault_path: ~/memento exchange_threshold: 15 file_count_threshold: 3 qmd_collection: memento auto_commit: true
QMD adds semantic search over your vault. Without it the concierge agent uses the embedded backend or falls back to grep. QMD is required for Tenet and Inception.
qmd search "caching strategy" -c memento
The concierge agent uses QMD automatically when you ask about past decisions.
The installer copies Obsidian config and Base views into the vault. Open ~/memento as a vault and you get:
fleeting/Memento ships a native pi extension from this repo. The extension is TypeScript, but lifecycle policy stays in Python core: pi calls a short-lived JSON adapter (python3 -m memento.pi_bridge) for briefing, recall, and read-tool context.
For local testing:
pi -e ./extensions/memento.ts
For package installation from a checkout:
pi install /path/to/memento-vault
The pi bridge does not start a long-lived MCP child process. Automatic durable writes are not enabled by default. Candidate captures are queued in local state for review and can be processed into curated notes manually.
Useful pi commands/tools:
/memento — open the TUI dashboard for status, readable queued-capture review cards, explicit capture selection, processing previews, and live group-level processing progress./memento-status or memento_status — bridge/vault status, lifecycle feature state, queue count./memento-queue or memento_queue — list queued pi capture candidates with deterministic excerpts and size metadata./memento-process or memento_process — process selected queued captures into curated durable notes. With no arguments the command shows a dry-run preview; use /memento for interactive selection and confirmation.memento_capture — manually write a durable note; pass queue: true to queue instead.Pi bridge configuration can live in either ~/.config/memento-vault/pi-bridge.json, project-local .pi/settings.json, or project package.json. The bridge reads memento.piBridge first, then piBridge, then top-level keys:
{
"memento": {
"piBridge": {
"enabled": true,
"briefing": true,
"promptRecall": true,
"toolContext": false,
"autoCapture": false,
"captureQueue": true,
"processQueue": true,
"processQueueOnSessionClose": false,
"processQueueMaxCaptures": 3,
"processQueueModel": null,
"maxInjectedChars": 4000,
"maxToolContextPerSession": 5
}
}
}
Environment variables override file config:
| Variable | Default | Purpose |
|---|---|---|
MEMENTO_PI_ENABLED | true | Enable/disable the extension lifecycle work. |
MEMENTO_PI_BRIEFING | true | First-turn project briefing. |
MEMENTO_PI_PROMPT_RECALL | true | Prompt recall before each agent turn. |
MEMENTO_PI_TOOL_CONTEXT | false | Read-tool context injection. |
MEMENTO_PI_MAX_INJECTED_CHARS | 4000 | Per-injection character cap. |
MEMENTO_PI_MAX_TOOL_CONTEXT_PER_SESSION | 5 | Tool-context injection cap per pi session. |
MEMENTO_PI_AUTO_CAPTURE | false | Queue automatic capture candidates on agent_end, compaction, and shutdown lifecycle events. |
MEMENTO_PI_CAPTURE_QUEUE | true | Queue automatic capture candidates instead of writing notes directly. |
MEMENTO_PI_PROCESS_QUEUE | true | Enable manual queued-capture processing. |
MEMENTO_PI_PROCESS_QUEUE_ON_SESSION_CLOSE | false | Reserved future automation route for processing a small batch on session close. |
MEMENTO_PI_PROCESS_QUEUE_MAX_CAPTURES | 3 | Reserved future cap for session-close processing. |
MEMENTO_PI_PROCESS_QUEUE_MODEL | unset | Optional model override for processor sessions. |
When automatic capture is enabled, pi lifecycle events only create reviewable queue entries in local state (${MEMENTO_PI_STATE_HOME:-${XDG_STATE_HOME:-~/.local/state}/memento/pi}/queue/pi-captures.jsonl). They do not write durable notes until /memento-process or /memento curates the queue into one or more atomic Memento notes. Processing runs write progress under ${MEMENTO_PI_STATE_HOME:-${XDG_STATE_HOME:-~/.local/state}/memento/pi}/processing/<run-id>/, and the /memento footer shows a compact active/failed/interrupted indicator while background processing is visible. Shutdown capture is skipped if another lifecycle capture was already queued during the same session.
Before cutting a pi bridge release, run this interactive smoke checklist from a checkout:
pi -e ./extensions/memento.ts
Then verify /memento-status, /memento-queue, /reload, /new, /resume, /fork, /compact, and quit. The bridge uses short-lived python3 -m memento.pi_bridge calls rather than a persistent child process, so shutdown cleanup should leave no memento-owned child process behind.
prf_enabled: true # pseudo-relevance feedback query expansion rrf_enabled: true # reciprocal rank fusion (BM25 + vsearch) ppr_enabled: true # personalized pagerank link expansion reranker_enabled: true # cross-encoder reranking (local ONNX) multi_hop_enabled: false # follow wikilinks from top results ```
Three ways to layer project-specific behavior on top without forking:
project_rules in config: map directories to project slugs and ticket patternsextra_qmd_collections in config: search additional QMD collections alongside the vault~/.claude/skills/memento-post/SKILL.md: post-capture hook that runs after /memento creates notes (e.g., promote to a team vault, apply domain tags)创新的MCP工具,解决AI代理记忆问题。自动分类机制设计合理,但项目成熟度有限,适合早期采用者和开发者探索。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
总体来看,记忆库 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | memento-vault |
| 原始描述 | 开源MCP工具:Persistent knowledge capture for coding agents. Auto-triages sessions into searc。⭐8 · Python |
| Topics | 知识管理AI记忆编码代理MCP协议持久化存储 |
| GitHub | https://github.com/sandsower/memento-vault |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-25 · 更新时间:2026-05-30 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端