convez.ai
MCP ServerEscrita & ConteúdoIntermediário
MarceauSolutions

Markdown to PDF MCP

MarceauSolutions/md-to-pdf-mcp

Converta Markdown em PDFs profissionais com TOC automático e temas customizáveis

Ver no GitHub
InicialPluginScore · de 0 a 100

Servidor MCP que converte arquivos Markdown em PDFs profissionais com suporte a temas personalizáveis, índice automático e navegação interativa. Ideal para gerar documentação, relatórios e manuais diretamente do Claude Desktop.

Instalação

$npx convez-ai MarceauSolutions/md-to-pdf-mcp

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
8
Forks
2
Acompanhando
0
Saúde
37%
Último commit
há 10 meses
Versão
—
Issues abertas
1
Contribuidores
1

Casos de uso

  • Gerar documentação técnica em PDF a partir de markdown
  • Criar relatórios profissionais com navegação interativa
  • Converter fluxos de trabalho AI em documentos formatados
  • Arquivar conteúdo markdown em formato PDF compartilhável

Veredito

Ferramenta sólida e prática para automação de conversão Markdown→PDF via MCP. Código bem estruturado com suporte a sintaxe, tabelas e imagens. Integração direta com Claude Desktop a torna acessível para fluxos de documentação.

README

A tradução para o português deste README ainda está na fila.

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

Ver o original no GitHub

Bom para

Relacionados