Skip to main content
Glama
kareemaly

MD-PDF MCP Server

by kareemaly

convert_markdown_to_pdf

Convert Markdown content to PDF documents with customizable formatting options, output sizes, and PDF engine selection.

Instructions

Convert Markdown content to PDF with customizable formatting options.

Args: working_dir: Absolute path to the working directory for file operations markdown_content: The markdown content to convert to PDF output_filename: Name of the output PDF file relative to working_dir (default: output.pdf) 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_contentYes
output_filenameNooutput.pdf
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