
Shodh Memory
io.github.varun29ankuS由 GitHub 帳號 varun29ankuS 發布v0.2.0更新於 Oct 24, 2026
Cognitive memory for AI agents — semantic search, Hebbian learning, knowledge graphs.
發布方自己的服務:Memory.fit
概覽
給 AI 代理用的本機持久記憶伺服器:儲存、語意搜尋與管理記憶,另附 GTD 待辦、專案與提醒。
- 可以做什麼
- 儲存、語意搜尋、讀取、列出與刪除記憶,支援依標籤與日期搜尋、主動浮現相關脈絡及工作階段脈絡摘要
- 以知識圖譜組織記憶,具備 Hebbian 關聯強化、衰減、整併與內容雜湊去重
- 建立、更新、完成、排序與刪除 GTD 待辦、子任務與留言,並檢視待辦統計
- 將待辦歸入專案,支援子專案、封存與刪除
- 設定依時間、時長或關鍵字觸發的提醒,並列出或略過提醒
- 檢查記憶與索引健康、檢視整併報告、統計 token 用量,以及建立、驗證、還原與清除備份
- 適用情境
- 適合希望助手在本機跨工作階段記住偏好、專案背景與過去決策,同時維護一份輕量任務與提醒清單的情境。
- 執行需求
- 透過 npx(Node.js)在本機執行,首次啟動會自動下載原生後端二進位檔(約 15MB)與嵌入模型(約 23MB),需放寬啟動逾時。需要 SHODH_API_KEY 密鑰。選用設定包括 SHODH_API_URL(預設本機 HTTP 位址)、SHODH_USER_ID 以及 SHODH_IPC_ENDPOINT 等 IPC 選項。支援 Linux x64、macOS x64/ARM64 與 Windows x64。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Shodh Memory,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Shodh-Memory MCP Server
Persistent cognitive memory for AI agents
Documentation | GitHub | Python SDK | Rust Crate
Features
- Cognitive Architecture: 3-tier memory (working, session, long-term) based on Cowan's model
- Hebbian Learning: "Neurons that fire together wire together" - associations strengthen with use
- Semantic Search: Find memories by meaning using MiniLM-L6 embeddings
- Knowledge Graph: Entity extraction and relationship tracking
- Memory Consolidation: Automatic decay, replay, and strengthening
- Idempotent: Content-hash dedup — identical memories are never stored twice
- 1-Click Install: Auto-downloads native server binary for your platform
- Offline-First: All models auto-downloaded on first run (~38MB total), no internet required after
- Fast: <200ms API response, sub-millisecond graph lookup, 30-50ms semantic search
- GTD Task Management: Full todo system with projects, subtasks, comments, and reminders
Installation
Add to your MCP client config:
Claude Desktop / Claude Code (claude_desktop_config.json):
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Codex CLI (.codex/config.toml):
By default the MCP server talks to the backend over HTTP, which works on every
platform. To route ordinary requests over authenticated local IPC instead, add
SHODH_IPC_ENDPOINT with a platform-appropriate value. On Windows, use the
per-user named pipe printed by the server (normally
\\.\pipe\shodh-memory-<current-user-SID>); on macOS/Linux, use its absolute Unix
socket path (under the platform data directory at shodh/shodh-memory.sock by
default). A \\.\pipe\... value on macOS/Linux is rejected rather than silently
forwarded to the spawned backend. The auto-spawn path passes an explicitly
configured endpoint to the backend so both processes use the same value.
Note: First run downloads the server binary (~15MB) plus embedding model (~23MB). The
startup_timeout_sec = 60ensures enough time for initial setup.
For Cursor/other MCP clients: Similar configuration with the npx command.
Environment Variables
Local IPC
When SHODH_IPC_ENDPOINT is set, tool calls, proactive surfacing, health checks,
resources, and prompts use local IPC. Each call opens one local connection and
exchanges one versioned, newline-delimited JSON request and response. Frames are
limited to eight MiB. An empty-auth health challenge first proves the endpoint
knows the configured key. Ordinary requests then use HMAC proofs bound to that
server instance and request body; the reusable API key is never sent over IPC or
written to MCP stdout.
Streaming ingestion remains a WebSocket feature. It is disabled by default in
IPC mode because the local protocol is finite request/response. To enable it
explicitly, set SHODH_STREAM_WEBSOCKET=true and configure SHODH_API_URL for
the server's HTTP WebSocket endpoint. Ordinary operations continue to use IPC.
If SHODH_IPC_ENDPOINT is absent, the MCP server preserves its existing HTTP
and WebSocket behavior. When the variable is present, it is an explicit transport
selection: an unavailable IPC endpoint is reported rather than silently retried
over HTTP.
SHODH_USER_ID remains a logical namespace, as it is over REST. A configured API
key has authority across namespaces. Use separate server/key instances when
mutually untrusted tenants require an authorization boundary.
MCP Tools (51 total)
Memory — Store, search, and manage memories
Memory previews and truncation.
recall,recall_by_tags, andproactive_contextreturn previews of each memory body (default cap: 500 characters). When a body is longer than the cap, the output is truncated with an explicit, honest marker that reports the real lengths and the follow-up call, e.g.…[truncated 500/2340 chars — read_memory("<id>") for full]. A preview is never silently cut off — the absence of a marker means you are seeing the complete body. To get complete bodies inline (no markers), passfull_content: trueon any of those three tools; this increases token usage, so prefer it for small result sets.read_memoryalways returns the full, untruncated content.
Todos (GTD) — Task management with projects and subtasks
Projects — Organize todos into groups
Reminders — Time, duration, and context-triggered reminders
System — Health, backups, and diagnostics
REST API (for Developers)
The server exposes a REST API at http://127.0.0.1:3030:
Key Endpoints
Cognitive Features
Hebbian Learning
Memories that are frequently accessed together form stronger associations. The system automatically:
- Forms edges between co-retrieved memories
- Strengthens connections with repeated co-activation
- Enables Long-Term Potentiation (LTP) for permanent associations
Memory Consolidation
Background processes maintain memory health:
- Decay: Unused memories gradually lose activation
- Replay: High-value memories are periodically replayed
- Pruning: Weak associations are removed
- Promotion: Important memories move to long-term storage
3-Tier Architecture
Based on Cowan's working memory model:
- Working Memory: Recent, highly active memories
- Session Memory: Current session context
- Long-Term Memory: Persistent storage with vector indexing
How It Works
- Install:
npx -y @shodh/memory-mcpdownloads the package - Auto-spawn: On first run, downloads the native server binary (~15MB) and embedding model (~23MB)
- Connect: MCP client connects to this MCP server via stdio; backend requests
use local IPC when
SHODH_IPC_ENDPOINTis set, otherwise HTTP - Ready: Start using
rememberandrecalltools - Session end: when the host closes stdin (e.g. a Claude Desktop thread switch), the shim finishes any in-flight tool call and writes its response to the still-open stdout before exiting, so a mid-flight request is never silently dropped. Draining is bounded by a grace window; if it elapses the caller receives an explicit error instead of waiting out the host timeout.
The backend server runs locally and stores all data on your machine. No cloud dependency.
Usage Examples
Platform Support
Related Packages
- Python SDK:
pip install shodh-memory- Native Python bindings - Rust Crate:
cargo add shodh-memory- Use as a library
Links
License
Apache-2.0
來源:mcp-server/README.md,提交 902daf8
工具
0版本歷史
1- v0.2.0最新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 翻譯