Markdown Pdf Export
Exports Markdown files to styled PDFs via Chromium, from editors, AI assistants
Markdown Pdf Export is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, VS Code, macOS
- Runs
- Locally
- Version
- 2.0.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add markdown-pdf-export -- npx -y markdown-pdf-exportAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"markdown-pdf-export": {
"command": "npx",
"args": [
"-y",
"markdown-pdf-export"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"markdown-pdf-export": {
"command": "npx",
"args": [
"-y",
"markdown-pdf-export"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"markdown-pdf-export": {
"command": "npx",
"args": [
"-y",
"markdown-pdf-export"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"markdown-pdf-export": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"markdown-pdf-export"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add markdown-pdf-export -- npx -y markdown-pdf-exportOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.markdown-pdf-export]
command = "npx"
args = ["-y", "markdown-pdf-export"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"markdown-pdf-export": {
"command": "npx",
"args": [
"-y",
"markdown-pdf-export"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Or run: gemini mcp add -s user markdown-pdf-export npx -- -y markdown-pdf-export
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "markdown-pdf-export": { "command": "npx", "args": [ "-y", "markdown-pdf-export" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
MARKDOWN_PDF_SETTINGSDefault export settings as JSON, e.g. {"page_format":"Letter"}MARKDOWN_PDF_BROWSERBrowser to use: chrome, msedge, chromium, or a path to an executable
About Markdown Pdf Export
The README describes a tool that turns Markdown files into PDFs using a locally installed Chrome or Edge browser, with a settings file shared across editors, AI assistants and the command line. Output can be styled through five page layouts, custom CSS, fonts and code colour themes, plus headers and footers that carry the title, page numbers, date and a logo.
Math is rendered with KaTeX for inline and display formulas, and a [[toc]] marker generates a linked contents list. Individual documents can override the shared settings through front matter, so one report can differ from the rest of a project.
It suits developers and writers who keep documentation or reports in Markdown and want print-ready PDFs without leaving their editor. It is distributed as an npm package run with npx, and the registry entry exposes it as an MCP server over stdio.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 name doesn't say.
From the server's own tool labels and tool names; not verified by us.
- doctor_markdown_pdf
- Checks the browser and settings for the PDF export tool.
What it does
- Five page styles
- Offers Clean, Report, Academic, Compact and Technical layouts for the exported document.
- Headers and footers
- Adds titles, page numbers, dates and a logo to header and footer zones.
- KaTeX math support
- Renders inline and display maths written in standard dollar-sign notation.
- Generated contents list
- Builds a linked table of contents from a marker placed in the Markdown.
- Per-document settings
- Lets front matter override the shared settings for a single file.
- Shared settings file
- Uses one configuration across VS Code, Zed, Cursor, AI assistants and the terminal.
- Browser diagnostics
- Includes a doctor command that checks the browser and settings in one step.
Good for
- Converting project documentation or READMEs into shareable PDFs
- Exporting technical reports with equations and a contents list
- Letting an AI assistant produce a PDF from a Markdown file during a chat
- Batch-styling PDFs with a consistent company header and footer
Pricing
Open source
MIT licensed and free to run locally.
Markdown Pdf Export FAQ
Which browser does Markdown Pdf Export need?
The README says it needs Google Chrome or Microsoft Edge, or a Chromium install via the install-browser command, which downloads about 200 MB.
What are the requirements to run Markdown Pdf Export?
The README lists Node.js 20 or newer, since the package is run with npx.
Is Markdown Pdf Export free?
Yes. Markdown Pdf Export is open source, so you can use and self-host it for free.
How do I add Markdown Pdf Export to Claude Code?
Run this command in your terminal: claude mcp add markdown-pdf-export -- npx -y markdown-pdf-export
What are the best alternatives to Markdown Pdf Export?
The closest alternatives to Markdown Pdf Export are Markdown Formatter, MintPDF, RenderMark, Markdown and md2pdf.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.