# Markdown to PDF

> Use this tool when you need to convert Markdown content into professionally formatted PDF documents, solving problems in automated document generation, report creation, and content publishing pipelines. It accepts inline Markdown content or file paths as input and produces configurable PDF outputs with options for paper size, orientation, and styling. Ideal for use cases requiring reliable Markdown-to-PDF conversion, such as generating reports or publishing content, with a simple interface for specifying output paths and formatting options.

Canonical page: https://skillsregistry.net/skills/xblanc33-markdown-to-pdf  
JSON: https://api.skillsregistry.net/v1/skills/xblanc33-markdown-to-pdf

## Description

This MCP server converts Markdown content to PDF documents using Playwright's Chromium browser engine and the marked library for HTML conversion. Built by Xavier Blanc, it provides two tools (pdf_from_markdown and md_to_pdf) that accept either inline Markdown content or file paths, with configurable output paths and PDF formatting options including paper size (A4, Letter, Legal) and orientation settings. The implementation features GitHub-style CSS styling for professional document appearance, graceful browser lifecycle management, and includes both CLI binaries and smoke testing capabilities, making it ideal for automated document generation workflows, report creation, and content publishing pipelines where AI assistants need reliable Markdown-to-PDF conversion.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-09-01

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** version-control
- **Updated:** 2026-09-01

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/xblanc33-markdown-to-pdf)
- **Repository:** <https://github.com/xblanc33/md-2-pdf-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "xblanc33-markdown-to-pdf"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/xblanc33-markdown-to-pdf` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/xblanc33-markdown-to-pdf/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
