Paper Studio MCP
Provides a self-hosted LaTeX workspace with tools for editing, compiling (pdfLaTeX, XeLaTeX, LuaLaTeX), PDF preview, file management, and revision checks, allowing MCP clients to work on LaTeX projects.
Click on "Deploy 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., "@Paper Studio MCPedit the introduction of my thesis and compile the PDF"
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.
Paper Studio MCP
한국어 · MCP connection · Hosting & backups
A self-hosted LaTeX workspace for one writer and their AI tools. Edit in the browser, compile a PDF, and let an MCP client work on the same project with revision checks and file history.
Start with Docker
Install Git and Docker with Compose, then run:
git clone https://github.com/thuygom/paper-studio-mcp.git
cd paper-studio-mcp
docker compose up -d --build
docker compose exec app node scripts/account.mjsOpen http://localhost:17882 and sign in using the email and password printed by the last command. The default email is owner@example.com; the password and MCP token are randomly generated for your installation. Keep the output private.
The first build downloads Node, TeX Live and Korean fonts and can take several minutes. Allow several GB of free disk space. Later starts reuse the images. tex-image exiting with status 0 is expected: it builds the compiler image, then the application launches a fresh compiler container for each job.
To choose your email or port, copy .env.example to .env and edit it before the first start. The email is a login identifier; no mail service is required. Account settings are preserved in the data volume on subsequent starts.
Related MCP server: overleaf-mcp-server
What you get
LaTeX source editor, autosave, outline, search, PDF preview and build logs.
pdfLaTeX, XeLaTeX and LuaLaTeX; Korean typesetting with
kotexand Noto CJK fonts.Project/file management, binary assets, ZIP import/export and downloadable PDFs.
File history and SHA-256 revision checks. A stale browser or agent edit is rejected instead of overwriting newer work.
19 MCP tools over authenticated Streamable HTTP, plus a stdio adapter for local clients.
Browser updates when MCP changes a file; a working MCP connection → Test MCP connection button.
One SQLite database, a persistent Docker volume, and no external database or paid API requirement.
There is one owner account per installation. This does not provide shared multi-user editing, OAuth, comments, tracked changes or SyncTeX. Use separate installations for separate owners.
Connect an agent
Sign in, choose MCP connection, reveal the connection configuration and test it. Copy the configuration into a client that supports Streamable HTTP and Bearer headers. Client-specific configuration keys may differ.
{
"mcpServers": {
"paper-studio": {
"url": "http://localhost:17882/mcp",
"headers": { "Authorization": "Bearer <YOUR_TOKEN>" }
}
}
}The token grants full access to this owner's projects, including deletion. MCP setup and all tools include a stdio configuration that keeps tokens out of the client configuration.
Data and compilation
The studio-data named volume stores credentials, source files, history and build PDFs. No manuscripts, accounts, domains or tunnel credentials are shipped with this repository. Git and Docker build exclusions keep local data out of source commits and images by default.
Each compile receives only a ZIP of that project's snapshot. TeX runs without networking or shell escape, as a non-root user, with a read-only root filesystem, temporary working directories and resource limits. Host directory paths are not passed to the compiler.
The application mounts the Docker socket to launch compiler containers. This gives the application Docker daemon authority. Run it for a trusted owner on a machine you control, not as a public multi-tenant service. The default port binds only to localhost. Read security and hosting before putting it behind HTTPS.
Develop without the application container
Install Node.js 24+ and Docker. From this directory:
docker build -f deploy/Dockerfile.tex -t paper-studio-mcp-tex:local .
npm ci
npm run build
npm startIn a second terminal, run npm run account. Data lives in ./private/ unless PRIVATE_DIR is set. For frontend development, keep the API running on port 17882 and run npm run dev; Vite proxies /api and /mcp to it.
npm test
npm run build
# With the application running and the TeX image built:
npm run test:integrationThe integration check creates and deletes its own temporary projects. It covers every MCP tool, conflict rejection, ZIP/history round trips, all three TeX engines, Korean output and failed compilation. CI repeats it over HTTP and stdio in Docker.
Linux x86-64 is the tested platform. The Compose setup avoids host-path assumptions for Docker Desktop, but macOS, Windows/WSL and ARM have not been verified on hardware.
License and relationship to Overleaf
Application code: MIT. Dependencies and TeX packages retain their own licenses; see third-party notices.
This is an independent implementation inspired by Overleaf's browser editing workflow, not an Overleaf fork or an official Overleaf product. The compiler image uses Debian TeX Live packages and does not package the Overleaf server. REA was used to study the reference workflow; private analysis captures are not distributed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent AI LaTeX workspace: edit and compile multi-file projects, export publication-ready PDFs.
A hosted LaTeX editor your assistant can actually use. Search 1,019 free templates, create and edit projects, and compile them to PDF on a real TeX Live farm, getting back the PDF or the compile log when a build fails. Thirteen tools behind OAuth 2.1, with nothing to install and nothing to run locally.
Collaborative LaTeX editor: edit, compile and share PDFs, with full version history.
MCP-native collaborative markdown editor with real-time AI document editing
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to read, write, and compile LaTeX projects locally, view PDF pages as images, and manage project files, with live updates reflected in a web-based editor.-
- AlicenseAqualityBmaintenanceEnables AI agents to read, write, compile, and manage Overleaf projects through MCP, including file operations, project administration, and LaTeX compilation diagnostics.163 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read, edit, upload, compile, and manage projects in a self-hosted Overleaf Community Edition via MCP, while also providing a git remote for cloning and pushing changes.1MIT
- AlicenseAqualityBmaintenanceEnables collaborative LaTeX editing on Overleaf with tracked changes, review comments, compilation, file management, and downloads via a single MCP connection.261AGPL 3.0