M
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

Md To Pdf Mcp

MarceauSolutions
šŸ“‚ File Systems
0 Views
0 Installs

šŸ šŸ  šŸŽ 🪟 🐧 - Convert Markdown files to professional PDFs with customizable themes, headers, footers, and styling

Quick Install

One-Click IDE Configuration
claude_desktop_config.json
{
  "mcpServers": {
    "marceausolutions-md-to-pdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "marceausolutions-md-to-pdf-mcp"
      ]
    }
  }
}
Or

Using an AI coding agent (Claude Code, Cursor, etc.)? Copy a ready-made prompt that tells it to fetch the setup instructions and install this server for you.

Documentation Overview

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

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 file

Requirements

  • 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 cairo

Quick 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-toc

MCP Server Usage

# Install MCP SDK
pip install mcp

# Run MCP server
python mcp-server/md_to_pdf_mcp.py

MCP Tools

ToolDescription
convert_markdown_to_pdfConvert markdown to PDF with optional TOC
extract_tocExtract table of contents structure
get_default_stylesGet default CSS for customization

See SKILL.md for detailed MCP tool documentation.

Version

Current version: 1.0.0

License

MIT License

Related MCP Servers

S
Server Filesystem
Verified

šŸ“‡ šŸ  - Direct local file system access.

šŸ“‚ File Systems1 views
S
Smart Tree

šŸ¦€ šŸ  šŸŽ 🪟 🐧 - AI-native directory visualization with semantic analysis, ultra-compressed formats for AI consumption, and 10x token reduction. Supports quantum-semantic mode with intelligent file categorization.

šŸ“‚ File Systems0 views
C
Changethisfile Mcp

šŸ“‡ ā˜ļø - Free file conversion between 690+ formats. Tools: convertfile (URL or base64 in → signed download URL out) and listconversions. Covers image, video, audio, document, data, font, ebook, and archive formats. No auth or signup required; remote streamable-HTTP endpoint available (see README).

šŸ“‚ File Systems0 views
F
Ftp Deploy Mcp

šŸ“‡ šŸ  šŸŽ 🪟 🐧 - Deploy files from AI agents to your own FTP/FTPS/SFTP servers — multi-server config, recursive deploy with dry-run and gitignore-like excludes, per-server path jail and read-only mode, FileZilla import, one-command setup for popular MCP clients.

šŸ“‚ File Systems0 views
ā˜… Featured

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

View ServerFeature your own server →

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Claim this listing

Promote this listing

Optional paid placement. Free listings stay free forever.

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.