md-pdf-mcp
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., "@md-pdf-mcp convert my meeting notes to a 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.
Convert-Markdown-PDF-MCP
An MCP server that turns Markdown into a styled PDF. The look follows VS Code's markdown preview, typeset with ReportLab and a bundled sans-serif family.
Status: built in February 2025 and retired once this kind of tooling became standard in model releases. Updated in November 2026 to run on the current MCP SDK, render general Markdown, and start from any directory. Kept working.

That page is tests/fixtures/sample.md rendered with the default theme. The full PDF is in docs/.
What It Renders
Headings one to six, paragraphs, bold, italic, inline code, links that stay clickable, ordered and bulleted lists, nested lists, blockquotes, tables, fenced code blocks, horizontal rules, and images (local paths or URLs, scaled to the page width). Nested list items need four spaces of indentation, which is Python-Markdown's rule.
Related MCP server: MCP MD2PDF Server
The Tool
convert_markdown takes:
markdown(required): the Markdown text.output_path(required): where to write the PDF..pdfis added if it's missing, and missing folders are created. Use an absolute path; a relative one resolves against the server's working directory.theme:light(the default) orhigh-contrast. It changes the colors of code blocks, quotes, and tables.
It returns the path it saved to. Failures come back as MCP tool errors.
Install
Requires uv, which installs Python 3.12 if needed.
git clone https://github.com/seanivore/Convert-Markdown-PDF-MCP.git
cd Convert-Markdown-PDF-MCP
uv sync
uv run pytestConnect It
Claude Code:
claude mcp add md-pdf -- uv --directory /absolute/path/to/Convert-Markdown-PDF-MCP run md-pdf-mcpClaude Desktop, in claude_desktop_config.json:
{
"mcpServers": {
"md-pdf": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/Convert-Markdown-PDF-MCP", "run", "md-pdf-mcp"]
}
}
}Use It From Python
from md_pdf_mcp import convert_markdown_to_pdf
convert_markdown_to_pdf("# Hello\n\nSome **bold** text.", "/tmp/hello.pdf", theme="light")How It Works
md_pdf_mcp/converter.py parses Markdown with Python-Markdown, walks the resulting HTML, and builds ReportLab flowables. md_pdf_mcp/vscode_styles.py holds the type scale and colors, modeled on VS Code's markdown preview stylesheet, which is kept in docs/markdown.css. ReportLab replaced an earlier WeasyPrint attempt. The fonts are IBM Plex Sans, under the SIL Open Font License (md_pdf_mcp/fonts/TTF/OFL.txt). They live inside the package, so the server starts from any working directory.
Development
uv run pytestruns the converter tests and an MCP test that starts the server from another directory.npx @modelcontextprotocol/inspector uv --directory . run md-pdf-mcpopens the MCP Inspector.
Available Tools
1 toolconvert_markdownA
Convert a Markdown string to a styled PDF file.
Args:
markdown: The Markdown content to convert.
output_path: Where to write the PDF. ".pdf" is appended if missing. Relative paths
resolve against the server's working directory, so pass an absolute path.
theme: "light" (default) or "high-contrast". Changes code-block, quote, and table colors.
Inputs: markdown (required), output_path (required), theme. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of confusing it with another operation. Its name and description make its single purpose clear.
The single tool follows a clear verb_noun convention (convert_markdown), which would extend predictably if more conversion tools were added. There are no competing conventions to create inconsistency.
The server's scope is narrow — Markdown to PDF conversion — so one tool is defensible, but the surface is thin and offers no alternatives such as batch conversion or theme discovery. A single tool leaves little room for the agent to recover when the one call path does not fit the task.
The core conversion (Markdown string in, PDF out, with theme selection and path handling) is covered, but there are noticeable gaps: no file-input variant, no batch conversion, no page or margin configuration, and no way to enumerate the valid themes. Agents can work around these gaps only by doing extra work, such as reading files themselves.
Related MCP Connectors
I create PDF documents from markdown, preview, then generate a downloadable file
Turn Markdown or plain text into a clean PDF document to print or share, plus an editable Word file.
Render Markdown and LLM output into accessible PDF/UA-1 PDFs. No headless Chromium.
Extract text and metadata from PDFs; convert Markdown or text to PDF
Related MCP Servers
- AlicenseAqualityDmaintenanceConverts Markdown documents to PDF files with support for syntax highlighting, custom styling, Mermaid diagrams, optional page numbers, and configurable watermarks.1MIT
- FlicenseNot gradedqualityDmaintenanceProvides tools for converting Markdown content and files into professional PDF documents with full support for Mermaid diagrams and LaTeX rendering. It allows for high-quality output customization, including paper size, table of contents, and syntax highlighting styles.-
- AlicenseNot gradedqualityDmaintenanceConverts Markdown files and raw content into professionally styled PDFs with full support for Mermaid diagrams and syntax highlighting. It offers customizable page formats, margins, and modern typography for high-quality document generation.11MIT
- AlicenseNot gradedqualityDmaintenanceConverts markdown files into professional PDF documents with automatic table of contents and interactive navigation.8MIT