LLM Wiki MCP
Allows version control of the wiki with automatic commits and pushes on page updates, configured via wiki.config.yaml.
Provides the wiki as markdown files that can be browsed and edited in Obsidian, enabling local viewing and note-taking.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LLM Wiki MCPadd a page about project architecture"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LLM Wiki MCP
MCP server for LLM-maintained markdown wikis — a persistent, compounding knowledge base instead of per-query RAG.
Inspired by Andrej Karpathy's LLM Wiki pattern. The LLM incrementally builds and maintains interlinked markdown pages; you curate sources and ask questions; the wiki stays current because maintenance cost is near zero.
Three layers
Layer | Path | Who writes |
Raw sources |
| You (immutable) |
Wiki |
| LLM via MCP |
Schema |
| You + LLM |
Plus index.md (catalog) and log.md (timeline), maintained automatically on writes.
Related MCP server: obsidian-wiki-mcp
MCP tools
Tool | Description |
| Read master |
| List pages, optional type filter |
| Fetch one page (frontmatter + body) |
| Full-text search with snippets |
| List immutable source files in |
| Read a raw source file (text or binary metadata) |
| Create/update page + optional log/index/git commit |
Quick start
1. Create your wiki from the starter template
cp -r examples/starter-wiki ~/my-wiki
cd ~/my-wiki
git init
git add . && git commit -m "Initial wiki scaffold"2. Configure Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"llm-wiki": {
"command": "npx",
"args": ["-y", "@jlnkrth/llm-wiki-mcp"],
"env": { "WIKI_DIR": "/path/to/my-wiki" }
}
}
}Restart Cursor. Copy examples/starter-wiki/AGENTS.md conventions into your wiki (included if you copied the starter).
3. Local development (from source)
git clone https://github.com/jlnkrth/llm-wiki-mcp.git
cd llm-wiki-mcp
npm install
WIKI_DIR=/path/to/my-wiki npm run start:stdioSee TESTING.md for the full test checklist.
Remote deployment (HTTP + Docker)
For team/shared wikis on a VPS:
cd deploy
cp .env.example .env
docker compose up -d --buildMCP endpoint: http://<host>/wiki-mcp/mcp with header X-Api-Key: <MCP_API_KEY>.
See deploy/README.md for details.
Configuration
wiki.config.yaml in your wiki root:
types:
- entities
- concepts
- sources
- synthesis
- topics
git:
enabled: true # false = local writes only, no commit/push
branch: main
commit_prefix: "wiki:"
search:
refresh_interval_ms: 300000Roadmap
See ROADMAP.md for planned features (local image assets, rich query outputs, search upgrades).
Why this works
RAG rediscovers knowledge on every question. An LLM wiki compiles once and stays current — cross-references exist, contradictions are flagged, synthesis reflects everything you've read. The MCP is the safe write interface: single-writer lock, index/log maintenance, structured frontmatter.
Browse the wiki in Obsidian; let the agent maintain it.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
One memory, every AI. A shared, user-owned markdown memory your AI clients read and write over MCP.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Hosted markdown project wikis your team's AI assistants read, search, and update over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that transforms markdown notes into an AI-powered knowledge graph. It enables LLM clients to explore, analyze, and diagnose knowledge graphs through tools for node explanation, path finding, causal chain analysis, and wiki health reporting.5MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that implements Karpathy's LLM Wiki pattern for Obsidian vaults, enabling persistent knowledge storage and BM25 search across AI sessions.10 npm1MIT
- AlicenseAqualityDmaintenanceMarkdown + SQLite knowledge store with bidirectional wikilinks, exposed as an MCP server for AI agents to maintain an interconnected knowledge base.11MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that ingests books into a structured, cross-linked wiki of sources, entities, concepts, and syntheses, managed by an LLM.43 npm1MIT