gknowledge

io.github.openapi由 GitHub 账号 openapi 发布v0.3.0更新于 Nov 2, 2026

Search, read and grow a Karpathy-style LLM wiki of linked Markdown pages, with cited answers.

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

面向本地 Markdown 知识 wiki 的 MCP 服务器,让助手能检索、阅读、提问并扩充带引用的互链页面。

可以做什么
  • 按关键词或类型搜索并列出 wiki 页面
  • 读取页面及其来源与反向链接
  • 基于 wiki 提问并获得带引用的回答,可选择存回 wiki
  • 导入文件并将其作为新来源摄取
  • 查看近期活动,了解最近有哪些改动
适用场景
当你维护一个 gknowledge 的 Markdown 项目文件夹,并希望 Claude Code、Codex、Cursor 等代理直接在同一份 wiki 上工作、而不是每次重读原始文档时适用。适合对自有文档做增量式、可溯源的知识积累。
运行要求
以本地 stdio 进程运行,通过 uvx 从 PyPI 包 gknowledge-mcp 启动,并需指定项目文件夹路径。桌面应用主要面向 Linux/GNOME,README 提供 APT 与 Flatpak 安装方式。离线引擎无需 API 密钥,模型提供方为可选项。
安装前请注意
该服务器可写入 wiki:add_source 会摄取文件,ask 可将回答存回,因此代理的改动会落到你的 Markdown 库中。若配置非离线提供方(ChatGPT 套餐、Ollama 或带 API 密钥的 OpenAI 兼容云端端点),内容会离开本机,用量可能计入你的套餐。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[图片]

gknowledge

English · 简体中文 · Italiano · Français · Português (BR) · Español

Karpathy's LLM Wiki as a native GNOME app.
Drop in your documents. Get a linked wiki that an LLM keeps up to date.
A native GNOME app. Offline by default, plain Markdown on disk, Obsidian-compatible.
Bring your own brain: a local model, any OpenAI-compatible endpoint, or your own ChatGPT plan.

[License: MIT] [GTK 4] [Libadwaita] [Ubuntu 24.04+]

[CI] [Stars] [Issues] [Last commit] [Latest release] [Python 3.10+] [Offline first] [No API key needed] [Obsidian compatible] [Karpathy LLM Wiki pattern] [Sign in with ChatGPT] [Ollama] [Flatpak] [PRs welcome]

[gknowledge in action: drop in AI research papers, get a linked wiki, ask a question and get an answer with citations]

Real output of the offline engine on six AI papers (data/demo/papers), no API key. Regenerate with make demo-svg.

Install

One line, on Ubuntu 24.04+ and Debian 13+. It adds the signed gknowledge APT repository, so updates arrive with apt upgrade (other distributions get a per-user install):

bash
curl -fsSL https://github.com/openapi/gknowledge/releases/latest/download/install.sh | bash

Or add the APT repository yourself. apt also pulls GTK 4, Libadwaita and PyGObject:

bash
sudo curl -fsSLo /usr/share/keyrings/gknowledge.gpg https://openapi.github.io/gknowledge/gknowledge.gpgsudo curl -fsSLo /etc/apt/sources.list.d/gknowledge.sources https://openapi.github.io/gknowledge/gknowledge.sourcessudo apt update && sudo apt install gknowledge

On any distribution, with Flatpak (the GNOME runtime comes from Flathub):

bash
flatpak install --user https://openapi.github.io/gknowledge/io.github.openapi.Gknowledge.flatpakref

Both repositories are described at openapi.github.io/gknowledge.

Then open gknowledge from the app grid. To remove it: sudo apt remove gknowledge (or flatpak uninstall io.github.openapi.Gknowledge).

Other distributions, from source, and release builds
  • Fedora, Arch and others: install PyGObject, GTK 4 and Libadwaita with your package manager, then run the one-line installer above. It installs into ~/.local without root.
  • From source: git clone https://github.com/openapi/gknowledge && cd gknowledge && make install.
  • Single files: every version's .deb and Flatpak bundle is on the Releases page, e.g. sudo apt install ./gknowledge_all.deb after downloading gknowledge_all.deb.

Why gknowledge

If you have used LLM Wiki, Tolaria, OpenKnowledge, Reor or Khoj, you already know the loop: ingest sources, let the model build and maintain a wiki, then ask questions against it. gknowledge does the same thing as a real GNOME application.

  • Native, not a web view. GTK 4 and Libadwaita, built to follow the GNOME HIG. No Electron, no Tauri, no browser engine.
  • Works with no account. A built-in heuristic engine ingests and answers offline. Add a model when you want better synthesis.
  • Your data stays yours. Markdown with YAML frontmatter plus a readable SQLite index. Open the folder in Obsidian or any editor.
  • Cited, reviewable, incremental. Every generated page records its sources, answers cite pages, and a review queue keeps you in control.

The workflow you already know

You know this from…What it isIn gknowledge
Karpathy's LLM Wiki, LLM WikiIngest: read a new source, update the pages it touchesDone: two-step extraction with provenance
Reor, KhojAsk: questions answered from your notes, with citationsDone: lexical search plus graph expansion, citations, saved answers
LLM Wiki, OpenKnowledgeindex.md and log.md, [[wikilinks]], Obsidian-compatible vaultDone
LLM Wiki, TolariaReview AI changes before they stickReview queue done, Git diff planned
Karpathy's LLM Wiki, OpenKnowledgeLint: orphans, contradictions, stale pagesPlanned
LLM WikiKnowledge graph, clusters, gapsPlanned
Tolaria, OpenKnowledge, LLM WikiMCP server so agents can read and write the wikiDone: gknowledge-mcp
LLM WikiWeb clipper, folder watch, deep researchPlanned

See ROADMAP.md for dates and TODO.md for the backlog.

Karpathy's LLM Wiki, native on GNOME

In April 2026 Andrej Karpathy described the LLM Wiki pattern: instead of re-reading raw documents on every question, an LLM builds and maintains a persistent wiki that compounds over time. gknowledge implements it as a desktop app.

What we kept

  • Three layers: immutable sources/, the generated knowledge/ wiki, and settings that tell the engine how to work.
  • The operations: ingest (read a source, update the pages it touches) and query (answer from the wiki, with citations). Lint is next.
  • index.md as the catalogue and log.md as the append-only history.
  • Plain Markdown with [[wikilinks]] and YAML frontmatter, so the folder opens in Obsidian.
  • The human curates, the model maintains.

What we changed and added

  • A native app instead of an idea file. GTK 4 and Libadwaita, with sources, wiki, assistant and review in one window.
  • Works with no model at all. An offline engine ingests and answers; a model makes it better.
  • Bring your own brain. Your ChatGPT plan through Sign in with ChatGPT, Ollama, or any OpenAI-compatible endpoint.
  • Two-step ingest with provenance. Analysis first, then pages; every page records its sources.
  • No empty pages, no duplicates. Pages are created only with real content, names are merged across sources ("Kasparov" and "Garry Kasparov"), minor names stay as mentions until a second source cites them.
  • A review queue for what the model is unsure about.
  • An MCP server, so Claude Code, Codex or Cursor can search, read and grow the same wiki.

Use your wiki from Claude Code, Codex or Cursor

gknowledge ships an MCP server. Point any agent at a project folder:

bash
claude mcp add gknowledge -- gknowledge-mcp ~/Knowledge/my-project     # Claude Codecodex mcp add gknowledge -- gknowledge-mcp ~/Knowledge/my-project      # Codex CLI

For Cursor or other clients, add this to the MCP configuration:

json
{ "mcpServers": { "gknowledge": { "command": "gknowledge-mcp", "args": ["/home/you/Knowledge/my-project"] } } }
ToolWhat the agent can do
search_wikifind pages by keyword
read_pageread a page with its sources and backlinks
list_pageslist pages by type
askget a cited answer, optionally saved back into the wiki
add_sourceimport and ingest a file
recent_activitysee what changed recently

Try it from source

bash
sudo apt install python3-gi gir1.2-gtk-4.0 gir1.2-adw-1   # Ubuntu / Debiangit clone https://github.com/openapi/gknowledge && cd gknowledgemake start      # opens a demo project with six AI papers already ingested

make start also restarts the app whenever you edit the source, which makes it the fastest way to hack on gknowledge. Install it for daily use with make install.

Bring your own brain

ProviderNeedsNotes
Offline (default)nothingHeuristic extraction and extractive answers. Fully private.
ChatGPT planA Plus or Pro accountPreferences, Provider, Sign in with ChatGPT. Usage is charged to your own plan, no API key.
Ollama / LM Studio / vLLMA local serverAny OpenAI-compatible endpoint on your machine.
OpenAI-compatible cloudAn API keyOpenAI, OpenRouter, Together, and similar.

Nothing is sent anywhere unless you pick a provider that is not offline.

How it compares

gknowledgeLLM WikiTolariaOpenKnowledgeReor (archived)Khoj
Native GNOME / GTK 4yesTauriTauriElectronElectronweb + Electron
Works offline, no keyyesneeds a modelAI optionalagent-drivenlocal modelself-host
Plain Markdown vaultyesyesyesyesyesreads yours
Linux packaging.deb, Flatpak.deb, AppImageAppImage, .deb.deb, .rpmAppImagepip, Docker
LicenseMITGPL-3.0AGPL-3.0GPL-3.0AGPL-3.0AGPL-3.0

Details and history of each project are in DISTRIBUTING.md.

gknowledge is an alternative to…

gknowledge sits at the intersection of LLM-powered knowledge bases, local-first note tools, and document RAG systems. If you have used any of the tools below, you already understand the shape of the problem — gknowledge addresses it as a native GNOME/GTK application that is local-first, provider-agnostic, and usable fully offline (no API key required, thanks to a built-in heuristic extraction engine).

LLM wiki / auto-knowledge-base builders (the closest peers, several studied in NOTES.md):

  • LLM Wiki (nashsu/llm_wiki) — Tauri desktop app implementing Karpathy's incremental "LLM builds and maintains a wiki" pattern
  • Tolaria — files-first, git-first Markdown knowledge base with AI-assisted editing
  • WeKnora (Tencent) — enterprise RAG + agents + auto-wiki framework
  • OpenKnowledge (Inkeep) — WYSIWYG Markdown editor with agent/MCP integrations for LLM wikis
  • Reor — local-first AI note-taking that auto-links related notes
  • Khoj — self-hostable AI "second brain" over your documents

Not a peer: Google NotebookLM offers a similar cited-notebook experience but is closed-source and cloud-only.

Document RAG / "chat with your knowledge" engines:

Local-first / networked-thought note tools (which gknowledge complements with automated ingestion and provenance):

Document / reference managers with growing AI features:

How gknowledge differs

  • Native to GNOME, not Electron/Tauri or web-first — GTK 4 + Libadwaita, HIG-aligned, Flatpak-friendly.
  • Offline-first and provider-agnostic — a local heuristic engine ships in the box; OpenAI-compatible endpoints (OpenAI, Ollama, LM Studio, vLLM, OpenRouter, …) are optional, swappable, and configured per project.
  • Inspectable, user-owned format — knowledge is plain Markdown with YAML frontmatter (Obsidian-compatible) plus a readable SQLite index; nothing is locked behind a sync service.
  • Incremental, not stateless RAG — sources are ingested once into a persistent, cross-linked knowledge space with provenance, rather than re-retrieved from scratch on every question.
  • Human-in-the-loop — generated content is clearly marked and a review queue keeps you in editorial control.

Project docs

License

MIT. Contributions are welcome, see CONTRIBUTING.md.

Star history

[Star history]

If gknowledge is useful to you, a star helps other GNOME users find it.

来源:README.md,提交 d946b2f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.3.0最新Oct 19, 2026
  2. v0.2.2Oct 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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