
Memoir
io.github.bighippoman由 GitHub 账号 bighippoman 发布v1.0.3更新于 Oct 24, 2026
Structured session journals for AI agents. Persistent memory across sessions.
概览
Memoir 是一个本地 MCP 服务器,为 AI 代理保存结构化的会话日志,让新会话能接着上次的进度继续。
- 可以做什么
- 记录当前会话中尝试过的做法及其结果、阻塞点、阻塞解除情况和设计决策
- 以可选摘要结束当前会话
- 读取上一次会话的结构化交接:尝试了什么、卡在哪里、做了哪些决定
- 查询历史会话,并列出跨会话的未解决或已解决阻塞点
- 按 git 根目录自动划分项目范围,并按滚动保留策略清理旧会话
- 适用场景
- 适合长期进行的编码项目:每次新的代理会话原本都要从头开始,容易重复死路、失败方案或被遗忘的决定。也适合希望以轻量、本地方式记录尝试过程与原因的开发者。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 启动,因此需要 Node.js。无需 API 密钥或外部服务,数据保存在用户主目录下的单个 SQLite 文件中。可选环境变量 MEMOIR_MAX_CONTENT、MEMOIR_MAX_OUTCOME、MEMOIR_MAX_ENTRIES 和 MEMOIR_MAX_SESSIONS 用于调整长度限制与保留数量。
安装
在 SourceWeft 中
- 打开 控制台中的 Memoir,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
memoir-mcp
Structured session journals for AI agents. Persistent memory across sessions -- no more repeating dead ends.
When a session ends, all reasoning is lost -- what was tried, what failed, what's blocked. The next session starts from scratch and repeats the same mistakes. memoir logs it all and hands it off so the next session picks up where the last one left off.
Works with any MCP client: Claude Code, Cursor, Codex, Windsurf, and more.
[memoir-mcp MCP server]Install
Claude Code
Other MCP clients
How it works
- Automatic project detection -- identifies the project by its git root, so logs stay scoped without any configuration.
- Implicit sessions -- a session is created automatically on first log. No setup step.
- Rolling retention -- keeps the last 20 sessions per project (configurable). Old sessions are pruned automatically.
Tools
Write
Read
Storage
Single SQLite file at ~/.memoir/memoir.db. No API keys, no external services.
Configuration
All limits are configurable via environment variables:
Example with custom limits:
Handoff output uses a compact format to keep context window usage low.
License
MIT
来源:README.md,提交 7c31ada
工具
0版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分