About Llmwiki
Llmwiki is an MCP server in the RAG category: compile documents into a cited knowledge wiki. Retrieve evidence, query, and review via local MCP.
The repository has 11 stars and 0 forks.
Install
claude mcp add llmwiki -- npx -y llm-wiki-compilernpx -y llm-wiki-compilerThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (10)
appendAdd content to the end of a page.
Parameters not published.
createCreate a wiki page, note, or asset (SVG diagram, CSV) with footnote citations back to sources.
Parameters not published.
create_knowledge_baseCreates a knowledge base and starter `overview.md`; local mode returns the existing singleton workspace.
Parameters not published.
deleteRemove pages or sources by path or glob (`overview.md` and any legacy `log.md` are protected).
Parameters not published.
editFind-and-replace exact text in an existing page.
Parameters not published.
guideOrients Claude — how the vault works and which knowledge bases exist. It calls this first.
Parameters not published.
lintDeterministic hygiene checks — citation resolution, dangling links, orphan and stale pages, frontmatter consistency.
Parameters not published.
list_knowledge_basesLists your knowledge bases and their slugs (every other tool takes one).
Parameters not published.
readRead documents — a single file or a glob batch, PDF/office page ranges, optionally with embedded images.
Parameters not published.
searchBrowse files, full-text search across content, or query the citation graph — what cites what, plus stale or uncited pages.
Parameters not published.
Ask AI
Ask AI about Llmwiki
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
LLM Wiki
Open-source implementation of Karpathy's LLM Wiki (spec).
I built this because research folders accumulate useful material faster than I can keep summaries, links, and citations current by hand. LLM Wiki offloads that editing work to Claude so I can focus on source selection and analysis instead.
Point it at a folder, start the local app, and connect Claude over MCP. From there, Claude reads your sources, writes wiki pages, and keeps links and citations in sync.

What actually happens
- You have a folder — PDFs, notes, articles, spreadsheets. Your existing research.
- LLM Wiki indexes it — extracts text, chunks for search, builds a local SQLite index. Source files stay where they are.
- Claude connects via MCP — reads sources, writes wiki pages under
wiki/, maintains cross-references and footnote citations. - The wiki improves as Claude reads more of the workspace and writes more pages. Summaries, entity pages, and cross-references accumulate instead of being re-derived from scratch each conversation.
Quick Start
Requirements: Python 3.11+, Node.js 20+
git clone https://github.com/lucasastorian/llmwiki.git
cd llmwiki
# Install Python deps
cd api && python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cd ..
# Install web deps
cd web && npm install && cd ..
# Initialize a workspace (point at any folder with your files)
./llmwiki init ~/research
# Start the app
./llmwiki serve ~/research
Open localhost:3000. Your files are indexed, wiki is scaffolded, ready to go.
Connect Claude
./llmwiki mcp-config ~/research
This prints a JSON snippet for claude_desktop_config.json (Claude Desktop) or .claude/settings.json (Claude Code). One workspace runs as one MCP server entry, so if you have multiple research folders, add one entry per folder.
Then tell Claude: "Read the guide, then ingest my sources and start building the wiki."
One-command start
./llmwiki open ~/research
Does everything: init if needed, start servers, open browser, print MCP config hint.
CLI
| Command | What it does |
|---|---|
llmwiki open <folder> |
Init + serve + open browser |
llmwiki init <folder> |
Create .llmwiki/ + wiki/, index existing files |
llmwiki serve <folder> |
Start API on :8000 + web on :3000 |
llmwiki mcp <folder> |
Run stdio MCP server (for Claude config) |
llmwiki mcp-config <folder> |
Print claude_desktop_config.json snippet |
llmwiki reindex <folder> |
Rebuild the index from disk |
What happens on disk
LLM Wiki adds two things to your folder. Source files are not moved or modified.
~/research/ # Your existing files (untouched)
papers/paper.pdf
notes.md
data.xlsx
wiki/ # Generated pages (created by LLM Wiki)
overview.md
log.md
concepts/
attention.md
.llmwiki/ # Index + cache (hidden, rebuildable)
index.db
cache/
wiki/— ordinary markdown files. Edit them in any editor. Claude writes and updates them via MCP..llmwiki/— SQLite search index and processed artifacts. Delete it anytime;llmwiki reindexrebuilds from the source files.
By default, indexing, storage, and file writes happen on your machine. No cloud services required.
How Claude interacts with the workspace
Once connected, Claude has these tools:
| Tool | Description |
|---|---|
guide |
Explains how the wiki works, lists what's in the workspace |
search |
Browse files (list) or full-text search (search) |
read |
Read documents — PDFs with page ranges, glob batch reads |
write |
Create wiki pages, edit with str_replace, append. SVG/CSV assets |
delete |
Delete documents by path or glob pattern |
All writes go to disk first, then update the search index. If Claude creates /wiki/concepts/attention.md, that file appears on disk immediately.
Architecture
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ Next.js │────▶│ FastAPI │────▶│ SQLite │
│ Frontend │ │ Backend │ │ (local) │
└──────────────┘ └──────┬───────┘ └──────────────┘
│
┌──────┴───────┐
│ MCP Server │◀──── Claude Desktop / Code
│ (stdio) │
└──────────────┘
│
┌──────┴───────┐
│ Filesystem │ ← source of truth
└──────────────┘
The filesystem is the source of truth. SQLite is a derived index — it accelerates search and stores extracted page data, but it can always be rebuilt from the files. A background file watcher picks up changes you make outside the app.
Document processing
All processing runs locally. No API keys required for basic usage.
| Format | Parser | Notes |
|---|---|---|
| pdf-oxide | Rust-based text extraction. Works well for text-heavy papers. Scanned PDFs still benefit from real OCR. | |
| Markdown/Text | native | Indexed and chunked directly |
| HTML | webmd | Strips nav/ads, extracts clean markdown |
| Excel/CSV | openpyxl | Sheet-by-sheet extraction |
| Images | native | Stored as-is, viewable inline |
| Word/PowerPoint | LibreOffice | Optional. Install LibreOffice for office conversion; without it, these formats are stored but not extracted. |
Set MISTRAL_API_KEY for higher-quality PDF OCR with better table and layout detection. pdf-oxide is the free default and handles most text-heavy documents well enough.
Limitations and tradeoffs
- One workspace = one MCP server. If you work across multiple research projects, each gets its own folder and its own MCP entry. This is intentional — it keeps context and file access scoped.
- PDF table extraction is rough. pdf-oxide extracts prose reliably but tables come through as messy text. For financial filings or data-heavy PDFs, Mistral OCR is significantly better.
- LibreOffice adds setup friction. Office file conversion requires a local LibreOffice install. If you mostly work with PDFs and markdown, you can skip it entirely.
- No vector search in local mode. Full-text search uses SQLite FTS5 (porter stemming). It works well for keyword queries but does not do semantic/embedding search. The hosted version at llmwiki.app uses PGroonga for ranked search.
Self-hosting the multi-tenant version
If you want to run the hosted version (like llmwiki.app) with Postgres, Supabase auth, and S3:
Prerequisites
- Python 3.11+
- Node.js 20+
- A Supabase project
- An S3-compatible bucket
Database
psql $DATABASE_URL -f supabase/migrations/001_initial.sql
API
cd api
pip install -r requirements.txt
MODE=hosted DATABASE_URL=postgresql://... uvicorn main:app --port 8000
MCP Server
cd mcp
pip install -r requirements.txt
MODE=hosted DATABASE_URL=postgresql://... uvicorn server:app --port 8080
Web
cd web
npm install
NEXT_PUBLIC_MODE=hosted \
NEXT_PUBLIC_SUPABASE_URL=https://your-ref.supabase.co \
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key \
NEXT_PUBLIC_API_URL=http://localhost:8000 \
npm run dev
Environment Variables
API
MODE=hosted
DATABASE_URL=postgresql://...
SUPABASE_URL=https://your-ref.supabase.co
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
S3_BUCKET=your-bucket
MISTRAL_API_KEY= # optional, for better PDF OCR
CONVERTER_URL= # optional, for office conversion
Web
NEXT_PUBLIC_MODE=hosted
NEXT_PUBLIC_SUPABASE_URL=https://your-ref.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
NEXT_PUBLIC_API_URL=http://localhost:8000
Why this beats a static notes folder
Personal wikis usually fail on maintenance, not intent. Someone has to update links, fix stale summaries, merge overlapping pages, and keep citations aligned with the source material. That work scales with the number of sources, and people stop doing it.
LLM Wiki offloads that editing work. You choose the source material and direct the analysis. Claude handles the repetitive bookkeeping — updating cross-references, keeping summaries current, flagging contradictions, touching the 15 pages that a single new source affects.
License
Apache 2.0
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.