FastMCP LaTeX Server (tex-mcp)
A small FastMCP-based Microservice that renders LaTeX to PDF. The server exposes MCP tools
to render raw LaTeX or templates and produces artifacts (a .tex file and .pdf)
under src/artifacts/.
This repository is prepared to run locally and to be loaded by Claude Desktop (via the
Model Context Protocol). The default entrypoint is run_server.py.
Demo
Quick features
- Render raw LaTeX to
.texand (optionally).pdfusing pdflatex - Render Jinja2 templates and compile to PDF
- Designed to run as an MCP server for Claude Desktop and other MCP-capable clients
Tools exposed by this MCP server
- Total tools: 5
- render_latex_document — write LaTeX and optionally compile to PDF
- render_template_document — render a Jinja2 template and optionally compile
- list_templates — list available templates
- list_artifacts — list files produced in
src/artifacts/ - get_template — return the raw contents of a template file so clients can inspect it before rendering
Getting started (local development)
Prerequisites








