Markdown2PdfSAFE
MCP Server for converting markdown to PDF
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/2b3pro-markdown2pdf-mcp)
An MCP server for converting Markdown documents to PDF files. This server provides a simple and efficient way to generate PDFs from Markdown content with support for syntax highlighting, custom styling, optional page numbers, and flexible watermark placement (first page only or all pages).
Inspired by Alan Shaw's markdown-pdf.
Features
- Convert Markdown to PDF with a single command
- Syntax highlighting for code blocks
- Custom CSS styling for PDF output
- Support for standard Markdown formatting
- Mermaid diagram rendering
- Modern PDF generation using Chrome's rendering engine
- Excellent support for modern web features and fonts
- Reliable resource loading and rendering
- Optional page numbers rendered via the PDF footer
- Watermarks with configurable scope (first page or all pages)
Limitations
The following markdown elements are not supported:
- LaTeX math equations (e.g.,
$x^2$or$$\sum_{i=1}^n x_i$$) - Complex mathematical formulas or scientific notation
Stick to these supported markdown elements:
- Headers (all levels)
- Text formatting (bold, italic, strikethrough)
- Lists (ordered and unordered)
- Code blocks with syntax highlighting
- Tables
- Blockquotes
- Links
- Images (both local files and external URLs)
- Task lists
- Mermaid diagrams
Mermaid Diagrams
To render a Mermaid diagram, use a mermaid code block:
́ ́ ́markdown
graph TD; A-->B; A-->C; B-->D; C-->D;
́ ́ ́
If there is a syntax error in your diagram, the error message will be rendered in the PDF, helping you to debug it.
Installation (from source)
# Clone the repository git clone https://github.com/2b3pro/markdown2pdf-mcp.git # Navigate to the project direct
b20dee43eb2cOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add markdown2pdf-mcp -- npx -y [email protected]
{
"mcpServers": {
"markdown2pdf-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
0 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
create_pdf_from_markdown | write | Convert markdown content to PDF. Supports basic markdown elements like headers, lists, tables, code blocks, blockquotes, images (both local and external URLs), and Mermaid diagrams. Note: Cannot handle LaTeX math equations. Mermaid syntax errors will be displayed directly in the PDF output. |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, highlight.js, remarkable, tmp, @types/jest, @types/node, @types/tmp, jest
Gates applied: no_behavioural_pass.
b20dee43eb2cfull audit observations/trust-audit/mcp-server/2b3pro__markdown2pdf-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | b20dee43eb2c | SAFE | B | 89 | first audit |
Questions
What is the Markdown2Pdf MCP server?
MCP Server for converting markdown to PDF
What tools does Markdown2Pdf expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Markdown2Pdf safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Markdown2Pdf need?
No credential environment variables were found in its source, so it appears to need none.
How does Markdown2Pdf run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as markdown2pdf-mcp at 2.1.6.
How current is this page?
The grade is for one exact copy of the source (b20dee43eb2c), read on 2026-10-08. The repository is watched and re-audited when it changes.