LateXPDF MCP Server

MCP server creating a PDF from LaTeX source code

Local serverstdioPython

What is the LateXPDF MCP Server?

MCP server creating a PDF from LaTeX source code

What the server does

A Model Context Protocol (MCP) server that provides tools for converting LaTeX source code into PDF documents. This server enables AI assistants to generate high-quality PDF documents from LaTeX markup with professional formatting capabilities.

  • LaTeX to PDF Conversion — Convert LaTeX source code directly to PDF format
  • Professional Document Generation — Supports all standard LaTeX features for academic and professional documents
  • Local File Generation — Creates PDF files in a specified directory for easy access
  • HTTP Server Integration — Generates downloadable links for created PDFs
  • Error Handling — Comprehensive error reporting for LaTeX compilation issues

Credentials and setup notes

Before using this MCP server, ensure you have: 1. Node.js (version 18 or higher) 2. LaTeX Distribution: A complete LaTeX installation such as: - Windows: MiKTeX or TeX Live - macOS: MacTeX - Linux: TeX Live (install via package manager) 3. latexmk: Usually included with LaTeX distributions

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
create_pdf

How to install the LateXPDF MCP Server

{
  "mcpServers": {
    "latexpdf-mcp": {
      "command": "latexpdf-mcp",
      "env": {
        "LATEXPDF_OUTPUT_DIR": "/path/to/your/pdf/directory"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

Before using this MCP server, ensure you have: 1. Node.js (version 18 or higher) 2. LaTeX Distribution: A complete LaTeX installation such as: - Windows: MiKTeX or TeX Live - macOS: MacTeX - Linux: TeX Live (install via package manager) 3. latexmk: Usually included with LaTeX distributions

VariableDescriptionRequired
LATEXPDF_OUTPUT_DIRDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use LateXPDF MCP to create pdf.”
  • “Use LateXPDF MCP to Building.”

Frequently asked questions

MCP server creating a PDF from LaTeX source code Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.