
Memory Mcp
io.github.yuvalsuede由 GitHub 账号 yuvalsuede 发布v1.2.1更新于 Oct 24, 2026
Persistent memory + git snapshots for Claude Code. Never lose context or code.
发布方自己的服务:Memory.fit
概览
本地 MCP 服务器,为 Claude Code 提供持久化项目记忆和自动 git 快照,让上下文与代码跨会话保留。
- 可以做什么
- 按关键词、标签或领域搜索、召回和筛选已存储的项目记忆,并通过 LLM 综合回答基于记忆的问题。保存、删除和整合记忆,生成完整的意识文档和记忆统计。用名称和描述初始化项目的记忆库。管理整个项目的 git 快照:列出历史、比较快照并恢复到先前状态。显示上下文指标和 token 用量,可选生成 HTML 仪表盘。
- 适用场景
- 适合长期进行的 Claude Code 项目,尤其是需要反复解释架构、决策和约定的场景,或希望每次工作会话都留下回滚点的情况。最适合已在 git 仓库中工作、并希望记忆完全保存在本地文件的开发者。
- 运行要求
- 通过 npx 从 npm 包 claude-code-memory 在本地运行。需要 Claude Code CLI 和 Node.js 18 或更高版本。需要 Anthropic API 密钥供基于 Haiku 的提取器使用,从 ANTHROPIC_API_KEY 环境变量或本地配置文件读取。安装过程会配置 Claude Code 钩子并写入 CLAUDE.md、.memory/state.json 和 .mcp.json 等项目文件。
安装
在 SourceWeft 中
- 打开 控制台中的 Memory Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
memory-mcp
[npm version] [npm downloads] [License: MIT] [Node] [TypeScript]
Persistent memory + automatic git snapshots for Claude Code. Never lose context. Never lose code.
Why memory-mcp?
What makes it different
- Git Snapshots — Every memory save commits your entire project. Roll back anytime.
- Two-Tier Memory — CLAUDE.md loads instantly, deep store searchable mid-conversation.
- LLM-Powered — Haiku extracts what matters, consolidates duplicates, prunes stale info.
- Visual Dashboard — See your context: tokens, memories by type, snapshot history.
- Zero friction — No commands to run. It just works silently.
Quick Start
That's it. Start coding. Memories accumulate automatically.
How It Works
Two-tier memory architecture:
Silent capture via hooks:
Claude Code hooks fire after every response (Stop), before context compaction (PreCompact), and at session end (SessionEnd). A fast LLM (Haiku) reads the transcript and extracts:
- Architecture — how the system is structured
- Decisions — why X was chosen over Y
- Patterns — conventions and how things are done
- Gotchas — non-obvious pitfalls
- Progress — what's done, what's in flight
- Context — business context, deadlines, preferences
Smart memory management:
- Jaccard similarity deduplication (no duplicate memories)
- Confidence decay (progress fades after 7 days, context after 30)
- LLM-powered consolidation (merges overlapping memories, prunes stale ones)
- Line-budgeted CLAUDE.md (stays under ~150 lines, most important first)
Updating
To update an existing installation:
To update hooks (e.g., after a bug fix):
Requirements
- Claude Code CLI
- Node.js 18+
- Anthropic API key (for the Haiku-based extractor, ~$0.001 per extraction)
CLI Commands
Context Dashboard
Visualize your memory usage with memory-mcp context:
Use memory-mcp context --html to generate an interactive browser dashboard.
Git Snapshots
Automatic project versioning tied to your working sessions. Every memory extraction commits your entire project to a hidden branch.
How it works:
- Commits go to
__memory-snapshotsbranch (invisible in normal workflow) - Optional push to remote (e.g., origin)
- Commit messages include what memories were extracted
- Full project state captured, not just memory files
Use cases:
- Roll back after breaking changes
- See what your project looked like during a specific session
- Track project evolution alongside context evolution
MCP Tools (used by Claude mid-conversation)
When configured as an MCP server, Claude can access these tools during a session:
What Gets Stored
Memories are categorized into six types:
File Structure
After initialization, your project gets:
CLAUDE.md Format
The memory block is inserted between markers, preserving any existing CLAUDE.md content:
Global vs Per-Project Install
Global (recommended): hooks work for all projects automatically.
Per-project: hooks and MCP configured per project.
Configuration
API key is resolved in order:
ANTHROPIC_API_KEYenvironment variable~/.memory-mcp/config.json~/.config/anthropic/api_key~/.anthropic/api_key
Cost
The extractor uses Claude Haiku for memory extraction and consolidation. Typical cost:
- ~$0.001 per extraction (after each Claude response)
- ~$0.005 per consolidation (every ~10 extractions)
- A full day of coding: ~$0.05–0.10
License
MIT
来源:README.md,提交 c434710
工具
0版本历史
1- v1.2.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Memory 集成

Memory.fit
fit.memory官方发布者
托管式 Memory.fit 服务器,让 AI 读取你的训练、睡眠、恢复与饮食数据,并写回每周计划、每日目标和饮食计划。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方发布者
pg.ddx.io: the PostgreSQL community's memory 的托管 MCP 服务,由 pg.ddx.io 发布;无需登录;Streamable HTTP;29 个工具。
var.gg Naming Memory
gg.var官方发布者
远程 MCP 服务器,可根据领域概念推荐并检索韩、日、中、越、英多语言的代码标识符名称,并提供 ERD 结构查询。

Counterparts
ai.counterparts
面向 Claude Code 与 Claude Desktop 的本地优先长期记忆:助手自行写下关于你和项目的笔记,并在之后的会话中回忆起来。

LAHZE - Persian AI Memory Platform
由 GitHub 账号 pedramgholizadeh 发布
以波斯语为先的地理记忆平台:发现地点,起草并发布仅限波斯语的记忆。AI 翻译