1. Conduid
  2. Content
  3. Markdown2pdf MCP
MCP server · Content

Markdown2pdf MCP

MCP Server for converting markdown to PDF

56Fair

Scored 20 hours ago · breakdown

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 Code
claude mcp add markdown2pdf-mcp -- npx -y markdown2pdf-mcp
npx
npx -y markdown2pdf-mcp
From source
git clone https://github.com/2b3pro/markdown2pdf-mcp

Tools (3)

batch_create_pdfBatch convert multiple Markdown documents or files to PDF in a single call using a shared browser session for fast processing.
ParameterTypeDescription
documents *arrayList of documents to convert in this batch.
sharedConfigobjectDefault 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.
ParameterTypeDescription
customCssstringOptional custom CSS to inject into the document for custom styling.
footerTextstringOptional custom text to display in the footer.
headerTextstringOptional custom text to display in the header.
inputPathstringPath to a local markdown file on disk to convert. Alternative to passing raw markdown string.
marginobjectAsymmetric margins for the PDF (top, right, bottom, left). Overrides paperBorder when provided.
markdown *stringMarkdown content to convert to PDF
outputFilenamestringFilename or path for the PDF (default: "output.pdf"). Absolute paths are used as-is; relative paths are placed under M2P_OUTPUT_DIR or HOME.
paperBorderstringUniform border margin for the PDF (default: 2cm). Use CSS units (cm, mm, in, px).
paperFormatstringPaper format for the PDF (default: letter)
paperOrientationstringPaper orientation for the PDF (default: portrait)
showPageNumbersbooleanInclude page numbers in the PDF footer (default: false)
themestringVisual styling theme: "default" (modern clean), "github" (GitHub markdown), "academic" (formal paper), "report" (executive report), "minimal" (lightweight minimalist).
watermarkstringOptional watermark text (max 15 characters, uppercase), e.g. "DRAFT", "CONFIDENTIAL".
watermarkScopestringControl 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.
ParameterTypeDescription
inputPathstringPath to markdown file on disk to validate
markdownstringMarkdown 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

v2.3.0v2.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 linting, visual themes, custom styling, and performance optimizations. 🚀…
v2.2.0v2.2.0 · 10 Oct 2026!markdown2pdf-mcp: Markdown in, polished PDF out Security Fixes a high severity local file disclosure and SSRF vulnerability (GHSA-r476-vv4c-fhqx). In earlier versions, markdown passed to `create_pdf_from_markdown` could read local files…
v2.1.3v2.1.3 · 7 Oct 2025Added watermark on all pages and page numbers

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
Questions

About Markdown2pdf MCP

How do I install Markdown2pdf MCP?

In Claude Code, run claude mcp add markdown2pdf-mcp -- npx -y markdown2pdf-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Markdown2pdf MCP safe to use with an AI agent?

Its trust score is 56 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 7 source files found that it serves MCP over stdio and writes or deletes files (5 calls). Its dependencies are pinned by package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Markdown2pdf MCP still maintained?

Yes — the latest release is v2.3.0 (13 Oct 2026), and the last commit was a month ago. The repository has 39 stars.

What tools does Markdown2pdf MCP provide?

Conduid read 3 tools from the source: batch_create_pdf, create_pdf_from_markdown and validate_markdown. 3 of them publish their parameters, listed under Tools above.

What license is Markdown2pdf MCP released under?

The repository declares the MIT license. That applies to the latest release, v2.3.0, as well.