Skip to main content

gknowledge-mcp

An MCP server for gknowledge wikis. Claude Code, Codex, Cursor and any other Model Context Protocol client can search, read and grow a linked Markdown wiki that an LLM keeps up to date, following Karpathy's LLM Wiki pattern.

Sources are compiled into the wiki once. Agents then read the wiki instead of re-reading raw documents on every question.

  • Plain files. Markdown with [[wikilinks]] and YAML frontmatter, an index.md catalogue and an append-only log.md. The folder opens in Obsidian or any editor.
  • Cited and incremental. Each new source updates only the pages it touches. Every page records its sources, and answers cite pages.
  • Offline by default. A built-in heuristic engine ingests and answers with no model and no API key. For better synthesis, set provider, base_url and model in the project's settings/settings.json (or from the desktop app) to use Ollama or any OpenAI-compatible endpoint.
  • No dependencies. Standard library only; pip install "gknowledge-mcp[pdf]" adds PDF import.

Install and register

claude mcp add gknowledge -- uvx gknowledge-mcp --init ~/Knowledge/my-project    # Claude Code
codex mcp add gknowledge -- uvx gknowledge-mcp --init ~/Knowledge/my-project     # Codex CLI

For Cursor or other clients:

{ "mcpServers": { "gknowledge": { "command": "uvx", "args": ["gknowledge-mcp", "--init", "/home/you/Knowledge/my-project"] } } }

--init creates the project folder the first time. Without it, the server only opens an existing project. You can also pipx install gknowledge-mcp and use gknowledge-mcp as the command.

Tools

Tool What the agent can do
search_wiki find pages by keyword
read_page read a page with its sources and backlinks
list_pages list pages by type
ask get a cited answer, optionally saved back into the wiki
add_source import and ingest a file
recent_activity see what changed recently

The desktop app

This package is the headless part of gknowledge. The full app is a native GNOME application (GTK 4 and Libadwaita) with sources, wiki, assistant and a review queue in one window, and it opens the same project folders. Install it from the signed APT repository or Flatpak.

MIT licensed. Issues and contributions: github.com/openapi/gknowledge.

Metadata

Release files for gknowledge-mcp 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gknowledge-mcp 0.2.2
File Size Uploaded
gknowledge_mcp-0.2.2.tar.gz 37.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gknowledge-mcp 0.2.2
File Interpreter ABI Platform
gknowledge_mcp-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 81.2 kB

Release files / gknowledge_mcp-0.2.2.tar.gz

Download URL gknowledge_mcp-0.2.2.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eadae28f0e065de14c95716cc1370026236ced1b60ee902b15b87677ddf05aca
BLAKE2b-256 checksum
How to use checksums
371fbeb5c98c4bf682fac9671f81ec1c93c65001a1cb8e8ecf33c6f723a1f32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / gknowledge_mcp-0.2.2-py3-none-any.whl

Download URL gknowledge_mcp-0.2.2-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5025412bcd172134f7810c7cee85a27767e83b0c854dc8935b7224aff611885e
BLAKE2b-256 checksum
How to use checksums
2504d73ab59fad535fcf84bf1b768e1e8e9d14818f7cf3b7291e93cbb30e6b24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page