ferritex-mcp

v0.1.0
ferritex-mcp Checked 1 day ago Published 3 days ago

Model Context Protocol server exposing FerriTeX LaTeX-to-PDF compilation to AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

compile_latex_to_pdf

Compile LaTeX source to a PDF file on disk. Args: latex: A complete LaTeX document, from ``\documentclass`` to ``\end{document}``. output_path: Where to write the PDF, e.g. ``./paper.pdf``. engine: ``"fast"``, ``"full"`` or ``"auto"`` (default). ``"auto"`` tries the in-memory fast engine and falls back to the full engine when it is installed. margin: Optional uniform margin override, e.g. ``"1in"``. font_size: Optional base font size override, e.g. ``"11pt"``. Returns: A JSON-serialisable payload with…

ParameterTypeDescription
latex *string
output_path *string
enginestring
font_size
margin

validate_latex

Check LaTeX without producing a PDF. Use this to diagnose a document before compiling, or to verify a fix. It never writes to disk and returns structured line/column diagnostics so an agent can self-correct in a tight loop. Args: latex: The LaTeX document to check. Returns: A JSON-serialisable payload. ``valid`` is true when the document would compile; otherwise ``error`` names the failure category and ``message`` explains it, with ``line``, ``column``, ``snippet``, ``feature`` and ``hint`` where applicable.

ParameterTypeDescription
latex *string