---
title: "Deploy LLM Wiki"
description: "AI-maintained wiki of your documents, built by Claude over MCP"
category: "AI/ML"
url: https://railway.com/deploy/llm-wiki-1
---

# Deploy LLM Wiki

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

**[Deploy LLM Wiki on Railway](https://railway.com/template/llm-wiki-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/llm-wiki-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### LLM Wiki https://raw.githubusercontent.com/lucasastorian/llmwiki/4d887e8378237fd4042ccd268a731059b6b87f20/web/public/icon-512x512.png

- **Source:** https://github.com/aalfath/llmwiki-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# 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

* LLM Wiki source: https://github.com/lucasastorian/llmwiki (built at commit 4d887e83, 2026-11-09)
* Template repo, Dockerfile and changelog: https://github.com/aalfath/llmwiki-railway-template
* Model Context Protocol: https://modelcontextprotocol.io

### 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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/llm-wiki-1
