LLM Wiki MCP

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.

Category
Visit Server

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured