
Mushroomdb
io.github.MatthewSherlin由 GitHub 帳號 MatthewSherlin 發布v0.10.5更新於 Nov 7, 2026
Embedded graph database for agents: declare association rules once, edges maintain themselves.
概覽
透過 MCP 曝露的嵌入式圖資料庫,讓助理查詢實體關聯、解釋關聯原因,並保存代理記憶。
- 可以做什麼
- 用 Cypher 查詢與走訪圖,支援全文與向量搜尋
- 解釋關聯:說明連接兩個實體的規則、分數與共同取值
- 查看過去某日期或提交時的邊,並用 what-if 預覽變更影響
- 透過 remember、recall、forget 存取代理記憶
- 依角色限定讀取範圍,讓不同呼叫者只看到各自可見的資料
- 適用情境
- 適合需要持久、可查詢的實體關聯圖,或需要能解釋關聯原因的本地記憶儲存的場景。也適合依權限回傳不同結果的檢索情境。
- 執行需求
- 以 stdio 在本機執行,透過 npx(npm 套件 mushroomdb)或 cargo 安裝。安裝指令會偵測 Claude Code 或 Cursor,也可指定平台參數。嵌入式模式只需磁碟目錄;伺服器模式使用 Docker 並需權杖。離線範例不需帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mushroomdb,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mushroomdb
The graph that stays true — and knows who's allowed to see it.
A graph database you embed in your process or run as a server. Cypher, the Bolt protocol, transactions, full-text and vector search, and a history you can query as of any commit.
You declare a relationship as a rule, once. Every write after that derives the matching edges, scores them, and retracts them when they stop being true, and each edge can say why it exists. Embedded, it is a directory on disk: no account and no server to run.
Pre-1.0 alpha — APIs and formats may change between minor versions.
Documentation · Quickstart · Changelog
Install
install detects Claude Code or Cursor. For Codex, or if neither is set up yet, add
--platform codex, claude-code, cursor or all.
There is also a Claude Code plugin and a cargo install. The
Install page has a row for each, and says what each one leaves out.
Try it
demo writes 60 nodes and seven rules. Nobody inserted either of those edges: the rules derived
them, and each one says which rule, at what score, on which values.
Same question, two answers
An AI assistant should only retrieve what the person asking may see. Bind the role to the handle, and vector search and graph walks both obey it, so your app has no filtering step to forget:
Revoke a document with one write and the next read no longer returns it. The whole script runs
offline with no API keys: examples/permissioned-assistant.
Not building with AI? examples/team-matching matches people to projects
with one rule, using the same engine.
Run it as a server
The Docker image starts HTTP on port 8080. A non-loopback bind requires a token:
To also listen for Bolt-protocol drivers, pass --bolt-port. 7687 is the port drivers use when
a URI names none:
Both listeners confirm on stdout:
In a container the server binds a wildcard address, so Bolt also needs
--bolt-advertised-host. Bolt has the full command.
Without a Bolt driver, run a Cypher query over HTTP. The image starts with the demo graph:
Deployment and self-hosting covers persistent volumes, TLS, access keys, S3 backup, and templates for Fly, Render, Railway, Compose and Kubernetes.
A relationship is a rule
An edge is a schema declaration. "Connect every Person to every Org whose skills overlap
theirs by at least half" is written once:
From then on every insert and every property change evaluates the rule incrementally. The engine writes the edge, stores the score, and retracts the edge in the same write that makes it untrue. There is no re-index step and no batch job.
Six kinds of predicate ship — key match, field equality, list overlap, numeric distance, geographic
radius and vector similarity — and they compose with All and Any.
Rules has each one with an example.
The Rust RuleDef struct is in the Rust reference.
What you can ask it
- Why are these two related?
explain_associationnames the rule, the score and the values two entities share, so an assistant can quote the evidence instead of guessing. - What did that look like then?
edges_atreturns the edges a node had on a past date or at a past commit. - What would this change do?
what_ifcomputes the edges a property change would gain and lose, without writing anything. - Who may see it? A query run with a
rolesees only what that role may see; one graph answers differently per caller.
An agent reaches all of this over MCP, along with remember, recall and forget
(Agent memory). A program reaches it as a Rust library, a Python module, or over
HTTP (API reference).
What it is not
- Not a hosted service. You run it: embedded, or from the image and templates in
deploy/. - Not a vector database. Vector rules and an HNSW index are built in; you bring the embeddings.
- Not a transactional relational database. One writer at a time, transactions are snapshot-isolated rather than serializable, and the working graph lives in memory.
Known limits says what has been measured and how far.
Documentation
- Start: Quickstart · Install · Concepts · Upgrade from 0.9
- Guides: Query/Cypher · Rules · Bolt · Transactions · Types & indexes · Time travel · Access control · Vector · Agent memory
- Operate: Deploy/self-host · Durability · Concurrency · Benchmarks · Known limits
- Reference: CLI · HTTP · Python · Rust · TypeScript · MCP tools
- Project: Architecture · Conformance · Contributing · Security
License
Copyright 2026 Matthew Sherlin.
Dual-licensed under MIT or Apache-2.0, at your option.
來源:README.md,提交 697bbab
工具
0版本歷史
14- v0.10.5最新Nov 7, 2026
- v0.10.4Nov 5, 2026
- v0.10.3Nov 4, 2026
- v0.10.2Nov 3, 2026
- v0.10.1Nov 3, 2026
- v0.9.4Oct 24, 2026
- v0.9.3Oct 22, 2026
- v0.9.1Oct 17, 2026
- v0.9.0Oct 16, 2026
- v0.8.2Oct 16, 2026
- v0.8.1Oct 15, 2026
- v0.8.0Oct 14, 2026
- v0.7.2Oct 13, 2026
- v0.1.3Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。