
Knowledge Forest
io.github.znecho9Published by GitHub account znecho9v0.1.1Updated Oct 24, 2026
Local-first personal knowledge and learning memory for AI tutors with evidence-gated mastery.
Overview
A local-first learning-memory MCP server that lets an AI tutor build prerequisite-aware knowledge trees, keep notes and evidence, and gate mastery on verified,
- What you can do
- Inspect goals, progress and ready work, and search reusable canonical knowledge nodes with their relationships, notes and evidence, plus diagnose gaps and list ready or blocked learning nodes. Create goal trees, update node depth or workflow state, and append notes, sources, reflections or exercises. Record verification evidence, which marks a node verified only when the performance is demonstrated, closed-book, unassisted and on a novel prompt. Export the complete forest as a portable JSON archive. A bundled prompt guides a host through searching, reusing concepts and creating a tree.
- When to use it
- Use it when an AI tutor or learning assistant should carry durable learning state across chats: goals, prerequisites, reusable concepts and evidence of mastery, rather than chat history or document retrieval. It suits learners who want progress kept in a portable local file and shared with a compatible workbench.
- Requirements
- Node.js 22 or newer, run locally over stdio via npx from GitHub or as an MCP Bundle. Data defaults to a JSON file under the user's home directory; override the path with the KNOWLEDGE_FOREST_FILE environment variable or the --data-file flag. No API key or network access is needed.
Installation
In SourceWeft
- Open Knowledge Forest in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit 1fa9da6
Tools
0Version history
1- v0.1.1LatestSep 24, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts