Deploy LLM Wiki

AI-maintained wiki of your documents, built by Claude over MCP

Deploy LLM Wiki

/data

Deploy and Host LLM Wiki on Railway

LLM Wiki is an open-source, AI-maintained personal wiki, based on Andrej Karpathy's LLM wiki idea. You upload papers, notes, Markdown and PDF files, then connect Claude, Codex or any MCP client, and the AI writes interlinked wiki pages with footnote citations back to your sources and keeps them current.

About Hosting LLM Wiki

This template runs LLM Wiki's single-workspace server as one Railway service, built from our GitHub repo at a pinned upstream commit. It contains the Next.js web app, the FastAPI API with the PDF extractor, and the MCP server, behind a small Caddy front. Your files, wiki pages and the SQLite index sit on one volume at /data, so they survive redeploys and restarts. Upstream's local mode has no login, so the template locks it: the web app and API need a generated username and password, and the MCP endpoint needs a generated token. There is no database to run and no API key to enter, because the AI runs in your own MCP client.

Common Use Cases

  • A personal research wiki that Claude keeps up to date from the papers and notes you upload
  • A shared memory for AI coding and writing agents (Claude Code, Codex, Cursor) over remote MCP
  • A nightly Claude routine that reads new sources and folds them into linked, cited wiki pages

Dependencies for LLM Wiki Hosting

  • One Railway service built from aalfath/llmwiki-railway-template (web app, API, MCP server and Caddy)
  • One Railway volume at /data for your files, wiki pages and index
  • An MCP client with its own model access (Claude, Claude Code, Codex, Cursor or similar)

Deployment Dependencies

Implementation Details

After deploy. Open the service's Variables tab and copy LLMWIKI_PASSWORD. Open the public URL and sign in as admin with that password. Then open https://YOUR-DOMAIN/connect: it shows your MCP URL and the token.

Connect Claude. In claude.ai, add a custom connector with the URL https://YOUR-DOMAIN/mcp/YOUR-MCP-TOKEN. In Claude Code:

claude mcp add --transport http llmwiki https://YOUR-DOMAIN/mcp --header "Authorization: Bearer YOUR-MCP-TOKEN"

Then ask Claude to read the guide and build pages from your uploaded sources. Anyone with the MCP token can read and change the wiki, so keep it secret. To revoke it, change MCP_TOKEN and redeploy.

Services and resources. One service with three processes: the web app, the API (with a Java PDF extractor) and the MCP server, plus Caddy on PORT. The health check is /healthz. It runs on Railway's Free plan at 0.5 GB RAM and 1 vCPU (two PDFs processed at once peaked at about 420 MB in our Railway test; documents are processed one at a time below 1.8 GB). For very large PDFs, give the service 1 GB.

Optional. Set MISTRAL_API_KEY for better OCR of complex PDFs. Word and PowerPoint files need LibreOffice, which this image leaves out to stay small, so convert them to PDF first. Uploads are limited to 100 MB per file.

Updates. Railway shows "update available" when we bump the pinned upstream commit in the template repo. Read CHANGELOG.md there, then apply the update from your service. Your data on /data is kept, and database migrations run on start.

Why Deploy LLM Wiki on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying LLM Wiki on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1