# PDF Generator — HTML/Markdown to Professional PDFs

PDF Generator — HTML/Markdown to Professional PDFs is an MCP server for Claude Code that creates PDFs from HTML or Markdown with configurable page settings and headers or footers.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 2182 installs
- Author: axel-belfort
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/axel-belfort/pdf-generator
- Updated: 2026-04-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/pdf-generator-htmlmarkdown-to-professional-pdfs

## What it does

This MCP server generates PDF documents from HTML or Markdown content. You can set the page format, margins, and headers or footers; A4 and Letter are among the listed formats. The result comes back as base64-encoded data.

Call the `document_generate_pdf` tool to create a file. No API key is needed, but each call costs $0.008 through x402 on Base L2. The server generates a document from supplied content; capturing an existing web page calls for a different tool. That distinction matters when you need a page capture rather than a newly generated PDF.

## Requirements
- Remote server: `https://pdf-generator--axel-belfort.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http pdf-generator https://pdf-generator--axel-belfort.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add pdf-generator-htmlmarkdown-to-professional-pdfs --url https://pdf-generator--axel-belfort.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pdf-generator-htmlmarkdown-to-professional-pdfs": {
            "url": "https://pdf-generator--axel-belfort.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pdf-generator-htmlmarkdown-to-professional-pdfs": {
            "type": "http",
            "url": "https://pdf-generator--axel-belfort.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http pdf-generator-htmlmarkdown-to-professional-pdfs https://pdf-generator--axel-belfort.run.tools
```

## When to use it
- generate a PDF from HTML content
- turn a Markdown report into a PDF
- set page format and document margins
- add headers and footers to a PDF

## Example prompts
- Create a PDF from this HTML using A4 and add a page number in the footer.
- Convert this Markdown report to a PDF with Letter pages and custom margins.
- Make a PDF invoice from this HTML and return the file.

## Similar
- [pdf-to-markdown](https://affpapa.org/en/nevibecode/skills/pdf-to-markdown.md) — skill · 870 installs
- [html-to-pdf](https://affpapa.org/en/nevibecode/skills/html-to-pdf.md) — skill · 1300 installs
- [pdf-to-html](https://affpapa.org/en/nevibecode/skills/pdf-to-html.md) — skill · 529 installs
- [PDF to Markdown](https://affpapa.org/en/nevibecode/mcp/pdf-to-markdown.md) — MCP server
- [Markdown to HTML — Headings, Code, Tables](https://affpapa.org/en/nevibecode/mcp/markdown-to-html-headings-code-tables.md) — MCP server · 4038 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
