create_pdf_from_markdownLABSCO SUMMARY
Rendering through a browser engine is why the diagrams and fonts actually come out right.
The lightweight Markdown-to-PDF converters produce something that looks like an early word-processor printout, because they implement their own layout. Driving a real rendering engine means the CSS you already use works, web fonts load, and a Mermaid diagram is a diagram rather than a code block. The cost is a heavier dependency; for anything a person will actually read, it is worth paying.
What it is
A converter that renders Markdown to PDF through a browser engine, which is what lets modern CSS and web fonts survive the trip.
What you get
- Markdown to PDF in one call
- Syntax highlighting for code blocks
- Custom CSS styling
- Mermaid diagrams rendered rather than left as code
- Optional watermarking
Requirements
Node. MIT licensed.
Setup effort
One command — npx -y markdown2pdf-mcp@latest
USE CASES
Turning notes into something sendable
Markdown in, styled PDF out.
Keeping the diagrams
Mermaid rendered rather than printed as source.
Matching a house style
Custom CSS, and a watermark when a draft needs marking.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
npx on PATH
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
npx -y markdown2pdf-mcp@latestMCP Clients
Cline, Claude Desktop
{
"mcpServers": {
"markdown2pdf": {
"command": "npx",
"args": [
"-y",
"markdown2pdf-mcp@latest"
],
"env": {
"M2P_OUTPUT_DIR": "<YOUR_M2P_OUTPUT_DIR>"
}
}
}
}M2P_OUTPUT_DIR is the folder the PDFs are written to; without it they go to your home folder.