Back to Browse

Markdown Pdf Export MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Markdown to PDF with your header, footer, page numbers and logo. Pages designed in Studio.

About

Markdown to PDF with your header, footer, page numbers and logo. Pages designed in Studio.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: 3 highly-trusted packages.

4 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

What You'll Need

Set these up before or after installing:

Settings file to use instead of ~/.config/markdown-pdf-export/settings.json, or settings as JSONOptional

Environment variable: MARKDOWN_PDF_SETTINGS

Browser that draws the PDF: chrome, msedge, chromium, or a path to a browser programOptional

Environment variable: MARKDOWN_PDF_BROWSER

Set to 1 to write a debug log to markdown-pdf-debug.log in the temp folderOptional

Environment variable: MARKDOWN_PDF_DEBUG

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "markdown-pdf-export": {
      "command": "npx",
      "args": [
        "-y",
        "markdown-pdf-export@2.11.1"
      ],
      "env": {
        "MARKDOWN_PDF_DEBUG": "your-markdown-pdf-debug-here",
        "MARKDOWN_PDF_BROWSER": "your-markdown-pdf-browser-here",
        "MARKDOWN_PDF_SETTINGS": "your-markdown-pdf-settings-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Markdown PDF Export

npm version npm downloads CI License: MIT

Turn Markdown files into clean PDFs from VS Code, Zed, Cursor, Claude or any AI assistant, or from the command line.

Full documentation: https://markdown-pdf.matinfo.tech/

Studio: page style, fonts, paper, header and footer on the left, a live preview of the PDF on the right

Get started

Using VS Code? Install the Markdown PDF Export extension (Open VSX): the PDF beside your Markdown as you type, Studio in the editor, export and the Copilot tools. No Node.js, no terminal. In Cursor it adds the preview, not the chat tools: see Cursor.

Everywhere else, you need:

  • Node.js 20 or newer (it comes with npx).
  • Google Chrome or Microsoft Edge. No Chromium browser? Run npx -y markdown-pdf-export install-browser once (about 200 MB).

Then run this line in a terminal:

npx -y markdown-pdf-export studio

Studio opens in your browser. Pick a page style, fonts, paper size, header and footer, and watch the real PDF update as you go. Click Save, then Add to my editor, and you are ready to export.

There is nothing to install first: npx downloads the package on first use and reuses it after. Prefer the terminal? Run npx -y markdown-pdf-export with no arguments for a small menu.

More: Get started · Studio · Design online, no install

Export a file

WhereHow
VS Code or Cursor, with the extensionThe button at the top right of the file, or in VS Code Cmd+K Cmd+E (Ctrl+K Ctrl+E)
Your editorRun the task Markdown: Export to PDF on the open file
AI assistantAsk: "Export this file to PDF"
Terminalnpx -y markdown-pdf-export report.md

The PDF is saved next to the Markdown file. To add the task or the assistant tool by hand, run npx -y markdown-pdf-export setup, or see Editors.

What you get

  • Five page styles: Clean, Report, Academic, Compact and Technical.
  • Headers and footers with the title, page numbers, the date and your logo.
  • Coloured code blocks, with a choice of colour themes.
  • Maths with KaTeX: $inline$ and $$display$$.
  • A contents list from a [[toc]] marker, with links to each heading.
  • Mermaid diagrams, task lists, footnotes and GitHub alerts (> [!NOTE]).
  • Settings for one document in its front matter.
  • One settings file used by every editor, the assistant and the terminal.
  • Safe with documents you did not write: scripts, frames and event handlers in raw HTML are filtered out (Raw HTML and safety).

Go further

Help

Check the browser and your settings in one step:

npx -y markdown-pdf-export doctor

You can also ask the assistant: "Run doctor_markdown_pdf". For common problems, see Help.

Contributing

See CONTRIBUTING.md for development setup, tests and how the project is built.

Licence

MIT. See LICENSE.

Reviews

No reviews yet

Be the first to review this server!