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.

已验证STDIO仅桌面效率与工作流知识与记忆

概览

AI 生成的概览

本地优先的学习记忆 MCP 服务器,让 AI 导师建立带先修关系的知识树、记录笔记与证据,并以真实表现为依据判定掌握程度。

可以做什么
查看目标、进度与可开始的工作,搜索可复用的规范知识节点及其关系、笔记和证据,诊断缺口并列出可学或受阻的节点。创建目标树,设置节点深度或流程状态,追加笔记、来源、反思或练习。记录验证证据,仅当表现为已演示、闭卷、无辅助且使用新题目时才把节点标记为已验证。将整片知识森林导出为可移植的 JSON 归档。内置提示引导宿主完成搜索、显式复用与建树。
适用场景
适合希望 AI 导师或学习助手跨对话保留持久学习状态的场景:目标、先修关系、可复用概念和掌握证据,而非聊天记录或文档检索。也适合希望把进度保存在可移植本地文件并与兼容工作台共享的学习者。
运行要求
需要 Node.js 22 或更高版本,以 stdio 在本地运行,可通过 npx 从 GitHub 启动或安装为 MCP Bundle。数据默认存放在用户主目录下的 JSON 文件,可用环境变量 KNOWLEDGE_FOREST_FILE 或 --data-file 参数指定路径。无需 API 密钥,服务器不发起网络请求。
安装前请注意
相关工具会在数据文件中创建和更新目标、节点、笔记与验证记录。与正在使用的工作台文件共享前应先备份,因为工作台自动保存可能无法保留仅由 MCP 写入的记录。项目为公开 alpha,工具契约仍可能变化;升级前请备份真实学习数据并查看发布说明。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Knowledge Forest,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[Knowledge Forest logo]

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

bash
npx --yes github:znecho9/knowledge-forest-mcp doctornpx --yes github:znecho9/knowledge-forest-mcp

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

bash
git clone https://github.com/znecho9/knowledge-forest-mcp.gitcd knowledge-forest-mcpnpm cinpm run checknpm run dev

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:

toml
[mcp_servers.knowledge-forest]command = "npx"args = ["--yes", "github:znecho9/knowledge-forest-mcp"]env = { KNOWLEDGE_FOREST_FILE = "/absolute/path/to/knowledge-forest.json" }

Claude Desktop and JSON-configured hosts

json
{  "mcpServers": {    "knowledge-forest": {      "command": "npx",      "args": ["--yes", "github:znecho9/knowledge-forest-mcp"],      "env": {        "KNOWLEDGE_FOREST_FILE": "/absolute/path/to/knowledge-forest.json"      }    }  }}

Generate both snippets with the resolved path:

bash
npx --yes github:znecho9/knowledge-forest-mcp config --data-file /absolute/path/to/knowledge-forest.json

What the model can do

MCP capabilityPurposeChanges data?
forest_overviewSee goals, progress, and ready workNo
search_knowledgeFind reusable canonical nodesNo
get_node_contextRead relationships, notes, and evidenceNo
diagnose_nodeIdentify prerequisite, depth, and evidence gapsNo
get_learning_queueFind ready and blocked nodesNo
create_goal_treePersist a minimal sufficient knowledge treeYes
update_node_learning_stateSet depth or workflow stateYes
append_learning_noteAppend notes, sources, reflections, or exercisesYes
record_verificationRecord evidence and enforce the mastery ruleYes
export_forestRead the complete portable archiveNo

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:

text
demonstratedAND closed_bookAND NOT assistedAND novel_prompt

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:

bash
KNOWLEDGE_FOREST_FILE=/path/to/workbench/learning/knowledge-forest.json \  node dist/cli.js doctor

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 24, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分