Skip to main content
Glama
kareemaly

MD-PDF MCP Server

by kareemaly

convert_markdown_file_to_pdf

Convert Markdown files to PDF documents with customizable formatting options including output size and PDF engine selection.

Instructions

Convert a Markdown file to PDF with customizable formatting options.

Args: working_dir: Absolute path to the working directory for file operations markdown_file_path: Path to the markdown file relative to working_dir output_filename: Name of the output PDF file relative to working_dir (if not provided, uses same name as input with .pdf extension) size: Output size - 's' (small/compact), 'm' (medium), 'l' (large/detailed) (default: l) pdf_engine: PDF engine to use - weasyprint or pdflatex (default: weasyprint)

Returns: A message indicating success or failure of the conversion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
working_dirYes
markdown_file_pathYes
output_filenameNo
sizeNol
pdf_engineNoweasyprint

Latest Blog Posts

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/kareemaly/md-pdf-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server