latex-mcp-server
Uploads compiled LaTeX PDFs to Cloudflare R2 for CDN delivery, with automated 24-hour lifecycle expiration and zero egress fees.
Compiles raw LaTeX source code into publication-quality PDFs using Tectonic, returning a direct download URL.
LaTeX to PDF MCP Server
A remote Model Context Protocol (MCP) server that compiles LaTeX documents into publication-quality PDFs via Tectonic and serves them via Cloudflare R2 CDN.
Features • Quick Start • Client Configuration • Architecture • Deployment
🚀 Key Features
Blazing-Fast Typesetting: Powered by a statically-linked Tectonic engine (
musl), eliminating bulky TeX Live dependencies and dynamic link issues.Global CDN Delivery: Direct PDF uploads to Cloudflare R2 with zero egress fees and automated 24-hour lifecycle expiration.
Autonomous Error Self-Correction: When syntax or rendering errors occur, raw compiler diagnostics are fed back to the LLM agent to automatically correct markup in the loop.
Universal Multi-Client Support: Out-of-the-box support for Gemini Spark, Claude Desktop / Claude Agent, and ChatGPT (via REST Actions).
Streamable HTTP & Host Resilience: Built with Starlette and FastMCP, featuring ASGI-level header normalization for reverse proxies like Render and Cloudflare.
Related MCP server: Overleaf MCP
🛠️ Tools & Capabilities
compile_latex
Compiles raw LaTeX source code into a publication-quality PDF.
Parameter | Type | Required | Description |
|
| Yes | Full LaTeX source code starting with |
|
| No | Short snake_case name for the output file (default: |
Output: Returns the Cloudflare R2 CDN URL formatted as a clean, direct download link.
🔌 Client Configuration
1. Gemini or ChatGpt (Custom Connected Apps/ Plugins)
Navigate to gemini.google.com/spark/apps or Settings → Connected Apps.
Click Connect custom app.
Enter your remote endpoint:
https://latex-mcp-server.onrender.com/mcp
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server: convert PDFs to clean, LLM-ready Markdown with tables, formulas and OCR.
A MCP server built for developers enabling Git based project management with project and personal…
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server that converts Markdown to high-quality PDF documents using LaTeX, enabling AI agents like Claude to generate professional PDFs without requiring sign-ups or credit cards.1279 npm11MIT
- AlicenseNot gradedqualityAmaintenanceA 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.103 npm9AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server that renders LaTeX to PDF via pdflatex, supporting raw LaTeX and Jinja2 templates with artifact generation.11MIT
- AlicenseAqualityDmaintenanceAn MCP server that exposes LaTeX compilation, log parsing, dependency inspection, and citation checking as tools for AI agents, using latexmk under the hood.1112 npm1MIT