
Mnemodb
dev.mnemodb由 mnemodb.dev 發布v0.1.22更新於 Oct 26, 2026
Persistent agent memory as plain Markdown in your repo - readable, diffable, with provenance.
概覽
為 AI 助理提供存放在程式碼倉庫中的純 Markdown 持久記憶庫,支援回想、記錄、遺忘與稽核。
- 可以做什麼
- 回想、列出、檢視記憶項目,並追溯其取代歷程與儲存統計。
- 儲存附來源標註的新記憶,將項目固定進上下文,並審閱與壓縮儲存。
- 以可稽核、受信任層級約束的方式遺忘記憶,且不會刪除信任層級較高的項目。
- 載入工作階段啟動時的記憶集合,所有內容以可讀的 .mem.md 檔案保存,便於 git 差異比對。
- 適用情境
- 當你希望助理在多次工作階段中自行維護記憶而不至於腐化、需要跨多個 AI 工具共用同一份記憶,或需要稽核並信任記憶內容時適用。若一份手動維護的簡短 CLAUDE.md 已夠用,則可能沒有必要。
- 執行需求
- 透過 npm 套件 @mnemodb/mcp(npx)以 stdio 在本機執行,需要 Node.js。儲存位置由環境變數 MNEMO_STORE 指定,未設定時依序使用 CLAUDE_PROJECT_DIR 與工作目錄;空值會被拒絕。未宣告帳號或 API 金鑰。僅支援桌面端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mnemodb,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
MnemoDB
A structured, portable, auditable memory format for AI agents — a database whose files you can read.
What it is
MnemoDB is a plain-text, Markdown-compatible file format (.mem.md) for the
persistent memory of AI agents, plus the engine and tooling around it. A memory
is just a Markdown heading with a one-line metadata span:
It renders in any Markdown viewer, diffs cleanly in git, you can hand-edit it —
and a program can read every field with no ambiguity. Every existing
CLAUDE.md / AGENTS.md is already a valid (untyped) MnemoDB file, so adoption
requires renaming nothing and migrating nothing.
Why — and how it relates to memory you may already have
AI agents already have some memory. CLAUDE.md loads a flat file into context
every session. Claude's memory tool
gives the model a /memories folder and lets it organize files however it
likes. Both work. MnemoDB is not trying to replace them — it's the structure
and discipline they don't provide.
The difference is philosophy. "Give the model a folder and trust it to organize" is simple and often good enough. MnemoDB is the opposite bet: a defined format with real guarantees. That buys you four things a free-form folder or a flat file doesn't:
- Lifecycle, not sprawl. Typed entries with TTLs, supersession, and a
compactpass that archives what's expired or replaced. A flat memory file only grows and eventually rots; MnemoDB can forget on purpose, auditably. - Provenance and a trust model. Every memory records where it came from —
user,agent, ortool. When the agent saves anything it took from tool output or a web page — copied or paraphrased — it labels ittool: that entry is flaggeduntrustedon recall, can't be pinned into every session, and can't supersede or retire a trusted one. The limits, stated plainly: the agent applies the label itself, so it catches honest mistakes, not an injection that leaves it off; and the agent never writesuser— entries you write into a.mem.mdfile yourself are the ones it can't forget. - Containment when something does go wrong. Because provenance is on every
entry,
mnemo trace toollists everything saved from tool output — the question a provenance-free folder can't answer at all. The plugin records plaintool, so this shows all tool-sourced memory together, not one source at a time; a suffix such astool/session-abc, on entries you hand-edit or import, narrows it further. An optionalowner:records who is accountable for a memory, as distinct from where it came from;doctorflags decisions without one, but only once a store actually uses owners. - Portability. The same files work across Claude Code, Cursor, and any MCP client. Your agent's accumulated knowledge isn't locked to one vendor or tool.
- Auditability. It's readable Markdown in your git repo.
git diffshows exactly what your agent learned or changed — no opaque database, no cloud dashboard.mnemo doctorlints for staleness, contradictions, and damage.
And the tools are memory-semantic, not raw file ops. A generic memory tool gives the model create/delete/replace on a folder; MnemoDB gives it operations that understand the structure — inspect an entry's full history, ask the store to report on itself, forget something auditably and recoverably (and never erase a higher-trust memory), or change what loads into context — each with the trust and lifecycle rules built in.
When MnemoDB is worth it: you want the agent to maintain memory itself
across many sessions without it decaying, you work across more than one AI tool,
or you need to audit and trust what's in memory. When it's probably overkill:
a short CLAUDE.md you curate by hand already does the job. We'd rather tell you
that up front.
How to use it
Easiest — the Claude Code plugin (bundles the MCP server, a skill that teaches the agent when to recall/remember, and a session-start hook, so it works with no config to paste):
The .memory/ folder appears in your project the moment the agent remembers
something (just say "remember that we use pnpm"). Want it scaffolded up front
— e.g. to commit an empty store or migrate a CLAUDE.md? npx @mnemodb/cli init
is optional and does that.
Manual — just the MCP server (you add the usage instruction yourself):
Full walkthrough: docs/USAGE.md.
What's in this repo
spec/SPEC-v0.1.md— the format specification (CC BY 4.0)packages/core—@mnemodb/core: parse, serialize, index, resolve, lifecycle, merge, validate (TypeScript, zero runtime deps, Apache-2.0)packages/cli— themnemoCLI:init,list,show,doctor,compact,migrate,tracepackages/mcp—@mnemodb/mcp: the memory engine as an MCP server for Claude Code, Cursor, and any MCP client. 11 memory-semantic tools — things a plain memory folder can't do:memory_recall,memory_list,memory_show,memory_history(supersession lineage),memory_stats(the store's self-report),memory_remember,memory_forget(auditable, trust-gated),memory_pin(context-budget control),memory_review,memory_compact,memory_bootexamples/trust-model-demo.mjs— a runnable demo of the engine's trust rules: once a memory is labelledtool, it can neither supersede nor forget one you wrote. The one thing a provenance-free memory folder can't do. Run it:node examples/trust-model-demo.mjsspec/AUDIT-2026-08-10.md— the adversarial security auditfixtures/— conformance corpus;dogfood/is MnemoDB's own real memory store, kept in MnemoDB format since day one
Status
v0.1 — early. Real feedback wanted, not stars. Published to npm; security- hardened by an adversarial audit; enforced as a ship gate on every release. If you try it, the useful questions are: did it ever recall something genuinely helpful, did it get in your way, and did you trust — and ever actually open — the files? Open an issue with honest notes.
Where it's headed: ROADMAP.md — priorities are driven by feedback, so if something there (or not there) matters to you, say so in an issue.
License: Apache-2.0 (code), CC BY 4.0 (spec). See CHANGELOG.md.
來源:README.md,提交 94c9b49
工具
0版本歷史
3- v0.1.22最新Oct 19, 2026
- v0.1.21Oct 13, 2026
- v0.1.20Sep 27, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分