md2pdf-mcp
Converts Markdown text to PDF files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@md2pdf-mcpconvert this markdown to PDF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
md2pdf-mcp
MCP Server for Markdown to PDF conversion.
Description
This server provides a tool to convert Markdown text to PDF files using the convert_markdown library. It's designed to work as an MCP (Model Context Protocol) server that can be integrated with various AI assistants and applications.
Related MCP server: markdown2pdf-mcp
Features
Convert Markdown text to well-formatted PDF files
Random filename generation using UUID to avoid conflicts
Configurable output directory via environment variables
Returns resource links with metadata for easy integration
Built on FastMCP for reliable MCP server functionality
Installation
You can install and run this tool using uvx:
uvx --from md2pdf-mcp md2pdfUsage
As MCP Server
Configure the server in your MCP client configuration:
{
"mcpServers": {
"md2pdf": {
"command": "uvx",
"args": ["--from", "md2pdf-mcp", "md2pdf"],
"env": {
"PDF_OUTPUT_DIR": "/path/to/output/folder"
}
}
}
}Available Tools
The server provides one tool:
convert_md_to_pdf
Converts Markdown text to a PDF file.
Parameters:
markdown_text(string): The Markdown content to convert
Returns: A JSON string containing:
type: "resource_link"uri: File URI of the generated PDFname: Generated filename (UUID-based)mimeType: "application/pdf"annotations: Metadata including audience, priority, and last modified timestamp
Environment Variables
PDF_OUTPUT_DIR: Directory where PDF files will be saved (defaults to user's home directory)
Example Usage
Once the server is running, you can call the tool through your MCP client:
{
"mcpServers": {
"md2pdf": {
"command": "uvx",
"args": ["--from", "md2pdf-mcp", "md2pdf"],
"env": {
"PDF_OUTPUT_DIR": "/path/to/output/folder"
}
}
}
}License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
HTML and CSS to PDF MCP server with page headers, footers and page numbers. No headless browser.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, PDF, DOCX (.docx), csv and more.1582MIT
- AlicenseAqualityCmaintenanceAn MCP server for converting Markdown documents to PDF files.145 npm37MIT
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.137 npm140MIT

pymupdf4llm-mcpofficial
AlicenseNot gradedqualityCmaintenanceMCP server for exporting PDF to markdown, optimized for LLM consumption.5,254 PyPI71AGPL 3.0