Markdown2pdf MCP Server

MCP server for converting markdown to PDF - run with npx markdown2pdf-mcp to start the server

Local serverstdioTypeScript

What is the Markdown2pdf MCP Server?

MCP server for converting markdown to PDF - run with npx markdown2pdf-mcp to start the server

What it actually does

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).

  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Markdown2pdf MCP Server

{
  "mcpServers": {
    "markdown2pdf": {
      "args": [
        "/path/to/markdown2pdf-mcp/build/index.js"
      ],
      "env": {
        "M2P_OUTPUT_DIR": "/path/to/output/directory"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
M2P_OUTPUT_DIRDeclared in the maintainer’s client configuration.Check documentation

Frequently asked questions

MCP server for converting markdown to PDF - run with npx markdown2pdf-mcp to start the server Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.