Markdown2PDF MCP Server (markdown2pdf-mcp)
MCP Server for converting markdown to PDF
Overview
Markdown2PDF MCP is a server application designed to convert Markdown documents into PDF files efficiently, supporting syntax highlighting and custom styling.
To use the Markdown2PDF MCP, clone the repository, install the dependencies, and start the server. You can then use the create_pdf_from_markdown tool to convert your Markdown content into a PDF.
- Convert Markdown to PDF with a single command - Syntax highlighting for code blocks - Custom CSS styling for PDF output - Support for standard Markdown formatting - Modern PDF generation using Chrome's rendering engine - Watermarking capability on the first page
- Generating reports from Markdown documentation
- Creating styled PDFs for presentations
- Converting technical documentation into shareable PDF formats
Add to your AI client
Use these steps to connect Markdown2PDF MCP Server (markdown2pdf-mcp) in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"markdown2pdf-mcp-2b3pro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"markdown2pdf-mcp-2b3pro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"markdown2pdf-mcp-2b3pro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"markdown2pdf-mcp-2b3pro": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"markdown2pdf-mcp-2b3pro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"markdown2pdf-mcp-2b3pro": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-markdown2pdf-mcp-2b3pro"
]
}
}
}FAQ
What Markdown elements are supported?
Headers, text formatting, lists, code blocks, tables, blockquotes, links, images, and task lists are supported.
Are there any limitations?
Yes, LaTeX math equations and complex mathematical formulas are not supported.
Is there a watermark feature?
Yes, you can add a watermark to the first page of the PDF.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":763,"uuid":"ce10344a-5a9f-4daf-bbf1-309d33afaffa","name":"markdown2pdf-mcp","title":"Markdown2PDF MCP Server (markdown2pdf-mcp)","description":"MCP Server for converting markdown to PDF","avatar_url":"https://avatars.githubusercontent.com/u/916765?v=4","created_at":"2024-12-30T03:29:42.454Z","updated_at":"2025-02-23T07:18:50.353Z","status":"created","author_name":"2b3pro","author_avatar_url":"https://avatars.githubusercontent.com/u/916765?v=4","tags":"markdown2pdf,pdf-converter,markdown-to-pdf","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/2b3pro/markdown2pdf-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]