# tailprint [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/coheroseb/tailprint  
**GitHub Stars:** 0  
**npm Downloads (last month):** 1536  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/tailprint

## Description
Developer-First PDF & Document Engine, TypeScript SDK & MCP Server (tailprint.com)

## Tools
Capabilities this server exposes over MCP:

- **render_pdf** — Converts HTML with full Tailwind CSS classes, a public URL, or a hosted template (template_id + JSON data, e.g. "invoice-modern") into a pixel-perfect, vector PDF document with Smart Pagination Shield. Returns a hosted CDN link and base64 data URI.
- **list_templates** — Returns the catalog of available pre-designed Tailwind CSS document templates (Invoices, EU Factur-X, Certificates, Executive Reports, Resumes, Shipping Labels, Event Passes, POS Receipts, Quotes, NDAs, Statements, Presentations, Contracts).
- **get_template_source** — Retrieves the full Tailwind CSS HTML source code of a document template by ID, allowing an AI agent to customize data and render it with render_pdf.
- **render_template** — Renders a pre-designed Tailwind CSS document template directly with optional variable data substitution. Ideal for generating invoices, receipts, contracts, and certificates without managing raw HTML markup.
- **stamp_pdf** — Applies a diagonal semi-transparent watermark or status stamp (e.g. "CONFIDENTIAL", "DRAFT", "PROPRIETARY") across all pages of an existing vector PDF using pdf-lib.
- **generate_einvoice** — Generates a legally compliant European hybrid electronic invoice (Factur-X / ZUGFeRD 2.2 / EN 16931). Renders a beautiful visual PDF and embeds machine-readable CrossIndustryInvoice XML (/EmbeddedFiles) for automated ingestion by ERP and accounting platforms (DATEV, SAP, Chorus Pro, Dinero, Billy).
- **merge_pdfs** — Merges two or more PDF documents (supplied as base64 strings or public URLs) into a single unified vector PDF.
- **split_pdf** — Extracts specific pages or page ranges (e.g. "1-3, 5, 8-10") from an existing PDF document into a new PDF.
- **fill_pdf_form** — Fills interactive PDF forms (AcroForms) with text, numbers, or checkboxes, with optional form flattening.
- **compress_pdf** — Compacts and shrinks PDF file size by bundling internal PDF objects into compressed streams and stripping duplicate structures.
- **render_presentation** — Converts Markdown slides (separated by "---") into a widescreen 16:9 presentation vector PDF (1920x1080) with slide numbers and modern Tailwind styling. Returns an inline cover preview and hosted PDF link.

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

```json
"mcpServers": {
  "tailprint": {
    "command": "npx",
    "args": ["-y","tailprint"],
    "env": {
      "TAILPRINT_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `TAILPRINT_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What tailprint does

tailprint MCP server gives MCP-compatible AI assistants access to Tailprint’s hosted PDF and document engine. It can turn Tailwind-styled HTML or a URL into a vector PDF, create hybrid Factur-X / ZUGFeRD invoices with embedded XML, and perform common PDF operations such as merging, splitting, form filling, compression, and watermarking.

The server also covers document automation and presentation output. Agents can render predefined Tailwind templates with supplied data, list available templates, and convert Markdown slides into widescreen 16:9 presentation PDFs. Rendering can return a PDF link and Base64 data; other tools return compliance results, previews, or catalog data according to the operation.

## How it works

The MCP process acts as a client of Tailprint’s API and exposes document functions as agent-callable tools. It can run through Stdio for local MCP client configurations or through Remote SSE. Rendering uses Tailwind CSS and a Playwright-based browser engine, while PDF operations work on supplied document data.

The underlying platform supports asynchronous rendering with webhook delivery and job polling, as well as batch rendering with optional merging. Its zero-retention mode uses in-memory ephemeral rendering when `no_store: true` is requested. Network protections block local and private IP ranges during rendering.

## Setup and configuration

Run the MCP server with the package’s executable:

```bash
npx tailprint
```

Provide a Tailprint API key through `TAILPRINT_API_KEY` or the corresponding MCP client environment configuration. The same service is also available through official TypeScript, Python, PHP, and Go SDKs, but those SDKs are separate from configuring the MCP server.

Add the command to an MCP-compatible client such as Claude Desktop, Cursor, or Windsurf, then supply the API key in that client’s server configuration. The server supports Stdio and Remote SSE connection modes.

## Tools and capabilities

The documented tool set includes:

- `render_pdf` — Convert Tailwind HTML or a URL into a vector PDF, with custom headers and footers.
- `generate_einvoice` — Produce and validate EN 16931, Factur-X, and ZUGFeRD hybrid invoices.
- `merge_pdfs` — Combine multiple PDFs into one document.
- `split_pdf` — Extract individual pages or page ranges.
- `fill_pdf_form` — Populate interactive AcroForm fields and optionally flatten the result.
- `compress_pdf` — Reduce PDF size through stream-object bundling.
- `stamp_pdf` — Add diagonal watermarks or page numbers.
- `render_presentation` — Convert Markdown slides to 16:9 presentation PDFs with previews.
- `render_template` — Render a prebuilt Tailwind template using dynamic data.
- `list_templates` — Return the available template catalog.

The server is intended for document generation workflows that need PDF output, EU invoice compliance, or routine PDF transformations inside an AI-assisted development environment.

## Limitations and notes

Tailprint relies on the Tailprint service and requires an API key. Its rendering and document-processing behavior is tied to the capabilities of that hosted engine. The listed MCP transports are Stdio and Remote SSE; client configuration must use one of those supported connection methods. Zero-retention behavior is opt-in through `no_store: true`, rather than an automatic property of every request.

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

