Atlas / MCP servers / 2b3pro / Markdown2Pdf

Markdown2PdfSAFE

mcp/2b3pro/markdown2pdf-1

MCP Server for converting markdown to PDF

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
1 0r · 1w · 0d
Transport
stdio
License
MIT
Stars
37
01

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
Read from source at commit b20dee43eb2cOBSERVED · 2026-10-08
02

Connect

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-code
claude mcp add markdown2pdf-mcp -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "markdown2pdf-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}
03

Exposed tools (1)

0 read · 1 write · 0 destructive.

ToolRiskDescription
create_pdf_from_markdownwriteConvert 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.
04

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.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (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)

LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, highlight.js, remarkable, tmp, @types/jest, @types/node, @types/tmp, jest
Why it matters. 10 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha b20dee43eb2cfull audit observations/trust-audit/mcp-server/2b3pro__markdown2pdf-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-08b20dee43eb2cSAFEB89first audit
06

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.

Advertisement