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 "Install 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: mediawiki-mcp-server
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jlnkrth/llm-wiki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server