Labsco
tobioffice logo

LaTeX PDF MCP Server

β˜… 1

from tobioffice

Converts LaTeX source code into professionally formatted PDF documents.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeAdvanced setup

LaTeX PDF MCP Server

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.

Features

  • 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

PDF Access

After generating a PDF, you can access it via HTTP server:

  1. Navigate to the output directory (default: C:\Users\Admin\Documents\GeneratedPDF, or your custom LATEXPDF_OUTPUT_DIR):
cd [YOUR_OUTPUT_DIRECTORY]
  1. Start a local HTTP server:
python -m http.server
  1. Access your PDFs at http://localhost:8000/[filename].pdf

The server automatically provides download links in this format when PDFs are generated.

Development

Project Structure

latexpdf-mcp/
β”œβ”€β”€ index.ts              # Main server implementation
β”œβ”€β”€ package.json          # Package configuration
β”œβ”€β”€ tsconfig.json         # TypeScript configuration
β”œβ”€β”€ pnpm-lock.yaml        # Dependency lock file
└── dist/                 # Compiled JavaScript output

Building

pnpm run build

Development Mode

pnpm run watch

Author

Ihor Sokoliuk - GitHub Profile


This MCP server enables seamless LaTeX to PDF conversion within AI-assisted workflows, perfect for generating academic papers, technical documentation, and professional reports.