# Pdfrender

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/pdfrender-dev/pdfrender  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/pdfrender

## Description
HTML-to-PDF MCP server — render pixel-faithful PDFs from HTML.

## Tools
Capabilities this server exposes over MCP:

- **render_html_to_pdf** — Render up to 256 KB of HTML to a PDF. Returns a download link to the PDF.

Give the user the `download_url` so they can open the PDF. The link
works for 15 minutes; after that, render again. The result is
`{"download_url": "<link>", "pages": <page count>, "size_bytes": <PDF size>,
"expires_in_minutes": 15}`.
Only HTML and CSS are rendered; JavaScript is not run.
For documents larger than 256 KB, use the REST API (`POST /v1/render`).

Credits: 1 per call.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "pdfrender": {
    "url": "https://pdfrender.dev/mcp"
  }
}
```

## Documentation

## What Pdfrender does

Pdfrender converts HTML and CSS into PDF through the Model Context Protocol. The hosted service uses WeasyPrint for page layout and supports print-oriented CSS for paper size, margins, headers, footers, and page numbers. It does not execute JavaScript or retrieve external URLs, so images and fonts must be embedded as data URIs when they are needed in the output.

The MCP endpoint is hosted at `https://api.pdfrender.dev/mcp/`. Rendering takes one credit per call. An anonymous tier is available without an API key, while an API key provides the limits associated with the selected plan. The service runs in Germany.

## How it works

An MCP-compatible client sends HTML to the `render_html_to_pdf` tool. The tool returns a JSON object containing a `download_url`, the PDF page count, its size in bytes, and an `expires_in_minutes` value. The download link remains usable for 15 minutes, so an agent should give the URL to the user promptly. After expiration, the document must be rendered again.

The standard MCP tool accepts up to 256 KB of HTML. For larger input, the REST API provides `POST /v1/render`. That API uses the same hosted rendering service and accepts an `X-API-Key` header for authenticated plan limits. Its documented rendering limits include 2 MB of HTML and 50 pages per render.

## Setup and configuration

Configure the remote streamable-HTTP endpoint in an MCP client using:

```text
https://api.pdfrender.dev/mcp/
```

For clients using an MCP server configuration, the endpoint can be assigned to a server entry named `pdfrender`. Claude Code can add it with its HTTP transport command, and Cursor, Windsurf, Cline, and Claude Desktop can use the same URL in their MCP configuration. An API key is optional for anonymous access; when used, provide it through the `PDFRENDER_API_KEY` environment variable or the corresponding `X-API-Key` request header.

## Tools and capabilities

- `render_html_to_pdf`: Converts up to 256 KB of HTML and CSS into a PDF.
- Returns a temporary download URL rather than embedding the PDF in the tool response.
- Reports the generated document's page count and byte size.
- Supports CSS-defined paper size, margins, headers, footers, and page numbers.
- Provides REST rendering through `POST /v1/render` for larger documents.

## Limitations and notes

JavaScript is not run during rendering. Remote assets are not fetched, so externally hosted images and fonts will not appear unless included as data URIs. MCP download links expire after 15 minutes. The free plan includes 100 credits per month and does not require a payment card.

_Full upstream README: https://allmcps.com/mcp/pdfrender/readme_

