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
1# Markdown to PDF Converter23Convert markdown (.md) files into professional, interactive PDF documents with automatic table of contents.45mcp-name: io.github.wmarceau/md-to-pdf67## Features89- **Automatic Table of Contents** - Generated from markdown headers10- **Interactive Navigation** - Clickable TOC links to sections11- **Professional Styling** - Clean, readable PDF output12- **Code Block Support** - Syntax highlighting preserved13- **Table Support** - Markdown tables convert to PDF tables14- **Image Support** - Embedded images in PDFs15- **Batch Conversion** - Process multiple files at once16- **MCP Integration** - Use as an MCP server for AI assistants1718## Use Cases1920- Convert documentation to shareable PDFs21- Create professional reports from markdown22- Generate user manuals with navigation23- Archive markdown content in PDF format24- Prepare presentations or handouts25- AI-powered document generation workflows2627## Project Structure2829```30md-to-pdf/31├── src/32│ ├── md_to_pdf.py # Core conversion logic33│ └── convert.sh # Wrapper script (sets library paths)34├── mcp-server/35│ └── md_to_pdf_mcp.py # MCP server wrapper36├── registry/37│ └── manifest.json # MCP Registry manifest38├── workflows/39│ └── convert-md-to-pdf.md # Conversion workflow guide40├── testing/ # Multi-agent test infrastructure41├── VERSION # Current version42├── CHANGELOG.md # Version history43├── SKILL.md # MCP skill documentation44└── README.md # This file45```4647## Requirements4849- Python 3.8+50- markdown2 (markdown parsing)51- weasyprint (PDF generation)52- pygments (code syntax highlighting)53- mcp (MCP server - for MCP mode only)5455### macOS Additional Requirements5657```bash58brew install pango cairo59```6061## Quick Start6263### CLI Usage6465```bash66# Set library path (macOS)67export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH6869# Convert single file70python src/md_to_pdf.py input.md output.pdf7172# Using wrapper script73./src/convert.sh input.md output.pdf7475# Batch convert76python src/md_to_pdf.py "docs/*.md" --output-dir pdfs/7778# With custom styling79python src/md_to_pdf.py input.md output.pdf --css custom.css8081# Without table of contents82python src/md_to_pdf.py input.md output.pdf --no-toc83```8485### MCP Server Usage8687```bash88# Install MCP SDK89pip install mcp9091# Run MCP server92python mcp-server/md_to_pdf_mcp.py93```9495## MCP Tools9697| Tool | Description |98|------|-------------|99| `convert_markdown_to_pdf` | Convert markdown to PDF with optional TOC |100| `extract_toc` | Extract table of contents structure |101| `get_default_styles` | Get default CSS for customization |102103See [SKILL.md](SKILL.md) for detailed MCP tool documentation.104105## Version106107Current version: 1.0.0108109## License110111MIT License112
Full transparency — inspect the skill content before installing.