latex-mcp
Compiles LaTeX documents and inspects the resulting PDF, supporting a write-compile-check-revise workflow for LaTeX projects.
Integrates with Overleaf's open-source CLSI (Common LaTeX Service Interface) to compile LaTeX documents and inspect the resulting PDF, enabling an autonomous write-compile-check-revise loop.
Click on "Install 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., "@latex-mcpcompile main.tex and open the PDF preview"
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.
latex-mcp
An open-source Model Context Protocol server that lets LLMs (Claude, Codex, Gemini/Antigravity, and other MCP-compatible clients) compile LaTeX documents and inspect the resulting PDF — enabling a fully autonomous write → compile → check → revise loop.
It talks to a self-hosted instance of Overleaf's open-source CLSI (Common LaTeX Service Interface) over HTTP, and also exposes a small web UI (in the spirit of Overleaf's editor) so a human can watch or collaborate on the same document a connected LLM is editing.
Status: early scaffolding, under active development.
Architecture
[LLM client (Claude / Codex / Antigravity / ...)] [Browser UI]
| MCP (stdio) | HTTP + WebSocket
v v
[latex-mcp backend service]
|
| HTTP REST
v
[Self-hosted CLSI] (Docker)
|
v
[TeX Live container] (actual compilation)Related MCP server: Overleaf MCP
Setup
Full setup instructions (CLSI via Docker, running the backend, and connecting from Claude Desktop, Claude Code, Codex CLI, Antigravity, and others) are coming as the project is built out.
License
MIT — see LICENSE. Note this project is independent and not affiliated with Overleaf; it only communicates with the open-source CLSI component over its HTTP API.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server for Overleaf that allows Claude or other agents to navigate projects, read and edit .tex files, compile, and interact with review-panel comments via Overleaf's real-time Socket.IO API, with seamless support for tracked changes as pending suggestions.Last updated542AGPL 3.0
- Alicense-qualityCmaintenanceA real-time MCP server that enables AI coding agents to read, write, and compile LaTeX projects in self-hosted Overleaf instances via native OT protocol.Last updated302AGPL 3.0
- Alicense-qualityDmaintenanceA Model Context Protocol server for programmatic creation, modification, and compilation of structured LaTeX documents.Last updated283Apache 2.0
- Alicense-qualityCmaintenanceAn MCP server that lets Claude read, write, and push Overleaf LaTeX projects from the chat, with token-efficient features like sparse checkout and smart diffs.Last updated11MIT
Related MCP Connectors
Read-only MCP over an agentic SLR workspace with per-claim citation verification
Read-only MCP over an agentic SLR workspace with per-claim citation verification
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/san-rat/latex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server