
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 翻譯