AI记忆服务

Engram是一个为AI代理提供可靠记忆的托管MCP服务器,使其能够记住过去的对话、事实和决策,适用于支持上下文、代码审查和品牌内容管理等场景。

  • by lumetra-io
  • 云端部署
  • 1 星标
  • 更新于
在 GitHub 查看 lumetra-io/engram-memory-mcp

使用说明

记忆印痕MCP(或:记忆编码MCP,具体翻译可能根据上下文有所调整)

为您的AI代理配备一个值得信赖的记忆系统。Engram能让您的AI记住过去的对话、事实和决策,使其更像一个真正的团队成员。

此存储库包含用于将MCP客户端连接到(某系统/服务)的配置模板 记忆痕迹(或称为“记忆印痕”),一个为AI代理提供托管内存的服务。

什么是记忆痕迹(Engram)?

Engram 是一种 托管的MCP服务器 为AI代理提供可靠的记忆存储:

  • 可靠的存储器代理能够记住对话、事实和决策,并且能够解释为何选择了特定的结果
  • 轻松设置几分钟内通过MCP连接。兼容Claude Code、Windsurf、Cursor及其他MCP客户端
  • 内置控件使用简单工具管理保留和清理工作——无需额外配置

公开测试期间免费 • 无需信用卡

快速设置

获取您的API密钥

在……注册 lumetra.io(该名称本身在中文中没有直接对应的翻译,通常保留原样,若需解释性翻译,可译为“卢梅特拉点奥”或根据具体语境进行意译,但在此直接保留原名) 获取您的API密钥。

2. 添加到您的MCP客户端

克劳德密码:

claude mcp add-json engram '{"type":"http","url":"https://engram.lumetra.io","headers":{"X-API-Key":"<your-api-key>"}}'

风帆冲浪 (~/.codeium/windsurf/mcp_config.json):

{
  "mcpServers": {
    "engram": {
      "serverUrl": "https://engram.lumetra.io",
      "headers": {
        "X-API-Key": "<your-api-key>"
      }
    }
  }
}

光标 (~/.cursor/mcp.json 或者 .cursor/mcp.json):

{
  "mcpServers": {
    "engram": {
      "url": "https://engram.lumetra.io",
      "headers": {
        "X-API-Key": "<your-api-key>"
      }
    }
  }
}

3. 重启您的客户端

您的MCP客户端现在可以访问Engram内存工具了。

可用工具

一旦连接成功,您的代理将能够访问以下记忆工具:

  • store_memory(content) — 存储单一记忆
  • store_memories(contents[]) — 一次性存储多个记忆
  • search_memories(query, max_candidates?, hints?) — 搜索存储的记忆
  • memory_index(page?, limit?) — 浏览所有回忆
  • delete_by_event(event_id, dry_run?) — 删除特定记忆
  • explain_retrieval(retrieval_id, verbosity?) — 了解为何选择这些结果

推荐的代理提示

将此添加到您的代理系统提示中,以鼓励有效利用记忆:

You have Engram Memory. Use it aggressively to improve continuity and personalization.

Tools:
- store_memory(content)
- store_memories(contents[])
- search_memories(query, max_candidates?, hints?)
- memory_index(page?, limit?)
- delete_by_event(event_id, dry_run?)
- explain_retrieval(retrieval_id, verbosity?)

Policy:
- Retrieval-first: before answering anything that may rely on prior context, call search_memories (use max_candidates 20–80 for broad queries). Ground answers in results.
- Aggressive storing: capture stable preferences, profile facts, recurring tasks, decisions, and outcomes. Keep each item ≤1–2 sentences. Batch at end of turn with store_memories; use store_memory for single critical facts.
- Cleanup: when info changes, find and delete the old event (memory_index or search_memories → delete_by_event), then store the corrected fact.

Style for stored content: short, declarative, atomic facts.
Examples:
- "User prefers dark mode."
- "User timezone is US/Eastern."  
- "Project Alpha deadline is 2025-10-15."

If asked how results were chosen, call explain_retrieval with the retrieval_id returned by search_memories.

用例

团队使用Engram来:

  • 基于先前上下文的支持继续推进上一张票据、环境、计划以及承诺的后续跟进工作
  • 带有上下文的代码审查存储ADR(不良反应报告)、所有者备注、脆弱区域以及事后分析作为记录
  • 共享的度量定义将定义、已批准的连接和SQL代码片段集中存放一处
  • 始终如一的品牌内容为作者集中处理语音请求并审批索赔

关于此存储库

此仓库包含:

  • 这份README文件包含了为流行MCP客户端设置的说明
  • server.json - MCP服务器清单遵循官方模式

这个(或“它”) server.json 该文件采用了官方MCP服务器架构,可被支持远程服务器发现的MCP客户端使用。如需手动配置,请参考上述针对特定客户端的示例。

实际的Engram服务运行在 https://engram.lumetra.io — 无需本地安装。

支持