Labsco
MCP SERVER

MD-PDF MCP Server

by kareemaly

Turn Markdown into a PDF at the density you want, and pull Markdown, text or metadata back out of a PDF.

Document Conversion, PDF & Translation
Summary
Markdown out to a PDF, and PDFs back to something you can edit.

Both directions sit in one server, with the layout question reduced to picking small, medium or large — enough to hand someone a readable document without opening a word processor.

What it is

A two-way converter between Markdown and PDF, run locally through pandoc. Conversion goes both directions and nothing leaves the machine.

What you get
  • Markdown to PDF from content passed inline, or from a file already on disk
  • Density presets instead of a stylesheet — pick how tight the type and margins should be on the conversion call
  • A choice of PDF engine on the conversion call
  • PDF back to Markdown, so a document you were sent becomes editable text
  • Text lifted from the specific pages you name, and the PDF's own metadata read off the file
Requirements

Uv and Python, plus pandoc and weasyprint installed locally — the conversion runs through them. No account, no key and no upload: files are read and written on the machine running the server.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary