# PolyDoc

> PolyDoc is a freemium MCP server for files and documents. Render HTML or URLs to PDF, screenshots and e-invoices from an MCP client. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, macOS, Windows, Linux
- **Website:** https://polydoc.tech
- **Repository:** https://github.com/polydoc-tech/polydoc-mcp
- **MCP Registry name:** tech.polydoc/polydoc-mcp
- **Categories:** files and documents
- **Listing updated:** 2026-11-14

## About

Output can be made to meet archival and accessibility standards: the PDF/A levels 1b, 2b and 3b, and PDF/UA-1 for tagged, screen-reader-friendly files. Both are best effort by default. Setting `verify` runs veraPDF on the result and fails the request with a 422 instead of returning a non-conforming file.

Content comes from a URL, an inline HTML string or a saved template filled with Liquid data. Files are written to a local folder (`POLYDOC_OUTPUT_DIR`) and the path is returned. Small screenshots also come back as an inline image. You can instead send results to a presigned cloud-storage URL or a webhook.

The server runs over stdio with `npx -y polydoc-mcp` (Node.js 20.15 or later) and needs an API key from the PolyDoc dashboard. A sandbox mode produces watermarked output that does not use production quota.

## Features

- **HTML and URL to PDF:** Converts HTML, a URL or a saved template to PDF with control over margins, page format, page ranges, bookmarks and tagged output.
- **PDF/A and PDF/UA targets:** Aims for archival PDF/A levels and accessible PDF/UA-1, with optional veraPDF verification.
- **Factur-X e-invoices:** Builds Factur-X or ZUGFeRD hybrid PDF/A-3 invoices from structured data in basic, en16931 and extended profiles.
- **Screenshots:** Captures PNG, JPEG or WebP images with viewport and device-pixel-ratio settings.
- **Delivery options:** Saves locally, uploads to a presigned URL or posts to a webhook.
- **Sandbox mode:** Test renders are watermarked and do not draw production quota.

## Good for

- Generate archival PDF/A copies of web pages
- Produce accessible PDFs for compliance work
- Create Factur-X invoices from invoice data
- Capture screenshots of URLs or HTML during agent workflows
- Fill saved templates with JSON data and render them to PDF

## Install

### Claude Code (Terminal)

```sh
claude mcp add polydoc-mcp --env POLYDOC_API_KEY='<POLYDOC_API_KEY>' -- npx -y polydoc-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "polydoc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polydoc-mcp"
      ],
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "polydoc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polydoc-mcp"
      ],
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "polydoc-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "polydoc-mcp"
      ],
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "polydoc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polydoc-mcp"
      ],
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "polydoc-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "polydoc-mcp"
      ],
      "env": {
        "POLYDOC_API_KEY": "<POLYDOC_API_KEY>"
      }
    }
  }
}
```

## Tools

- `polydoc_html_to_pdf`: Converts HTML, a URL or a saved template to PDF with layout, bookmarks, tagged PDF and PDF/A or PDF/UA options.
- `polydoc_screenshot`: Captures HTML, a URL or a template as PNG, JPEG or WebP.
- `polydoc_generate_einvoice`: Creates a Factur-X or ZUGFeRD hybrid PDF/A-3 from structured invoice data.
- `polydoc_test_credentials`: Checks the configured API key with a minimal sandbox render.

## FAQ

### Does it need an API key?

Yes. POLYDOC_API_KEY, created in the PolyDoc dashboard, is required.

### Can I test without using quota?

Yes. Sandbox mode renders with a watermark and does not use production quota; polydoc_test_credentials checks your key with a sandbox render.

### Which e-invoice profiles are supported?

Basic, EN 16931 and Extended, as Factur-X or ZUGFeRD hybrid PDF/A-3.

### Where do output files go?

To the directory in POLYDOC_OUTPUT_DIR, which defaults to a polydoc folder in the OS temp directory. Output never escapes that folder.

### Is PolyDoc free?

PolyDoc has a free plan, with paid plans for more usage or features.

### How do I add PolyDoc to Claude Code?

Run this command in your terminal: claude mcp add polydoc-mcp --env POLYDOC_API_KEY='<POLYDOC_API_KEY>' -- npx -y polydoc-mcp

### What are the best alternatives to PolyDoc?

The closest alternatives to PolyDoc are ASTra, CARTESIAN ECU, Invoices, SigPen and ConvertAudioToText.

## Alternatives

- [ASTra](https://ai-powered.com/mcp/astra): ASTra is a freemium MCP server for files and documents.
- [CARTESIAN ECU](https://ai-powered.com/mcp/cartesian-ecu): CARTESIAN ECU is a paid MCP server for files and documents.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [ConvertAudioToText](https://ai-powered.com/mcp/convertaudiototext): ConvertAudioToText is a freemium MCP server for design and media.
- [WhoScribe](https://ai-powered.com/mcp/whoscribe): WhoScribe is a freemium MCP server for design and media.
- [filex](https://ai-powered.com/mcp/filex): filex is an open-source MCP server for files and documents.
- [DocJacket](https://ai-powered.com/mcp/docjacket): DocJacket is a freemium MCP server for productivity.

---
Source: https://ai-powered.com/mcp/polydoc
