
Memory Fts
io.github.kurovu146由 GitHub 帳號 kurovu146 發布v1.0.1更新於 Oct 24, 2026
Long-term memory for Claude Code with SQLite FTS5 search and BM25 ranking
發布方自己的服務:Memory.fit
概覽
為 Claude Code 提供本機長期記憶的伺服器,將事實存入 SQLite 資料庫,並以關鍵字與語意混合檢索取回。
- 可以做什麼
- 將事實存入長期記憶,可標註偏好、決策、技術、專案等類別
- 以 FTS5 關鍵字與語意向量混合檢索記憶,透過排名融合合併,並支援子字串回退
- 依 ID 更新記憶內容或類別、依類別列出記憶,並依 ID 刪除記憶
- 提供記憶情境資源,依存取頻率、時效與類別權重回傳最重要的 30 筆事實
- 可選擇透過 Claude Code 掛鉤,將最重要的記憶自動注入每次提示
- 適用情境
- 適合希望 Claude Code 跨工作階段記住偏好、決策與專案細節、且不依賴雲端服務的情境,並能依語意而非精確措辭回想內容。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 與 npx。不需帳號或 API 金鑰。資料預設存於 ~/.claude/memory.db 的 SQLite 檔案,可用環境變數 MEMORY_DB_PATH 變更。選用的掛鉤安裝會寫入指令碼並修改 ~/.claude/settings.json。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Memory Fts,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
claude-memory-fts
Long-term memory MCP server for Claude Code. Stores facts in a local SQLite database with hybrid search (FTS5 + semantic vector similarity) and automatic context injection.
Features
- Hybrid search — FTS5 keyword search + semantic vector similarity, merged via Reciprocal Rank Fusion (RRF)
- Semantic understanding — find memories by meaning, not just keywords (powered by all-MiniLM-L6-v2 embeddings)
- Auto context injection — top 30 most important memories injected into every prompt via hook
- Importance ranking — facts ranked by access frequency, recency decay, and category weight
- Access tracking — tracks how often each memory is accessed
- Upsert — automatically updates existing facts instead of duplicating
- Categorized — organize by type: preference, decision, technical, project, workflow, personal, general
- MCP Resources — exposes
memory://contextresource for session context - Zero config — works out of the box, stores data in
~/.claude/memory.db
Install
The --setup-hook command automatically:
- Creates
~/.claude/scripts/memory-context.sh - Adds a
UserPromptSubmithook to~/.claude/settings.json - Top 30 memories are injected into every prompt automatically
CLI Commands
Configuration
Example with custom path:
Tools
memory_save
Save a fact to long-term memory.
memory_search
Hybrid search: runs FTS5 and semantic search in parallel, merges results with RRF. Falls back to LIKE for partial matches.
memory_update
Update a memory's content or category by ID.
memory_list
List all saved memories grouped by category.
memory_delete
Delete a memory by ID.
Resources
memory://context
MCP resource exposing top 30 facts ranked by importance score:
- Access frequency — frequently accessed facts score higher (capped at 20 points)
- Recency — recently updated facts score higher (10 points, decays over 90 days)
- Category weight — preference/decision (3), workflow/technical (2), project/personal (1), general (0)
How It Works
Search Pipeline
- FTS5 + BM25 and semantic vector similarity run in parallel
- Results are merged and deduplicated using Reciprocal Rank Fusion (k=60)
- Facts appearing in both lists get naturally boosted
- If both return empty, falls back to LIKE substring matching
- Access count is tracked on every search hit
Embeddings
- Model: all-MiniLM-L6-v2 (384 dimensions, ~23MB)
- Generated locally via
@xenova/transformers— no API calls, no data leaves your machine - Embeddings are created on save and backfilled on server startup
- Cosine similarity with 0.3 threshold to filter noise
Storage
- SQLite with WAL mode for fast concurrent reads/writes
- FTS5 virtual table synced via triggers for real-time full-text indexing
- Embeddings stored as BLOB columns alongside facts
Development
License
MIT
來源:README.md,提交 975f9eb
工具
0版本歷史
1- v1.0.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 翻譯