The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Knowledge Forest listing page.
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
Choose Knowledge Forest when you want an AI tutor or learning assistant to remember more than chat history:
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.
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:
Requirements: Node.js 22 or newer.
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.
The default data file is ~/.knowledge-forest/knowledge-forest.json. Override it with KNOWLEDGE_FOREST_FILE or --data-file.
Use the exact data path you want the host to access.
Add this to ~/.codex/config.toml:
Generate both snippets with the resolved path:
| MCP capability | Purpose | Changes data? |
|---|---|---|
forest_overview | See goals, progress, and ready work | No |
search_knowledge | Find reusable canonical nodes | No |
get_node_context | Read relationships, notes, and evidence | No |
diagnose_node | Identify prerequisite, depth, and evidence gaps | No |
get_learning_queue | Find ready and blocked nodes | No |
create_goal_tree | Persist a minimal sufficient knowledge tree | Yes |
update_node_learning_state | Set depth or workflow state | Yes |
append_learning_note | Append notes, sources, reflections, or exercises | Yes |
record_verification | Record evidence and enforce the mastery rule | Yes |
export_forest | Read the complete portable archive | No |
The included plan_learning_goal prompt guides a host through search, explicit reuse, and tree creation.
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.
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.
knowledge-forest-mcp export.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.
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.
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.
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.
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.
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.
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.