经 AI Skill Hub 精选评估,engram MCP工具 获评「强烈推荐」。已获得 3.5k 颗 GitHub Star,这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.5 分,适合有一定技术背景的用户使用。
为AI编码代理提供持久化内存管理的开源MCP工具。采用Go语言实现,提供SQL存储后端,支持多Agent通用。使得AI助手能够跨会话保留上下文和历史信息,显著提升编码效率和连贯性。适合构建长期记忆的AI编程助手开发者。
engram MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
为AI编码代理提供持久化内存管理的开源MCP工具。采用Go语言实现,提供SQL存储后端,支持多Agent通用。使得AI助手能够跨会话保留上下文和历史信息,显著提升编码效率和连贯性。适合构建长期记忆的AI编程助手开发者。
engram MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/Gentleman-Programming/engram
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"engram-mcp--": {
"command": "npx",
"args": ["-y", "engram"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 engram MCP工具 执行以下任务... Claude: [自动调用 engram MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"engram_mcp__": {
"command": "npx",
"args": ["-y", "engram"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<a id="top"></a>
<img width="100%" alt="Engram neon elephant banner: the elephant exhales a memory stream (remember, sync, recall), the ENGRAM wordmark is written on, and the tagline One Brain. Local or Cloud. appears" src="assets/branding/engram-banner.gif" />
<p><strong>Persistent memory for AI coding agents.</strong></p>
<p> <a href="https://github.com/Gentleman-Programming/engram/releases"><img src="https://img.shields.io/github/v/release/Gentleman-Programming/engram?style=for-the-badge&labelColor=1A1218&color=F095C8" alt="Release"></a> <a href="https://github.com/Gentleman-Programming/engram/stargazers"><img src="https://img.shields.io/github/stars/Gentleman-Programming/engram?style=for-the-badge&labelColor=1A1218&color=F095C8" alt="Stars"></a> <img src="https://img.shields.io/badge/agents-14-F095C8?style=for-the-badge&labelColor=1A1218" alt="14 agents"> <img src="https://img.shields.io/badge/macOS%20%C2%B7%20Linux%20%C2%B7%20Windows-D7A0B8?style=for-the-badge&labelColor=1A1218" alt="Platform"> <a href="LICENSE"><img src="https://img.shields.io/badge/MIT-D7A0B8?style=for-the-badge&labelColor=1A1218" alt="License: MIT"></a> </p>
<p> <a href="https://engram.gentlemanprogramming.com/"><strong>Website</strong></a> • <a href="#get-started"><strong>Quickstart</strong></a> • <a href="DOCS.md"><strong>Docs</strong></a> • <a href="docs/RELEASE-STAGING.md"><strong>Candidate staging</strong></a> • <a href="https://gentle-ai.gentlemanprogramming.com/"><strong>Gentle-AI</strong></a> • <a href="https://gentle-ai-wiki.gentlemanprogramming.com/"><strong>Wiki</strong></a> </p>
<br/>
<p> <strong>engram</strong> <code>/ˈen.ɡræm/</code> — <em>neuroscience</em>: the physical trace of a memory in the brain. </p>
<p> Your AI coding agent forgets everything when the session ends. <strong>Engram gives it a brain.</strong> </p>
<p><sub>One brain. Local or cloud. Agent-agnostic, single binary, zero dependencies.</sub></p>
<br/>
<sub><strong>If Engram saved you from re-explaining your project, a star helps other people find it.</strong></sub>
<a href="https://www.star-history.com/?repos=Gentleman-Programming%2Fengram&type=date&legend=top-left"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=Gentleman-Programming%2Fengram&type=date&theme=dark&legend=top-left&sealed_token=zwrd_DfwYZeJU7nhGYNtREEheKWYEslW_uzrqORlZ36v-JSMepdqGLkKExp1M-xbNq6t-ebVS5iM3WoPDO26tXbSGkjXC2Jo3kHQ3uNzlRkCrWoqRHkPVQXvosKciY109ObiwGV1z8aajyedcloppmekCGrvVKJb6KWxGLXW_mHcRAVIBZUOa4SzW75D" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=Gentleman-Programming%2Fengram&type=date&legend=top-left&sealed_token=zwrd_DfwYZeJU7nhGYNtREEheKWYEslW_uzrqORlZ36v-JSMepdqGLkKExp1M-xbNq6t-ebVS5iM3WoPDO26tXbSGkjXC2Jo3kHQ3uNzlRkCrWoqRHkPVQXvosKciY109ObiwGV1z8aajyedcloppmekCGrvVKJb6KWxGLXW_mHcRAVIBZUOa4SzW75D" /> <img width="620" alt="Star History Chart" src="https://api.star-history.com/chart?repos=Gentleman-Programming%2Fengram&type=date&legend=top-left&sealed_token=zwrd_DfwYZeJU7nhGYNtREEheKWYEslW_uzrqORlZ36v-JSMepdqGLkKExp1M-xbNq6t-ebVS5iM3WoPDO26tXbSGkjXC2Jo3kHQ3uNzlRkCrWoqRHkPVQXvosKciY109ObiwGV1z8aajyedcloppmekCGrvVKJb6KWxGLXW_mHcRAVIBZUOa4SzW75D" /> </picture> </a>
<br/>
<sub><strong>WORKS WITH THE AGENT YOU ALREADY HAVE</strong></sub>
<strong><a href="docs/AGENT-SETUP.md#claude-code">Claude Code</a></strong> · <strong><a href="docs/AGENT-SETUP.md#pi">Pi</a></strong> · <strong><a href="docs/AGENT-SETUP.md#opencode">OpenCode</a></strong> · <strong><a href="docs/AGENT-SETUP.md#gemini-cli">Gemini CLI</a></strong> · <strong><a href="docs/AGENT-SETUP.md#codex">Codex</a></strong> · <strong><a href="docs/AGENT-SETUP.md#antigravity">Antigravity</a></strong> · <strong><a href="docs/AGENT-SETUP.md#windsurf">Windsurf</a></strong><br/> <strong><a href="docs/AGENT-SETUP.md#qwen-code">Qwen Code</a></strong> · <strong><a href="docs/AGENT-SETUP.md#kiro">Kiro</a></strong> · <strong><a href="docs/AGENT-SETUP.md#cursor">Cursor</a></strong> · <strong><a href="docs/AGENT-SETUP.md#vs-code-copilot--claude-code-extension">VS Code (Copilot)</a></strong> · <strong><a href="docs/AGENT-SETUP.md#kilo-code">Kilo Code</a></strong> · <strong><a href="docs/AGENT-SETUP.md#kimi-code">Kimi Code</a></strong> · <strong><a href="docs/AGENT-SETUP.md#commandcode">CommandCode</a></strong>
<sub>14 setup targets · plus any MCP-compatible agent · <a href="docs/AGENT-SETUP.md">per-agent setup →</a></sub>
</div>
Built by Alan Buscaglia (Gentleman Programming). Engram is also the memory layer of Gentle-AI, and it stays a standalone tool you can use with any MCP-compatible agent.
<a href="https://gentlemanprogramming.com/"><img src="https://img.shields.io/badge/Website-F095C8?style=for-the-badge&labelColor=1A1218&logo=googlechrome&logoColor=F095C8" alt="Website"></a> <a href="https://www.youtube.com/@GentlemanProgramming"><img src="https://img.shields.io/badge/YouTube-F095C8?style=for-the-badge&labelColor=1A1218&logo=youtube&logoColor=F095C8" alt="YouTube"></a> <a href="https://github.com/Gentleman-Programming"><img src="https://img.shields.io/badge/GitHub-D7A0B8?style=for-the-badge&labelColor=1A1218&logo=github&logoColor=D7A0B8" alt="GitHub"></a>
</div>
---
<img src="assets/branding/engram-logo-only.png" width="56" alt="" />
<br/>
<p><strong>Inspired by <a href="https://github.com/thedotmack/claude-mem">claude-mem</a></strong> — but agent-agnostic, simpler, and built different.</p>
<br/>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-F095C8?style=for-the-badge&labelColor=1A1218" alt="License: MIT"></a>
</div>
Trademark notice: The Engram™ names and logos are trademarks of Alan Buscaglia. The symbol appears on the first prominent mention, and this notice covers the rest. The MIT License applies to the code; it does not permit implying endorsement or official affiliation. See TRADEMARKS.md.
---
For production use and security support, install the latest stable release from GitHub Releases. Release candidates are prerelease validation and feedback builds; choose one only when you accept prerelease risk. See the Release Policy before upgrading.
Homebrew installs the latest stable release:
brew install gentleman-programming/tap/engram
For Windows, Linux, source builds, and all installation methods, see Installation.
Engram 为 AI coding agents 提供持久化记忆能力。它作为一个“单一大脑”,既可以运行在本地,也可以部署在云端。Engram 具有 Agent-agnostic(与智能体无关)的特性,采用单二进制文件设计,实现零依赖运行,旨在为开发者构建一个跨平台、跨环境的知识存储中心。
您可以通过 Homebrew 进行快速安装:`brew install gentleman-programming/tap/engram`。对于 Windows 和 Linux 用户,请参考官方文档获取更多安装方式。此外,您也可以通过克隆 GitHub 仓库并使用 Docker Compose 启动 beta 版本进行开发测试,或通过 `go build` 手动构建二进制文件。
Engram 支持通过命令行快速记录项目上下文。例如,在进行架构设计时,您可以使用 `save` 命令记录特定的架构规范(如 Clean Architecture)。当后续尝试保存冲突的记忆时,Engram 会通过 `candidates[]` 返回冲突检测结果,确保 AI 智能体在处理项目逻辑时保持记忆的一致性与准确性。
为了确保开发环境的隔离性,您可以通过设置环境变量来避免修改默认的 `~/.engram` 或生产云端数据。通过配置 `ENGRAM_DATA_DIR` 指定数据目录,并利用 `ENGRAM_CLOUD_SERVER` 和 `ENGRAM_CLOUD_TOKEN` 来连接自定义的云端服务器,实现完全受控的测试环境。
Engram 提供丰富的 CLI 工具与接口支持。通过 `engram setup [agent]` 可以快速集成各类 AI 智能体;使用 `engram serve [port]` 可启动 HTTP API 服务;此外,Engram 还支持启动 MCP 服务器模式(`engram mcp`),通过工具集(tools)为智能体提供扩展能力。
Engram 拥有针对 Pi 智能体的原生支持包 `gentle-engram`。通过 `engram setup pi` 命令,可以为 Pi 提供持久化的项目记忆、压缩恢复功能,并能通过统一的本地或云端 Engram 大脑,实现与其他 MCP 智能体的记忆共享。对于云端集成,Engram 采用可选的同步机制,本地 SQLite 始终作为权威数据源,云端则用于数据复制与共享访问。
关于 Engram 的详细使用指南、Beta 测试说明以及常见问题排查,请参阅官方文档 `docs/BETA_TESTING.md`。如果您在测试过程中遇到问题,可以通过 GitHub Issues 并标记 `beta-phase-2-3-4` 标签来提交反馈。
优秀的MCP工具实现,解决AI Agent长期记忆痛点。Go语言保证高性能,SQL存储提供灵活查询能力。社区活跃度高,是构建智能编码助手的核心基础设施。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:engram MCP工具 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | engram |
| 原始描述 | 开源MCP工具:Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQL。⭐3.5k · Go |
| Topics | 持久化记忆编码代理MCP协议Go开发SQL存储 |
| GitHub | https://github.com/Gentleman-Programming/engram |
| License | MIT |
| 语言 | Go |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端