
Knowledge Forest
io.github.znecho9由 GitHub 帳號 znecho9 發布v0.1.1更新於 Oct 24, 2026
Local-first personal knowledge and learning memory for AI tutors with evidence-gated mastery.
概覽
本地優先的學習記憶 MCP 伺服器,讓 AI 導師建立含先備關係的知識樹、記錄筆記與證據,並以實際表現作為掌握程度的依據。
- 可以做什麼
- 檢視目標、進度與可開始的工作,搜尋可重複使用的標準知識節點及其關係、筆記和證據,診斷落差並列出可學或受阻的節點。建立目標樹,設定節點深度或流程狀態,附加筆記、來源、反思或練習。記錄驗證證據,只有當表現為已示範、閉卷、無輔助且使用新題目時,才把節點標記為已驗證。將整片知識森林匯出為可攜的 JSON 封存檔。內建提示引導宿主完成搜尋、明確重用與建立知識樹。
- 適用情境
- 適合希望 AI 導師或學習助理跨對話保留長期學習狀態的情境:目標、先備關係、可重用概念與掌握證據,而非聊天紀錄或文件檢索。也適合想把進度保存在可攜本機檔案並與相容工作台共用的學習者。
- 執行需求
- 需要 Node.js 22 或更新版本,以 stdio 在本機執行,可透過 npx 從 GitHub 啟動或安裝為 MCP Bundle。資料預設存放在使用者主目錄下的 JSON 檔案,可用環境變數 KNOWLEDGE_FOREST_FILE 或 --data-file 參數指定路徑。不需 API 金鑰,伺服器不會發出網路請求。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Knowledge Forest,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Knowledge Forest MCP — Personal Knowledge & Learning Memory
A local-first personal knowledge management (PKM) and learning-memory MCP server for any AI tutor.
Turn goals into prerequisite-aware knowledge trees, preserve learning history, and require real evidence before claiming mastery.
中文 · MCP Registry · Product principles · Architecture · Contributing
Is this the MCP server you are looking for?
Choose Knowledge Forest when you want an AI tutor or learning assistant to remember more than chat history:
- Personal knowledge management: keep learner-owned goals, concepts, notes, sources, and evidence in portable local JSON.
- Learning memory across chats: let Claude, Codex, or another MCP host resume from the same durable learning state.
- A reusable knowledge graph: share one canonical concept and its learning history across multiple goals.
- Adaptive learning: expose prerequisites, blocked concepts, desired depth, and the next actionable learning node.
- Evidence-based mastery: require novel, unassisted, closed-book performance before a concept becomes verified.
This is not a vector database, document RAG server, or general-purpose transcript memory. It models what a person is trying to learn, how concepts depend on one another, and what evidence actually demonstrates mastery.
Why it exists
AI tutors are excellent at explaining a topic and terrible at owning long-lived learning state. A chat can sound productive while forgetting prerequisites, duplicating concepts across projects, or treating a polished answer as mastery.
Knowledge Forest gives the model a durable learning layer:
- Goal trees connect an observable outcome to the minimum knowledge needed to reach it.
- Canonical nodes let one concept serve several goals without copying its learning history.
- Evidence-gated mastery distinguishes reading and assisted practice from novel, closed-book performance.
- Local-first storage keeps the learner's goals, notes, and evidence in a portable JSON file.
- Model-neutral MCP works with any compatible host. The host's model does the reasoning and pays its own token cost; this server does not call an LLM.
Quick start
Requirements: Node.js 22 or newer.
Run from GitHub in any stdio MCP host
Install as an MCP Bundle
Clients that support MCPB can install the self-contained bundle from the latest GitHub release. The bundle includes the server and its runtime dependencies; Node.js 22 or newer is still required.
Develop locally
The default data file is ~/.knowledge-forest/knowledge-forest.json. Override it with KNOWLEDGE_FOREST_FILE or --data-file.
Connect an MCP host
Use the exact data path you want the host to access.
Codex
Add this to ~/.codex/config.toml:
Claude Desktop and JSON-configured hosts
Generate both snippets with the resolved path:
What the model can do
The included plan_learning_goal prompt guides a host through search, explicit reuse, and tree creation.
Mastery is deliberately hard to fake
record_verification marks a node verified only when all four conditions are true:
Source-visible research, explanations, summaries, and hinted answers remain useful learning records, but never become mastery evidence. Other tools cannot set verified directly.
Works with the Knowledge Forest workbench
The storage envelope and core goal/node fields are compatible with the local Knowledge Forest workbench's learning/knowledge-forest.json shape. Point the MCP server at that file to let an AI host and the workbench share one canonical forest:
Before sharing a live workbench file, commit or back it up. The server performs atomic writes, cross-process locking, validation, and retains the latest 20 MCP snapshots under learning/backups/. MCP-only append records are also mirrored to an adjacent knowledge-forest.mcp-records.json sidecar so a workbench autosave that knows only the core schema cannot erase them; export merges everything into one portable archive.
Local-first guarantees
- No model API key is needed.
- No network request is made by the server.
- No telemetry is collected.
- No delete tool is exposed in v1.
- Every mutation is schema-validated and written atomically.
- Concurrent local writers use a lock to avoid lost updates.
- The archive is readable JSON and can be exported with
knowledge-forest-mcp export.
Open-core boundary
Everything required for a single learner to build, inspect, verify, back up, and move a forest is Apache-2.0 open source. Possible paid services—none are required by this server—include encrypted multi-device sync, hosted remote MCP, managed backups, organization controls, and premium connectors. See the product brief for the explicit boundary.
Frequently asked questions
Is there an MCP server for personal knowledge management?
Yes. Knowledge Forest is a local-first PKM MCP server focused on learning state rather than document storage. It gives an AI host structured tools for goals, reusable concepts, prerequisites, notes, evidence, and progress.
Can an AI tutor remember my progress across chats?
Yes. Point each compatible host at the same Knowledge Forest JSON file. The MCP server persists the learner model independently of any single chat or model provider.
Is this a knowledge graph MCP server?
Yes, with a deliberately narrow graph: canonical knowledge nodes, prerequisite relationships, goal membership, learning records, and verification evidence. It does not attempt to extract a general entity graph from every document.
How is it different from a general AI memory MCP?
General memory usually optimizes saving and recalling context. Knowledge Forest optimizes learning progression: what the learner wants to achieve, what must be learned first, what can be reused, what is blocked, and whether mastery has been demonstrated.
Status
0.1.1 is a public alpha. The data schema is versioned, but tool contracts may still evolve before 1.0. Back up real learning data and review release notes before upgrading.
Security and contributions
Please report vulnerabilities privately as described in SECURITY.md. Bug reports and focused pull requests are welcome; start with CONTRIBUTING.md.
Apache-2.0 © Knowledge Forest contributors.
來源:README.md,提交 1fa9da6
工具
0版本歷史
1- v0.1.1最新Sep 24, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分