Server data from the Official MCP Registry
PolyDoc MCP server: HTML/URL to PDF, screenshots, and EU e-invoice generation for MCP clients.
PolyDoc MCP server: HTML/URL to PDF, screenshots, and EU e-invoice generation for MCP clients.
Valid MCP server (2 strong, 1 medium validity signals). 1 known CVE in dependencies Package registry verified. Imported from the Official MCP Registry.
10 files analyzed · 2 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: POLYDOC_API_KEY
Environment variable: POLYDOC_SANDBOX
Environment variable: POLYDOC_BASE_URL
Environment variable: POLYDOC_OUTPUT_DIR
Add this to your MCP configuration file:
{
"mcpServers": {
"tech-polydoc-polydoc-mcp": {
"env": {
"POLYDOC_API_KEY": "your-polydoc-api-key-here",
"POLYDOC_SANDBOX": "your-polydoc-sandbox-here",
"POLYDOC_BASE_URL": "your-polydoc-base-url-here",
"POLYDOC_OUTPUT_DIR": "your-polydoc-output-dir-here"
},
"args": [
"-y",
"polydoc-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
An MCP server for PolyDoc, a REST API that converts HTML or URLs to PDF, captures screenshots, and generates EU-compliant e-invoices (Factur-X / ZUGFeRD hybrid PDF/A-3). It lets MCP clients (Claude Desktop, Claude Code, Cursor, and others) drive PolyDoc directly.
polydoc_html_to_pdf - HTML, URL, or saved template to PDF (layout, margins, page format, page ranges, bookmarks, accessible/tagged PDFs).polydoc_screenshot - HTML, URL, or template to PNG / JPEG / WebP, with viewport and device-pixel-ratio control. Returns an inline image preview when small enough.polydoc_generate_einvoice - Factur-X or ZUGFeRD hybrid PDF/A-3 from structured invoice data, profiles from minimum to extended.polydoc_test_credentials - verify the configured API key with a minimal sandbox render (never draws production quota).Content can come from a URL, an inline HTML string, or a saved template (with Liquid templateData). Downloads are written to a local directory and the file path is returned; you can also deliver to your cloud storage (presigned URL) or a webhook.
Requires Node.js >= 20.15. Published to npm, so clients can run it with npx:
npx -y polydoc-mcp
The server is configured entirely through environment variables (see below).
| Variable | Required | Default | Description |
|---|---|---|---|
POLYDOC_API_KEY | yes | - | API key from dashboard.polydoc.tech. |
POLYDOC_SANDBOX | no | false | Default sandbox mode (watermarked, rate-limited). A tool call can override per request. |
POLYDOC_BASE_URL | no | https://api.polydoc.tech | Override for self-hosted or staging. |
POLYDOC_OUTPUT_DIR | no | OS temp dir + /polydoc | Where downloads are written. Output never escapes this folder. |
Add to claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": {
"polydoc": {
"command": "npx",
"args": ["-y", "polydoc-mcp"],
"env": {
"POLYDOC_API_KEY": "your-key",
"POLYDOC_OUTPUT_DIR": "/Users/you/Documents/polydoc"
}
}
}
}
claude mcp add polydoc -e POLYDOC_API_KEY=your-key -- npx -y polydoc-mcp
Add to ~/.cursor/mcp.json (or a project .cursor/mcp.json) using the same mcpServers block shown for Claude Desktop.
POLYDOC_OUTPUT_DIR and the absolute path is returned with metadata (size, conversion id, credits). Screenshots also return an inline image block. Pass returnBase64: true to also receive the bytes as base64 (heavy; for clients without a filesystem).delivery: "cloudStorage" and presignedUrl. The upload URL is returned.delivery: "webhook" and a webhook object ({ url, async?, method?, headers? }).Every conversion tool has an advanced object that is deep-merged into the request body, so any API capability not surfaced as a typed field (for example pdf.watermark, pdf.encryption, render, request) is still reachable. See the field reference at docs.polydoc.tech.
Worked tool inputs for each angle live in examples/: a branded PDF from a template, a URL screenshot, and a ZUGFeRD / EN 16931 e-invoice.
yarn installyarn build - compile to dist/yarn lintyarn test - unit tests (request builder, output jail, tool handlers) and an in-memory MCP round-tripPOLYDOC_API_KEY=your-key yarn test:integration - live smoke tests against the sandboxyarn scrub:check - check for em-dashes in source and docsRun the built server directly for a quick check:
POLYDOC_API_KEY=your-key node dist/index.js
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.