
remem-mcp — Local-first MCP Memory + CodeGraph + Wiki
io.github.tinhien11由 GitHub 帳號 tinhien11 發布v0.5.18更新於 Oct 24, 2026
Local-first memory for AI coding agents. Memory + CodeGraph + Wiki in one SQLite file.
概覽
為 AI 程式設計助理打造的本地優先記憶伺服器,把記憶、程式碼結構與 wiki 筆記存放在同一個 SQLite 檔案中,並在跨工作階段時重新注入。
- 可以做什麼
- 記憶的召回與擷取:把過往錯誤、決策與偏好注入助理上下文,在上下文壓縮後仍保留,並於工作階段結束時自動擷取、歸納,支援衰減與遺忘。以 tree-sitter 建立程式碼圖譜,索引九種語言的符號、呼叫與匯入,可搜尋符號、找出呼叫端並評估影響範圍,取代 grep。維護 wiki 筆記並記錄回饋,搭配關鍵字、向量與實體混合檢索以及共現記憶連結。把記憶匯出為 JSONL 檔案,經 git 供團隊共享,並透過本機網頁檢視器、錯誤面板與狀態指令檢查運作情況。
- 適用情境
- 適合使用 Claude Code、Cursor、Codex 等程式設計助理、希望助理跨工作階段與上下文壓縮後仍記得過往錯誤與專案上下文的開發者,也適合需要結構化程式碼導覽但不想使用雲端服務或 API 金鑰的人。
- 執行需求
- 以本機 stdio 程序執行,透過 npx 從 npm 套件 remem-mcp 安裝;需要 Node.js 與本機 SQLite 檔案。無需 API 金鑰、雲端帳號或資料庫伺服器。選用環境變數可設定資料庫路徑、跨專案記憶鍵、統一流程與靜默模式,也可加入選用設定檔與各儲存庫的忽略檔。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 remem-mcp — Local-first MCP Memory + CodeGraph + Wiki,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
remem-mcp
[npm version] [GitHub stars] [License: MIT] [Benchmark]
Your coding agent stops repeating the same mistakes.
Local-first memory that survives context compaction. Learns from every error, injects fixes before the next attempt, and syncs to your git repo so your whole team shares it.
No API key. No cloud. No database server. Just a SQLite file.
Install
Auto-detects ZCode, Claude Code, Cursor, Devin, Codex. Registers MCP server + hooks.
Quick start
- Restart your agent (quit and reopen)
- Ask: "what do you remember?"
- If agent recalls past context = memory working
In your agent, you can say:
- "index the code in src" → CodeGraph indexes symbols
- "find who calls function X" → caller analysis
- "what do you remember?" → recall past context
What happens automatically
You don't run any commands. The agent calls recall() before answering and capture() after work — the skill tells it to.
How it works
No LLM API key needed — rule-based extraction + keyword grouping.
CodeGraph
Structural code indexing via tree-sitter. The agent uses codegraph_search instead of grep to find symbols.
9 languages: TS/JS/Python/Go/Rust/Java/C/C++/C#. 6-strategy call resolution (import-map → same-module → unique-name → suffix → fuzzy). Stdlib calls filtered out.
Why it's different
Useful commands
Configuration
All settings have defaults. Config file is optional: ~/.config/remem-mcp/config.json.
Global memory policy — set REMEM_GLOBAL_SESSION_KEY to read cross-project memory automatically. Captures stay project-local unless the user explicitly asks to save globally; then use session_key: "global". Do not auto-classify ordinary captures into global.
Team sharing — npx remem-mcp sync-export writes .remem-mcp/memory-export.jsonl. Commit it to git. Team members get the same memory on git pull.
Per-repo capture exclusions — Drop a .remem.toml in any project root:
Benchmark
Architecture
See ARCHITECTURE.md for full system diagrams, schema, and performance details.
Credits
Core based on TencentDB Agent Memory (MIT, Tencent 2026). CodeGraph call resolution adapted from Codebase-Memory (arXiv:2603.27277). Recall boost adapted from ai-memory by Akita On Rails. Contextual retrieval from Anthropic (2024).
License
MIT. See LICENSE.
來源:README.md,提交 7590cec
工具
0版本歷史
1- v0.5.18最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Remem 整合
Remember Me – Bible Verse Collections
me.remem官方發布者
瀏覽 48 種語言的已發布聖經經文合集,查看經文、出處、主題以及社群背誦資料。
Remember Me – Bible Memory
me.remem官方發布者
將 AI 助理連接到 Remember Me 聖經背誦應用程式,可新增經文、依間隔重複進行測驗,並跟隨每日讀經計畫。

Remem
由 GitHub 帳號 majiayu000 發布
本地優先的記憶伺服器,跨 Claude Code 與 Codex 工作階段自動擷取、提煉並召回工程脈絡,資料存於加密 SQLite。