\usepackage{mcp}
Su IA puede compilar
LaTeX ahora.
FormaTeX habla MCP. Dé a Claude, Cursor, Windsurf, Zed o cualquier editor compatible con MCP acceso directo a una pila completa de compilación LaTeX — sin cambios de contexto, sin infraestructura.
01
Usted le pide a su IA
Pídale a Claude, Cursor o cualquier asistente compatible con MCP que genere o compile un documento LaTeX.
02
MCP llama a FormaTeX
La IA llama a la herramienta MCP de FormaTeX con su LaTeX. Lo compilamos en un entorno aislado.
03
PDF devuelto en línea
El PDF compilado regresa a su conversación como un archivo base64 — listo para guardar o previsualizar.
\begin{tools}
9 tools, 0 setup friction
Your AI gets direct access to compile, validate, and inspect LaTeX — plus a guided prompt for debugging any error.
compile_smartAuto-detects the best engine, applies common fixes, and compiles in one call. The default tool for most workflows.
“Compile this LaTeX document to PDF”
compile_latexExplicit engine selection. Use when you need xelatex for Unicode, lualatex for scripting, or latexmk for citations.
“Compile using xelatex for this multilingual document”
check_syntaxValidates LaTeX syntax without compiling. Catches errors before consuming quota. Includes engine recommendation.
“Check this LaTeX for errors before compiling”
list_enginesReturns all available engines with descriptions and use cases. Helps the AI pick the right engine for the job.
“Which engine should I use for a document with Arabic text?”
get_usageReturns current month compilation stats and remaining quota. Useful before large batch compilation jobs.
“How many compilations do I have left this month?”
compile_asyncSubmits a compilation job asynchronously and returns a job ID immediately. Use get_job to poll the result. Best for large or batch jobs.
“Compile this document asynchronously and tell me when it's done”
get_jobPolls an async job by ID. Automatically fetches the PDF when complete, or the error log when failed. Use after compile_async.
“Check the status of job abc123 and get the PDF if ready”
list_templatesLists your saved LaTeX templates with IDs, names, and descriptions. Requires Pro plan. Use the ID with compile_template.
“List my saved LaTeX templates”
compile_templateCompiles a saved template by ID with optional variable substitutions. Returns the PDF as base64. Requires Pro plan.
“Compile my invoice template with name='Acme Corp' and amount='$500'”
fix_latexpromptA guided prompt that walks the AI through diagnosing compilation errors, finding root causes, and producing corrected source with an explanation.
“Use fix_latex to help me fix this error: [paste log]”
\begin{setup}
Two ways to connect
Use the hosted remote endpoint for zero-install setup, or build and run the binary locally for offline or air-gapped environments.
Add to your MCP config
Works with Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, Cline, and any client that supports Streamable HTTP. No binary download required.
{
"mcpServers": {
"formatex": {
"url": "https://mcp.formatex.io/mcp",
"headers": {
"Authorization": "Bearer fex_..."
}
}
}
}Replace fex_... with your FormaTeX API key from the dashboard.
Restart your client after saving. The formatex tools will appear in your next session.
Supported clients
Any client that supports the Model Context Protocol (MCP) over stdio or Streamable HTTP will work.

