io.github.SepineTam/latex-mcp
Enable AI agents to compile TeX files with LaTeX inside a Docker container.
Versions
0.1.3latestTools 3
latex_compile Compile a TeX file to PDF using LaTeX. Args: tex_file: Path to the main .tex file (relative to working_dir) mode: Compilation mode - 'auto' uses latexmk, 'manual' uses direct compiler compiler: LaTeX compiler to use - 'pdflatex', 'xelatex', or 'lualatex' working_dir: Working directory for compilation bibliography: Path to .bib file (only used in manual mode) compile_times: Number of compilation passes, 1-5 (only used in manual mode) options: Additional compiler options clean_after: Whether to clean auxiliary files after compilation Returns: JSON string with success status, pdf_path, log, errors, and warnings
latex_list_compilers List all available LaTeX compilers in the environment. Returns: JSON string with compilers list, aux_commands list, and latexmk_available bool
latex_clean Clean auxiliary files generated during LaTeX compilation. Args: working_dir: Working directory to clean tex_file: Specific .tex file to clean auxiliary files for. If None, cleans all auxiliary files in the directory. Returns: JSON string with success status, removed_files list, and message
Permissions 1
filesystem low