LLM Wiki MCP
MCP server for persistent, compounding markdown wikis maintained by LLMs. Enables incremental knowledge base building with interlinked pages, search, and raw source management.
README
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 | raw/ |
You (immutable) |
| Wiki | wiki/{type}/{slug}.md |
LLM via MCP |
| Schema | AGENTS.md |
You + LLM |
Plus index.md (catalog) and log.md (timeline), maintained automatically on writes.
MCP tools
| Tool | Description |
|---|---|
wiki_get_index |
Read master index.md |
wiki_list_pages |
List pages, optional type filter |
wiki_get_page |
Fetch one page (frontmatter + body) |
wiki_search |
Full-text search with snippets |
wiki_list_raw |
List immutable source files in raw/ |
wiki_read_raw |
Read a raw source file (text or binary metadata) |
wiki_put_page |
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:stdio
See 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 --build
MCP 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: 300000
Roadmap
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。