io.github.wmarceau/md-to-pdf
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.wmarceau/md-to-pdfconvert README.md to PDF with table of contents"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Markdown to PDF Converter
Convert markdown (.md) files into professional, interactive PDF documents with automatic table of contents.
mcp-name: io.github.wmarceau/md-to-pdf
Features
Automatic Table of Contents - Generated from markdown headers
Interactive Navigation - Clickable TOC links to sections
Professional Styling - Clean, readable PDF output
Code Block Support - Syntax highlighting preserved
Table Support - Markdown tables convert to PDF tables
Image Support - Embedded images in PDFs
Batch Conversion - Process multiple files at once
MCP Integration - Use as an MCP server for AI assistants
Related MCP server: Markdown2PDF MCP Server
Use Cases
Convert documentation to shareable PDFs
Create professional reports from markdown
Generate user manuals with navigation
Archive markdown content in PDF format
Prepare presentations or handouts
AI-powered document generation workflows
Project Structure
md-to-pdf/
├── src/
│ ├── md_to_pdf.py # Core conversion logic
│ └── convert.sh # Wrapper script (sets library paths)
├── mcp-server/
│ └── md_to_pdf_mcp.py # MCP server wrapper
├── registry/
│ └── manifest.json # MCP Registry manifest
├── workflows/
│ └── convert-md-to-pdf.md # Conversion workflow guide
├── testing/ # Multi-agent test infrastructure
├── VERSION # Current version
├── CHANGELOG.md # Version history
├── SKILL.md # MCP skill documentation
└── README.md # This fileRequirements
Python 3.8+
markdown2 (markdown parsing)
weasyprint (PDF generation)
pygments (code syntax highlighting)
mcp (MCP server - for MCP mode only)
macOS Additional Requirements
brew install pango cairoQuick Start
CLI Usage
# Set library path (macOS)
export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH
# Convert single file
python src/md_to_pdf.py input.md output.pdf
# Using wrapper script
./src/convert.sh input.md output.pdf
# Batch convert
python src/md_to_pdf.py "docs/*.md" --output-dir pdfs/
# With custom styling
python src/md_to_pdf.py input.md output.pdf --css custom.css
# Without table of contents
python src/md_to_pdf.py input.md output.pdf --no-tocMCP Server Usage
# Install MCP SDK
pip install mcp
# Run MCP server
python mcp-server/md_to_pdf_mcp.pyMCP Tools
Tool | Description |
| Convert markdown to PDF with optional TOC |
| Extract table of contents structure |
| Get default CSS for customization |
See SKILL.md for detailed MCP tool documentation.
Version
Current version: 1.0.0
License
MIT License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables AI assistants to generate professional PDF documents from markdown content with advanced typography, syntax highlighting, math equations, dark mode, and customizable styling options.Last updatedMIT
- AlicenseAqualityDmaintenanceConverts Markdown documents to PDF files with support for syntax highlighting, custom styling, Mermaid diagrams, optional page numbers, and configurable watermarks.Last updated175MIT
- Flicense-qualityDmaintenanceProvides tools for converting Markdown content and files into professional PDF documents with full support for Mermaid diagrams and LaTeX rendering. It allows for high-quality output customization, including paper size, table of contents, and syntax highlighting styles.Last updated
- Flicense-qualityDmaintenanceConverts Markdown files and raw content into professionally styled PDFs with full support for Mermaid diagrams and syntax highlighting. It offers customizable page formats, margins, and modern typography for high-quality document generation.Last updated11
Related MCP Connectors
The document publishing layer for AI tools. Convert markdown to 6 destinations, 62 templates.
Turn a description into a shareable, editable PDF — invoices, certificates, reports, resumes.
Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MarceauSolutions/md-to-pdf-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server