# MintPDF [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/TrendTweekers/mintpdf  
**GitHub Stars:** 1  
**npm Downloads (last month):** 253  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mintpdf

## Description
Turn HTML or Markdown into a clean, styled PDF and get a download link.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mintpdf": {
    "command": "npx",
    "args": ["-y","mintpdf-mcp"]
  }
}
```

## Documentation

## What MintPDF MCP server does

The MintPDF MCP server turns document content into PDF files. It accepts either HTML, Markdown, or a public HTTP(S) page, then renders the source with Chromium. Markdown uses a default stylesheet, while HTML can contain document-specific styling. The renderer is designed for printed documents, including page breaks, repeating table headers, and control over orphan and widow behavior.

The hosted service returns PDF bytes through its REST API by default. Requests can instead ask for a download URL. MCP tool calls return a download link that remains valid for one hour. Rendered documents are deleted after that period, and document contents are not logged according to the project documentation.

## How it works

The MintPDF MCP server supports two tools:

- `generate_pdf` accepts HTML or Markdown plus rendering options.
- `pdf_from_url` loads a public HTTP or HTTPS address and renders the resulting page.

The hosted MCP endpoint is available at `https://mintpdf.dev/mcp` and uses streamable HTTP. A local client can also launch the npm package with `npx -y mintpdf-mcp`. The REST equivalent is `POST /v1/pdf`; it accepts exactly one source field per request: `html`, `markdown`, or `url`.

Supported output settings include A4, Letter, Legal, A3, and A5 paper sizes, landscape orientation, a shared margin value, header and footer text, and page numbering. URL rendering is restricted to public addresses. The service checks requested URLs and browser network requests for private or local destinations, although the documentation notes that DNS rebinding is narrowed rather than completely eliminated.

## Setup and configuration

For an MCP client using the local package, add a server entry that runs `npx -y mintpdf-mcp`. For a hosted setup, use `npx -y mcp-remote https://mintpdf.dev/mcp`. Restart the client after changing its configuration.

Self-hosting requires Node.js project installation followed by `npm run build` and `npm start`, or the published container image. The container exposes port 3000 and accepts `BASE_URL` for links and `DATA_DIR` for stored data; `DATA_DIR` defaults to `/tmp/mintpdf`. A volume can be mounted when stored keys need to persist.

Self-hosted deployments can also configure anonymous and monthly limits, render concurrency, queue length, queue wait time, and overage behavior through the environment variables documented by the project. The default render concurrency and queue values are conservative because each render uses a Chromium tab.

## Tools and capabilities

The MintPDF MCP server is suitable for generating briefs, invoices, reports, or other formatted documents from content supplied during an agent interaction. It can add page numbers and recurring header or footer text, and it can render Markdown tables as paginated document content. Anonymous hosted use allows three renders per day per IP; a free key raises the documented allowance to 100 renders per month.

## Limitations and notes

Submitted HTML can execute JavaScript, which supports features such as Mermaid and KaTeX but means the renderer handles untrusted code. URL sources must be publicly reachable, and private, local, metadata, and similar network destinations are blocked. The service is focused on HTML, Markdown, and web-page rendering; the documentation points to Gotenberg for broader Office-format, merging, and splitting workflows.

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

