About Markdown2pdf MCP
Markdown2pdf MCP is an MCP server published by 2b3pro in the Content category: mCP Server for converting markdown to PDF. Conduid read 3 tools from its source: batch_create_pdf, create_pdf_from_markdown and validate_markdown. It is published to npm as markdown2pdf-mcp and starts with npx.
The repository has 39 stars and 19 forks, is licensed MIT, and its last commit was on 13 Oct 2026. The latest release is v2.3.0 (13 Oct 2026): !markdown2pdf-mcp: Markdown in, polished PDF out What's New in v2.3.0 This release expands markdown2pdf-mcp into a multi-tool suite with batch processing, pre-flight lin… It follows v2.2.0 (10 Oct 2026), and the 3 most recent releases go back to v2.1.3 (7 Oct 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include bitcoin, bitcoin-wallet, conversion, converter, l402 and lightning-network.
Install
claude mcp add markdown2pdf-mcp -- npx -y markdown2pdf-mcpnpx -y markdown2pdf-mcpgit clone https://github.com/2b3pro/markdown2pdf-mcpTools (3)
batch_create_pdfBatch convert multiple Markdown documents or files to PDF in a single call using a shared browser session for fast processing.| Parameter | Type | Description |
|---|---|---|
| documents * | array | List of documents to convert in this batch. |
| sharedConfig | object | Default configuration applied to all documents in the batch unless overridden. |
create_pdf_from_markdownConvert markdown content to PDF. Supports headers, lists, tables, code blocks with syntax highlighting, blockquotes, images, and Mermaid diagrams. Built-in themes include default, github, academic, report, and minimal. For security, rendering is self-contained: raw HTML is not executed, and images load only from base64 data URIs or relative paths inside M2P_ASSETS_DIR. External URLs are blocked by default.| Parameter | Type | Description |
|---|---|---|
| customCss | string | Optional custom CSS to inject into the document for custom styling. |
| footerText | string | Optional custom text to display in the footer. |
| headerText | string | Optional custom text to display in the header. |
| inputPath | string | Path to a local markdown file on disk to convert. Alternative to passing raw markdown string. |
| margin | object | Asymmetric margins for the PDF (top, right, bottom, left). Overrides paperBorder when provided. |
| markdown * | string | Markdown content to convert to PDF |
| outputFilename | string | Filename or path for the PDF (default: "output.pdf"). Absolute paths are used as-is; relative paths are placed under M2P_OUTPUT_DIR or HOME. |
| paperBorder | string | Uniform border margin for the PDF (default: 2cm). Use CSS units (cm, mm, in, px). |
| paperFormat | string | Paper format for the PDF (default: letter) |
| paperOrientation | string | Paper orientation for the PDF (default: portrait) |
| showPageNumbers | boolean | Include page numbers in the PDF footer (default: false) |
| theme | string | Visual styling theme: "default" (modern clean), "github" (GitHub markdown), "academic" (formal paper), "report" (executive report), "minimal" (lightweight minimalist). |
| watermark | string | Optional watermark text (max 15 characters, uppercase), e.g. "DRAFT", "CONFIDENTIAL". |
| watermarkScope | string | Control watermark visibility: "all-pages" repeats on every page, "first-page" displays on first page only (default: all-pages). |
validate_markdownPre-flight validation for markdown content before PDF conversion. Checks size limits, detects unsupported LaTeX math formulas, alerts about stripped HTML tags, validates Mermaid diagram structure, and checks image paths without launching a browser.| Parameter | Type | Description |
|---|---|---|
| inputPath | string | Path to markdown file on disk to validate |
| markdown | string | Markdown content to validate |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 7 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:3
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 5 callssrc/index.ts:323, src/index.ts:486, src/index.ts:616
- Lockfile
- package-lock.json
Pattern matches on the source text of 7 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README