Pre-release. Simple KB's first release on PyPI is on its way: until it's out, installing it won't find it.
Getting started
Simple KB on your laptop
Simple KB turns your documents into a knowledge base that any AI agent can search, with the page every answer came from. skb is its command; it runs on your laptop, with no model and no server to set up.
Install
Simple KB is installed with uv, a Python package manager. uv also fetches a suitable Python (3.11 or newer) when the machine doesn’t have one, so there’s nothing else to install first. skb is tested on Linux; on Windows, run it in WSL.
1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
On a Mac with Homebrew, brew install uv works too. Open a new terminal afterwards, so uv is on your PATH; uv --version checks it. If you already have uv, skip this step.
2. Install Simple KB
uv tool install --python 3.13 "simple-kb[formats,serve]"
--python 3.13 matters: without it, uv picks its newest Python, which some of skb’s dependencies (onnxruntime, for reading PDFs and scans) don’t support yet. This gives skb its own environment and puts it on your PATH, so it works from any folder: skb --version checks it. formats reads PDFs, Office files, HTML and EPUB; serve adds the portal and MCP. Add ocr to read text in images and scans: uv tool install --python 3.13 "simple-kb[formats,ocr,serve]".
Upgrade with uv tool upgrade simple-kb.
Other ways:
- pipx:
pipx install "simple-kb[formats,serve]"does the same as uv. - pip, inside a virtual environment: only if you’ll use skb from Python code. Plain
pip installoutside one stops withexternally-managed-environmenton most current systems, by design.
Build a base
Point it at a folder. It reads every file, splits each into sections and builds the search index:
skb create handbook ./docs
Search it
skb search handbook "who carries the pager"
Each result names its section, a snippet with the matched words in [brackets], and the source to cite: a PDF’s result cites its page.
See what it read
skb show handbook
The documents read, the sections made, the last build, and any file that needs attention.
Connect an agent
Start the server, which serves the portal and MCP at http://127.0.0.1:8765:
skb serve
Give an agent a token for this base, shown once:
skb token create claude-code --base handbook
Then add the base to the agent. For Claude Code:
claude mcp add --transport http handbook http://127.0.0.1:8765/mcp/handbook \
--header "Authorization: Bearer <token>"
Next: connecting agents covers every way in, including Claude.ai and ChatGPT connectors, which need only the link.