Delx Memory

io.github.davidmosiah由 GitHub 帳號 davidmosiah 發布v0.2.3更新於 Oct 24, 2026

Local-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware, secret-safe

發布方自己的服務:Memory.fit

已驗證STDIO僅桌面資料庫知識與記憶

概覽

AI 產生的概覽

本機優先的記憶伺服器,為任意 MCP 用戶端提供共用、可搜尋的 SQLite 鍵值儲存,讓上下文跨工作階段、跨工具保留。

可以做什麼
工作階段啟動與儲存檢查:恢復簡報、就緒狀態、統計、能力與資料清單,以及供代理使用的安裝約定。讀取記憶:依前綴、標籤或時間列出鍵,讀取單一鍵或最多 50 個批次鍵,並以 bm25 排序做全文搜尋。寫入記憶:在單一交易中新增或更新一個鍵或最多 50 個鍵,需明確使用者意圖旗標。刪除記憶:刪除單一鍵或某個標籤下的全部鍵。匯出儲存為 JSON、JSONL 或 Markdown。
適用情境
適合希望偏好、專案筆記或交接上下文能在新對話中保留,並在同一台機器的不同 MCP 用戶端之間共用,同時不把資料送到雲端記憶服務的情況。它是具全文搜尋的鍵值儲存,不是向量資料庫,也不是密鑰管理器。
執行需求
透過 npm 套件 delx-memory 以 stdio 在本機執行(需要 Node.js 與 npx,或全域安裝)。選用 HTTP 模式使用 DELX_MEMORY_TRANSPORT、DELX_MEMORY_HOST、DELX_MEMORY_PORT 和 DELX_MEMORY_ALLOWED_ORIGIN。SQLite 檔案位置可用 DELX_MEMORY_PATH 設定,預設位於使用者家目錄下的點檔案。未宣告需要帳號或 API 金鑰。
安裝前請注意
寫入和刪除會改變已儲存的上下文;變更僅在呼叫方傳入 explicit_user_intent 時執行,請檢查這類呼叫。伺服器會拒絕形似憑證的鍵和值,但它不是密鑰管理器,同一台機器上的其他使用者可能讀取資料庫檔案。TTL 過期是惰性處理,釋放的頁面可能仍留在磁碟上,且沒有持久性保證,請備份該檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Delx Memory,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

delx-memory

Local-first persistent memory MCP server. One shared SQLite store any MCP-speaking agent (Claude Desktop, Cursor, Hermes, OpenClaw, Codex) can read and write — so context survives across sessions AND across tools.

[npm version] [GitHub Release] [npm downloads] [status: beta] [license: MIT] [node: >=20] [Verified Release Index]

Why

Every chat client has its own ephemeral context. Quit the tab → preferences gone. Switch from Claude Desktop to Cursor → starting from scratch. Pin a side project in Hermes → invisible to the next agent.

delx-memory is a tiny MCP server that exposes a single shared SQLite file as a key/value memory layer. Any client that speaks MCP can read and write the same memory file → real continuity, real cross-tool context.

  • 15 tools — discovery + handoff + batch ops + FTS5 search + mutations gated by intent.
  • SQLite at ~/.delx-memory/db.sqlite (0700 dir, 0600 file).
  • Secret-blocking: refuses to store credential-shaped keys or values.
  • TTL support (lazy expiry on read).
  • Tags + prefix filters + FTS5 full-text search (bm25 ranking, stemming, diacritic folding; LIKE fallback if FTS5 is unavailable).
  • Mutations require explicit_user_intent: true so over-eager agents can't silently rewrite your context.
  • Zero telemetry. Zero phone-home. The file is yours.

Multi-agent namespaces

bash
# Agent ADELX_MEMORY_NAMESPACE=claude npx -y delx-memory
# Agent B (same machine, isolated keys)DELX_MEMORY_NAMESPACE=cursor npx -y delx-memory

Keys are stored as namespace::key. Omit the env var for a single global store (default).

Footprint / lightweight mode

  • Default transport is lite: tools-only MCP over stdio without loading the MCP SDK (biggest RSS win for always-on agents).
  • Full SDK surface (prompts + resources): delx-memory --sdk or DELX_MEMORY_TRANSPORT=sdk.
  • Optional HTTP: delx-memory --http (Express + SDK; still loopback by default).
  • DELX_MEMORY_LEAN=1 applies to the SDK path only (skip prompts/resources).
  • doctor --json reports rss_kb. Dominant remaining cost is Node + native better-sqlite3 (no embeddings).

Community measurements (custom transport vs SDK) pointed at the SDK tree as the main overhead — see issue #7.

Install + run

bash
# Run once (npx will download + boot)npx -y delx-memory doctor
# Or install globallynpm install -g delx-memorydelx-memory doctor

The doctor command checks Node version, DB writability, and file permissions, then prints next steps.


HTTP (v2 stateless)

Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:

bash
npx -y delx-memory --http# GET  http://127.0.0.1:3030/health# POST http://127.0.0.1:3030/mcp   (sessionless)

Env: DELX_MEMORY_HOST, DELX_MEMORY_PORT, DELX_MEMORY_TRANSPORT=http.

Wire it into your MCP client

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "delx-memory": {      "command": "npx",      "args": ["-y", "delx-memory"]    }  }}

Then restart Claude Desktop. See examples/claude-desktop.json.

Cursor

Add to ~/.cursor/mcp.json. See examples/cursor.json.

Hermes

See examples/hermes.md.

OpenClaw

See examples/openclaw.md.

Codex CLI

See examples/codex.toml.


What makes it different (honest)

delx-memoryTypical cloud memoryGraph memory MCP
Data leaves your machineNoYesUsually no
Multi-client same storeYes (one SQLite)Account-boundProcess-local
Agent mutation safetyexplicit_user_intentVariesRare
Secret storageHard-refusedOften allowedOften allowed
Default RSS pathLite (no MCP SDK)N/AFull stack
Multi-agent isolationDELX_MEMORY_NAMESPACETenantsManual
SearchFTS5 bm25Embeddings (cost/leak)Graph walk

Not a vector DB. Not a second brain SaaS. Local continuity for agents that already have a model.

Tools (15)

Session start

ToolPurpose
memory_handoffOne-call resume brief: stats + recent keys (optional values). Prefer this at session start.
memory_agent_manifestMachine install/ops contract for agents.
memory_connection_status / memory_statsReadiness + store size.
memory_capabilities / memory_data_inventorySelf-description for agents.

Reads

ToolPurpose
memory_listKeys only; filters: prefix, tag, since (delta sync).
memory_get / memory_get_manyExact key or batch (max 50).
memory_searchFTS5 bm25 (+ LIKE fallback). See search quickstart.

Mutations (require explicit_user_intent: true)

ToolPurpose
memory_set / memory_set_batchUpsert one key or up to 50 in one transaction.
memory_forget / memory_forget_by_tagDelete one key or by tag.
memory_exportDump JSON / JSONL / Markdown.

Every mutation refuses to run unless the caller passes explicit_user_intent: true. The intent: an agent that decides on its own to update memory must show its work. The user can see the flag in the tool call and reject it if they didn't ask.


Privacy contract (read this)

delx-memory is NOT a secrets manager. Use macOS Keychain / gnome-keyring / Windows Credential Manager for those.

What we refuse to store:

  • Keys matching: oauth, token, secret, password, cookie, refresh, api_key, api-key, apikey, bearer, credential, session_id (case-insensitive).
  • Values matching credential shapes:
    • JWT tokens (eyJ…)
    • Bearer <token> headers
    • Stripe sk_live_… / sk_test_…
    • Slack xoxb-… / xoxp-… / etc.
    • GitHub github_pat_… / ghp_… / gho_… / ghs_… / ghr_…
    • OpenAI / Anthropic sk-… (with realistic length)
    • AWS access keys AKIA…
    • Authorization: <scheme> <token> strings
  • Nested objects are walked recursively — a nested field named refresh_token (even with an empty value) is rejected.

What stays local:

  • The DB file lives at ~/.delx-memory/db.sqlite.
  • Directory is created with mode 0700; file with mode 0600. (Best effort on Windows / WSL / non-POSIX filesystems.)
  • Nothing is uploaded. No telemetry. No phone-home.

What we do NOT promise:

  • Other users of the same machine (root, your sudo-using housemate) can read the file. Use full-disk encryption (FileVault, BitLocker, LUKS) if that matters.
  • TTL is best-effort. Expired rows are deleted lazily on next read; SQLite doesn't VACUUM automatically, so freed pages may sit on disk. For sensitive ephemera, treat the DB file like any other unencrypted dotfile.
  • No durability promise. Back up ~/.delx-memory/db.sqlite like any other dotfile if you care about losing it.

Example session

agent> memory_stats({})→ { total_keys: 0, db_path: "/Users/me/.delx-memory/db.sqlite", … }
user> Remember that I prefer concise responses in pt-BR.
agent> memory_set({  key: "user_preferences",  value: { language: "pt-BR", verbosity: "concise" },  tags: ["profile", "preferences"],  explicit_user_intent: true})→ { action: "created", key: "user_preferences", … }
# … new chat, possibly different tool …
agent> memory_list({ tag: "preferences" })→ [{ key: "user_preferences", updated_at: … }]
agent> memory_get({ key: "user_preferences" })→ { found: true, value: { language: "pt-BR", verbosity: "concise" } }

Storage layout

Default path~/.delx-memory/db.sqlite
OverrideDELX_MEMORY_PATH env var
Directory mode0700
File mode0600
Schemamemory(key PRIMARY KEY, value, created_at, updated_at, ttl_expires_at, tags, metadata)
Indexespartial index on ttl_expires_at, plus tags, updated_at
Per-value cap64 KB (JSON-serialized)
Per-key cap512 chars

CLI

delx-memory                Start MCP stdio serverdelx-memory --http         Start local HTTP MCP server (127.0.0.1:3030)delx-memory setup          Print MCP client config snippetsdelx-memory setup --json   Print as JSONdelx-memory doctor         Health check + next stepsdelx-memory doctor --json  Health check as JSONdelx-memory version        Print version

Environment

VarDefaultPurpose
DELX_MEMORY_PATH~/.delx-memory/db.sqliteDB file location
DELX_MEMORY_TRANSPORTstdiostdio or http
DELX_MEMORY_HOST127.0.0.1HTTP host
DELX_MEMORY_PORT3030HTTP port
DELX_MEMORY_ALLOWED_ORIGINhttp://HOST:PORTCORS origin

Development

bash
git clone https://github.com/davidmosiah/delx-memorycd delx-memorynpm installnpm test         # typecheck + build + smoke + secret-detector + ttl + tag-delete + metadata

See AGENTS.md for repo conventions, SECURITY.md for the security model and reporting policy, and CONTRIBUTING.md for PR rules.


License

MIT © 2026 David Batista. Code of Conduct.

Skill or MCP

Same package, two doors. MCP registers tools on stdio/HTTP. The skill can drive the same tools through the CLI when the client has no MCP:

bash
npx -y delx-memory call memory_connection_status --json '{}'

Copy skill/SKILL.md into your agent skills dir.

來源:README.md,提交 71db5b6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Memory 整合