AI Skill Hub 强烈推荐:长期记忆系统 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的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/buildingjoshbetter/TrueMemory
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "truememory"]
}
}
}
# 配置文件位置
# 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", "truememory"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="assets/charts/hero-banner.png" alt="TrueMemory" width="800"> </p>
<p align="center"> <a href="https://github.com/buildingjoshbetter/TrueMemory"><img src="https://img.shields.io/github/stars/buildingjoshbetter/TrueMemory?style=social" alt="Stars"></a> <a href="https://pepy.tech/projects/truememory"><img src="https://img.shields.io/badge/dynamic/json?url=https://pepy.tech/api/v2/projects/truememory&query=$.total_downloads&label=installs&color=39FF14&labelColor=white&style=flat" alt="PyPI Installs"></a> – <a href="./i18n/README.zh-CN.md"><img alt="简体中文" src="https://img.shields.io/badge/简体中文-d9d9d9"></a> <a href="./i18n/README.ru.md"><img alt="Русский" src="https://img.shields.io/badge/Русский-d9d9d9"></a> – <a href="https://arxiv.org/abs/2605.04897"><img src="https://img.shields.io/badge/arXiv-2605.04897-b31b1b" alt="arXiv"></a> <a href="https://discord.gg/ZJ74JB2gVW"><img src="https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white" alt="Discord"></a> </p>
<p align="center"> <img src="https://img.shields.io/badge/LoCoMo-93.0%25-blueviolet" alt="LoCoMo"> <img src="https://img.shields.io/badge/LongMemEval-92.0%25-blue" alt="LongMemEval"> <img src="https://img.shields.io/badge/BEAM--1M-76.6%25_(SOTA)-orange" alt="BEAM-1M"> </p>
<p align="center"> <a href="#the-problem">Why</a> · <a href="#quick-start">Quick Start</a> · <a href="#how-truememory-compares">Compare</a> · <a href="#tiers">Tiers</a> · <a href="#benchmarks">Benchmarks</a> · <a href="#python-api">API</a> · <a href="#docs">Docs</a> · <a href="#faq">FAQ</a> · <a href="https://discord.gg/ZJ74JB2gVW">Discord</a> </p>
<p align="center"> <img src="assets/terminal-demo.svg" alt="TrueMemory terminal demo" width="750"> </p>
---
curl -LsSf https://raw.githubusercontent.com/buildingjoshbetter/TrueMemory/main/install.sh | sh
Installs everything in an isolated environment. Downloads ~1.5GB of AI models. No data leaves your machine. No sudo required.
<details><summary>New to the terminal? Click here for step-by-step instructions.</summary>
Cmd + Space, type Terminal. Linux: Ctrl + Alt + T. Windows: open PowerShell.Cmd+Q).Windows (PowerShell):
irm https://raw.githubusercontent.com/buildingjoshbetter/TrueMemory/main/install.ps1 | iex
</details>
That's it. TrueMemory remembers your conversations automatically from here. Need help? Join our Discord.
If TrueMemory saves you time, a ⭐ helps other devs find it.
from truememory import Memory
m = Memory()
m.add("Prefers dark mode and TypeScript", user_id="alex")
m.add("Works at Anthropic as a senior engineer", user_id="alex")
m.add("Always sign commits with GPG", directive=True) # directives auto-load every session
results = m.search("What are Alex's preferences?", user_id="alex")
results = m.search_deep("career history?", user_id="alex") # multi-round, higher accuracy
| Method | Description |
|---|---|
m.add(content, user_id) | Store a memory (directive=True for standing instructions that auto-load at the start of every session) |
m.search(query, user_id) | Search (6-layer pipeline + reranker) |
m.search_deep(query, user_id) | Multi-round agentic search |
m.get(id) / m.get_all(user_id) | Retrieve memories |
m.update(id, content) / m.delete(id) | Modify or remove |
m.stats() | System statistics |
---
| System | LoCoMo | LongMemEval | Local-first | Auto-capture | License |
|---|---|---|---|---|---|
| **TrueMemory Pro** | **93.0%** | **92.0%** | ✅ | ✅ | AGPL-3.0 |
| **TrueMemory Base** | **92.0%** | **84.1%** | ✅ | ✅ | AGPL-3.0 |
| Mem0 | 61.4% | — | Partial | ❌ | Apache-2.0 |
| Supermemory | 65.4% | — | ❌ | ❌ | Cloud API |
| MemOS | 75.8% | — | ✅ | ❌ | Apache-2.0 |
| ReadAgent | 79.5% | — | ❌ | ❌ | Research |
All benchmarks independently reproducible. Scripts included in benchmarks/.
---
<details><summary><strong>Where is my data stored? Is anything sent to the cloud?</strong></summary>
Everything lives locally in ~/.truememory/memories.db. Edge and Base tiers make zero external calls. Pro sends only your search query text to an LLM for query expansion. Your memories are never transmitted. </details>
<details><summary><strong>Do I need Python installed?</strong></summary>
No. The installer uses uv to manage a sandboxed Python 3.12. Your system Python is never touched. </details>
<details><summary><strong>Why not just use a bigger context window?</strong></summary>
Context windows are expensive, slow, and empty at the start of every session. TrueMemory gives instant recall for zero tokens of context, in under 200ms. </details>
<details><summary><strong>Does TrueMemory collect telemetry?</strong></summary>
Anonymous usage telemetry (tool calls, session counts, platform info) is on by default. We never track memory content, queries, file paths, or API keys. Opt out: export TRUEMEMORY_TELEMETRY=off </details>
---
创新记忆架构赋能智能体持久学习,MCP集成方案优雅,社区活跃度良好,是构建智能对话系统的关键组件。
该工具使用 AGPL-3.0 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
⚠️ AGPL 3.0 — 最严格的 Copyleft,网络服务端使用也需开源,SaaS 使用受限。
总体来看,长期记忆系统 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | TrueMemory |
| 原始描述 | 开源MCP工具:A living memory system that ingests long-horizon data to infer insights, enablin。⭐84 · Python |
| Topics | 智能体记忆MCP工具长期记忆数据推理Anthropic |
| GitHub | https://github.com/buildingjoshbetter/TrueMemory |
| License | AGPL-3.0 |
| 语言 | Python |
收录时间:2026-05-21 · 更新时间:2026-05-30 · License:AGPL-3.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端