Convert markdown (.md) files into professional, interactive PDF documents with automatic table of contents. mcp-name: io.github.wmarceau/md-to-pdf - 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 - Markdow
Add this skill
npx mdskills install MarceauSolutions/md-to-pdf-mcpWell-documented MCP server with useful PDF conversion tools and clear setup instructions
Convert markdown (.md) files into professional, interactive PDF documents with automatic table of contents.
mcp-name: io.github.wmarceau/md-to-pdf
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 file
brew install pango cairo
# 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-toc
# Install MCP SDK
pip install mcp
# Run MCP server
python mcp-server/md_to_pdf_mcp.py
| Tool | Description |
|---|---|
convert_markdown_to_pdf | Convert markdown to PDF with optional TOC |
extract_toc | Extract table of contents structure |
get_default_styles | Get default CSS for customization |
See SKILL.md for detailed MCP tool documentation.
Current version: 1.0.0
MIT License
Install via CLI
npx mdskills install MarceauSolutions/md-to-pdf-mcpMarkdown to PDF Converter is a free, open-source AI agent skill. Convert markdown (.md) files into professional, interactive PDF documents with automatic table of contents. mcp-name: io.github.wmarceau/md-to-pdf - 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 - Markdow
Install Markdown to PDF Converter with a single command:
npx mdskills install MarceauSolutions/md-to-pdf-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
Markdown to PDF Converter works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.