Skip to content
VS Code

markdown pdf export for VS Code

io.github.matinfo/markdown-pdf-export

Export Markdown files to PDF with Chromium: highlighting, KaTeX math, TOC, headers/footers.

client:VS Code transport:stdio runtime:npm

Install markdown pdf export in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "markdown-pdf-settings",
      "description": "MARKDOWN_PDF_SETTINGS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "markdown-pdf-browser",
      "description": "MARKDOWN_PDF_BROWSER",
      "password": true
    }
  ],
  "servers": {
    "markdown-pdf-export": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "markdown-pdf-export"
      ],
      "env": {
        "MARKDOWN_PDF_SETTINGS": "${input:markdown-pdf-settings}",
        "MARKDOWN_PDF_BROWSER": "${input:markdown-pdf-browser}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

markdown pdf export in other clients