About PaperType
Render Markdown, HTML or invoice/certificate/report templates to PDF files via the PaperType API
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y papertype-mcpPAPERTYPE_API_KEYSecretPaperType API key (dp_...). Get one at https://papertype.dev/signup.PAPERTYPE_OUTPUT_DIRDirectory where rendered PDFs are saved. Default: the OS temp dir + /papertype.PAPERTYPE_BASE_URLAPI origin. Default https://papertype.dev; change only for test deployments.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
3Saved tool list · updated 1w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| css | string | No | Extra CSS appended after the theme (markdown/html). May include @page rules, e.g. '@page { margin: 2cm }'. |
| toc | boolean | No | Add a table of contents built from headings. Markdown input only. Default false. |
| data | object | No | JSON object of fields for the chosen template (required when template is set). Shape per template is shown by list_templates. |
| date | string | No | Date text shown on the cover page, e.g. '2026-10-18' or 'October 2026'. |
| html | string | No | HTML document or fragment to render. A theme wraps it in page styles unless theme is 'none'. Provide exactly one of markdown, html, or template+data. |
| cover | boolean | No | Add a cover page with title, author and date (markdown/html). Default false. |
| theme | enum | No | Page style for markdown/html input. 'clean' (default, general documents), 'report' (formal, good with cover+toc), 'minimal' (plain), 'letter' (correspondence), 'none' (HTML only: no theme, just your own CSS). Ignored for templates.clean | report | minimal | letter | none |
| title | string | No | Document title: used for the PDF metadata, the cover page, and the default output filename. |
| author | string | No | Author shown on the cover page and in PDF metadata. |
| footer | string | No | Footer text printed bottom-left on every page (e.g. a confidentiality note). |
| header | string | No | Running header text printed top-right on every page. |
| filename | string | No | Suggested file name (e.g. 'invoice-014.pdf'). Used for the saved file's name when output_path is not given. |
| markdown | string | No | Markdown source for the document (GitHub-flavoured: headings, lists, tables, fenced code, footnotes, admonitions). Provide exactly one of markdown, html, or template+data. |
| template | enum | No | Name of a hosted template to fill with `data` instead of writing markdown/html: 'invoice', 'certificate' or 'report'. Call list_templates to see each template's fields and sample data.invoice | certificate | report |
| page_size | enum | No | Paper size. Default A4. Use 'Letter' for US documents.A4 | Letter | Legal | A5 |
| output_path | string | No | Where to save the PDF. Omit to get a unique file named after the title under the server's output directory (PAPERTYPE_OUTPUT_DIR, default <tmp>/papertype). An existing directory (or a path ending in '/') saves a uniquely named file inside it. Any other path is used as the exact file name ('.pdf' appended if missing; an existing file is overwritten). Relative paths resolve against the output directory. |
| page_numbers | boolean | No | Print page numbers in the footer. Default true. |
Details
The maintainer has not added details yet. Check the README in the repository.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.