formfeed
OfficialFormfeed’s MCP server lets an AI agent inspect and author templates, generate documents, validate e-invoices, and perform PDF operations in a Formfeed workspace.
Discover workspace and templates: list templates, get template data schemas/sample data, read template source, and inspect workspace plan/environment/unit balance.
Validate and edit templates: validate template data or ad-hoc HTML, save new draft versions with a base checksum, and return a review/publish URL (drafts are not published automatically).
Render documents: render stored templates or ad-hoc HTML to PDF, images, DOCX, or PPTX; create PDFs from Markdown; optionally produce ZUGFeRD/Factur-X e-invoices.
Check e-invoices: pre-check an
_invoiceblock before rendering, or validate e-invoice XML from a render, local path, or base64 against Factur-X, ZUGFeRD, XRechnung, or EN 16931 rules.Convert and process PDFs: convert office documents to PDF, read PDF pages/properties/forms, split, compress, render pages as images, redact content, and fill PDF forms.
Follow renders: retrieve render status and fresh download links for asynchronous or expired renders.
Formfeed packages
Client libraries, command line tools and integrations for Formfeed, the API for generating PDFs and images from templates. Documentation lives at docs.formfeed.dev.
Package | Registry | What it is |
TypeScript client: renders, batches, templates, webhooks. No dependencies, Web APIs only | ||
Python client, sync and async | ||
PHP client over any PSR-18 HTTP client | ||
Laravel package: settings from | ||
CLI: templates as files, offline preview and validation, renders through the API | ||
The template engine (Jinja2, Liquid, Handlebars) the API and the editor use | ||
Template folders, project config and local rendering | ||
Vitest and Jest matchers for templates | ||
Model Context Protocol server for AI agents | ||
n8n community node |
Every npm package is built and published from this repository by GitHub Actions with provenance, and the Python package with trusted publishing, so each release can be traced to the commit and workflow run it came from. Packagist reads the PHP packages from repositories of their own, formfeed-php and formfeed-laravel, which are tagged with every release.
Development
Node 22 or newer and pnpm (the version in package.json, corepack enable picks it up):
pnpm install
pnpm nx run-many -t lint test --exclude sdk-python,sdk-php,sdk-laravel # TypeScript packages
pnpm nx run-many -t bundle smoke # build, pack and try every npm package
pnpm nx run-many -t lint test -p sdk-php sdk-laravel # PHP packages, in Docker
cd packages/sdk-python && pip install pytest httpx pydantic && python -m pytest -qThis repository is generated from Formfeed's main repository, where the packages are developed together with the API they talk to. See CONTRIBUTING.md for how issues and pull requests are handled.
Related MCP server: docjet-mcp
Licence
MIT, see LICENSE. Bundled third-party code keeps its own licence; the CLI and MCP packages
list it in THIRD_PARTY_LICENSES.md.
Available Tools
18 toolscheck_invoiceCheck an e-invoiceARead-only
Checks the _invoice block of an e-invoice offline, as the API does before it renders one: the fields EN 16931 asks for, the totals to the cent, VAT categories and code lists, and France's rules for an invoice between two French businesses. Free, no units, nothing sent. Returns ok and problems, each with the field, the rule (BR-…) where one applies and a message. Nothing is computed for you: change the values a problem names, check again, then call render with einvoice and the block as data._invoice. The validator that runs during the render holds the file to the full rule set and to PDF/A-3b as well.
Inputs: invoice (required), profile. Returns: ok, problems
compress_pdfCompress a PDFA
Makes a PDF smaller and returns the render with download_url; a PDF that cannot be made smaller comes back as it was. For a preview picture of a page instead, use pdf_to_image. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Starter plan and above; 0.5 units on a live key. A PDF/A or a password-protected PDF is refused.
Inputs: path, source, filename, file_name, +1 more. Returns: id, form, pdfa, error, +10 more
convert_to_pdfConvert an office document to PDFA
Converts an existing Word, Excel, PowerPoint, OpenDocument, RTF or HTML document (up to 20 MB) to a PDF as it is, without filling in data, and returns the render with status and download_url. To make a document from a template and data, use render instead. Pass exactly one source: render_id, the render of a Word or PowerPoint template (output docx or pptx); path, a file on this machine; or file_base64 with file_name. Every call is a new render that counts units like a PDF; the Free plan cannot convert (Starter and above). The document is converted and not kept.
Inputs: path, filename, file_name, landscape, +4 more. Returns: id, form, pdfa, error, +10 more
fill_pdf_formFill a PDF formA
Fills the fields of a PDF form by their full names, as get_pdf_info lists them, and returns the render with download_url and form: how many fields were filled, which were left out, and which hold a calculation or display format that no viewer ran. The form stays fillable, or flatten draws the values into the pages. A name the form lacks or a value its field does not take fails the call with form_field_unknown or form_value_invalid, naming the field, unless strict is false. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Starter plan and above; 0.5 units on a live key. The values are never stored; a signed form and an XFA form are refused.
Inputs: path, fields, source, strict, +4 more. Returns: id, form, pdfa, error, +10 more
get_pdf_infoRead a PDF's pages, properties and formARead-only
Reads a PDF without changing it: the page count and the size of every page, whether it is password-protected, its document properties, and its form, with every field by its full name, label, type, value and the options it takes. Read it before fill_pdf_form, which takes the fields by these names, and before redact_pdf or split_pdf, which work on these pages. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Free on every plan; it creates no render, and an uploaded PDF is read and not kept.
Inputs: path, source, file_name, file_base64. Returns: form, pages, source, metadata, +2 more
get_renderGet a renderARead-only
Returns the current state of a render: status (queued, rendering, succeeded or failed), download_url with expires_at, page_count, units and error, and the picture of a finished image render up to 2 MB. Use it to follow a render started with wait false, or to get a fresh link once the old one has expired; render, convert_to_pdf and the PDF tools already return this for the render they just made. Read-only and free; an unknown id returns an error.
Inputs: id (required). Returns: id, form, pdfa, error, +10 more
get_template_schemaGet the data schema of a templateARead-only
Returns the JSON Schema of the data object a template expects and the sample data it was designed with, from its published version, else its latest draft. Call it after list_templates and before render or validate_template, to build data that fits; ad-hoc html has no stored schema to read. When the template stores no schema, one is inferred from the sample data: treat that as a guide, not a contract. Read-only and free; an unknown slug returns an error.
Inputs: template (required). Returns: schema, status, version, template, +1 more
get_template_sourceRead the source of a templateARead-only
Returns what a template version is made of: the body markup (html), css, head, settings (paper, margins, header, footer, fonts), sample data, data sets, data schema, translations and partials, with the version's checksum. Call it before save_template to change a template the user named, and save what you edited with that checksum as base_checksum. Reads the latest version by default, the newest draft a change builds on; published reads what renders use. Word and PowerPoint templates are documents: for them it returns the settings and data, not the document. Read-only and free.
Inputs: template (required), version. Returns: css, head, html, i18n, +7 more
get_workspaceWhich workspace this server works inARead-only
Returns the workspace and organisation this server acts in, the plan, the environment (live or test) and the units of the current period: included, used and the balance of prepaid units. Call it when the user asks where a document will land or how many renders are left, or when list_templates returns nothing you expected. A signed-in agent works in the workspace chosen when it was connected, which the person changes in Formfeed under Account → Connected agents; an API key works in the workspace it was made for. Read-only and free.
Inputs: no named parameters. Returns: plan, units, period, workspace, +2 more
list_templatesList templatesARead-only
Lists the templates of the workspace this server works in (the one chosen at sign-in, or the API key's), most recently changed first: id, slug, name, kind (pdf, image, docx for Word, pptx for PowerPoint), engine, tags and published_version. Call it first to find the slug that get_template_schema, validate_template and render take; skip it when the user already named the template. Returns every match in one answer, without archived templates, and an empty list when nothing matches. A template whose published_version is null has never been published, so render cannot use it yet. Read-only and free.
Inputs: q, tag, kind, engine. Returns: templates
markdown_to_pdfTurn Markdown into a PDFA
Turns a Markdown document into a PDF without a template, e.g. a report, notes or an answer you wrote, and returns the render with status and download_url. It reads GitHub Flavored Markdown (tables, task lists, strikethrough) and footnotes; a YAML front matter block gives the title, author, subject and keywords, else the first heading is the title; a line \newpage starts a new page. Raw HTML in the text is shown as text. A picture named without an address (
) is a file of the workspace library, uploaded in Formfeed; with path, a picture beside the file is sent along instead. The headings become the PDF bookmarks by default, and pdf_ua checks the file against PDF/UA-1 before it is delivered. If the text holds formulas ($…$, $$…$$ or a math fence), set math: they are typeset with KaTeX, and a formula that does not parse fails the call naming its line; without math a $ is text, as in prices. If it holds mermaid fences, set diagrams: they are drawn by Mermaid; give each an accTitle line, its name in the PDF, and a diagram that cannot be drawn fails the call naming its line. To fill a template with data, use render; to convert an office file, use convert_to_pdf. Every call is a new render: one unit per started five pages on a live key or for a signed-in agent, free with a test key; every plan.
Inputs: css, math, path, wait, +9 more. Returns: id, form, pdfa, error, +10 more
pdf_to_imageTurn PDF pages into picturesA
Draws pages of a PDF as PNG or JPEG pictures and returns the render with download_url: one page gives the picture, which this tool also hands back so you can look at it (up to 2 MB), several pages a ZIP of pictures named by page. At most 100 pages and 120 million pixels a call, about 13 A4 pages at 300 dpi. Use it to see a page before redact_pdf, or for thumbnails. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Starter plan and above; one unit per picture on a live key.
Inputs: dpi, path, pages, format, +5 more. Returns: id, form, pdfa, error, +10 more
redact_pdfRedact a PDFA
Removes what lies under rectangles of the pages, and every place where a text stands, from the file itself and not just from view: text, the pixels of images under a rectangle, and links and comments it touches. The result is read again: a text that can still be found fails the call with redaction_incomplete, which names rectangles and texts by their number, and nothing is delivered. Rectangles are points from the top-left corner of the page as a viewer shows it, 72 to an inch; get_pdf_info gives the page sizes and pdf_to_image a picture of the page. A text is found whatever its spacing, ignoring case unless match_case is true. A black box is drawn over each removed place, another colour with fill, none with fill null. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Starter plan and above; 0.5 units on a live key. The texts are never stored.
Inputs: fill, path, text, source, +6 more. Returns: id, form, pdfa, error, +10 more
renderRender a documentA
Creates a document by filling a stored template, or ad-hoc html, with data: a PDF or image, or DOCX, PPTX or PDF from Word and PowerPoint templates. Returns the render with status and download_url; for an image (png, jpg or webp) up to 2 MB the result also carries the picture itself, so look at what you made before handing it on (a PDF comes as its link). Use it to make a document from data; to turn an existing office file into a PDF, use convert_to_pdf, and for a Markdown document, markdown_to_pdf. Stored templates render their published version, so one whose published_version is null fails with template_not_found. Every call is a new render: a live key or a signed-in agent consumes units, a test key is free (watermarked on the Free plan). A render that fails returns status failed and an error with code and message; validate_template finds most causes beforehand. With einvoice the PDF becomes a ZUGFeRD / Factur-X e-invoice built from data._invoice (check the block with check_invoice first): the render then carries einvoice, the validator's report, and a refused invoice names the fields and rules to fix. The link expires at expires_at; get_render issues a fresh one.
Inputs: data, html, wait, engine, +5 more. Returns: id, form, pdfa, error, +10 more
save_templateSave a template as a draftA
Saves a template as a draft, never published: renders keep using the published version until a person publishes the draft in Formfeed. With template and base_checksum it saves a new version of that template: read it with get_template_source first, change what the user asked for, and pass only the parts you changed (the others are kept from the version you read). With new_template and html it creates a template whose version 1 is the draft. change_note says what changed; the person reads it before publishing. Returns the saved version, the check of the draft with its sample data (fix every error and save again) and review_url, the page where the person reviews and publishes it: hand that to the user. Needs an API key with template:write, or, for a signed-in agent, the person's permission under Account → Connected agents in Formfeed. Word and PowerPoint templates cannot be saved here. Free; a new template counts towards the plan's template limit.
Inputs: change_note (required), css, head, html, +9 more. Returns: ok, next, version, template, +2 more
split_pdfSplit a PDFA
Cuts a PDF into parts, every N pages each or one part per entry of ranges, and returns the render with download_url: a ZIP of the parts, named after the source (contract-1.pdf, contract-2.pdf and so on), or the PDF itself when there is one part. get_pdf_info gives the page count first. Pass exactly one PDF: source, a render or library file of the workspace; path, a file on this machine; or file_base64. Starter plan and above; 0.5 units on a live key. A PDF/A or a password-protected PDF is refused.
Inputs: path, every, ranges, source, +3 more. Returns: id, form, pdfa, error, +10 more
validate_einvoiceValidate an e-invoiceARead-only
Says which rules an e-invoice passed, by which validator and release: the file is held to the rule set its specification identifier (BT-24) names, Factur-X and ZUGFeRD by Mustang, XRechnung (CII and UBL) by the KoSIT validator, and each check (syntax, schema, every named rule set) comes back with its own result and findings. Pass exactly one source: render_id, an e-invoice this workspace rendered, which is answered from the report the render keeps and costs nothing; path, an XML file on this machine; or xml_base64, the XML itself. An XML takes one of the organisation's validations of the day (from the Starter plan; Free validates no uploads). Up to 4 MB of CII or UBL; a PDF is not taken. result is passed, failed or not_checked: not_checked means no rule set here is for the file (reason and explanation say why, such as an identifier it does not know), not that the file is wrong. The report says which rules a file passed; it does not say whether the document is a proper invoice for VAT purposes. To check an _invoice block before rendering it, use check_invoice.
Inputs: path, rules, render_id, xml_base64. Returns: rules, checks, reason, result, +5 more
validate_templateValidate a template with dataARead-only
Checks a template and its data without rendering: free, no units, nothing stored, no document produced. Call it before render when you assembled the data yourself, or after writing ad-hoc html. With template, the API checks the published version (else the latest, or the version you name) as a render would: syntax, header and footer, errors only this data triggers, and the data against the stored JSON Schema (a wrong type or a missing required field is an error). With html and engine it compiles offline and reports syntax errors, unknown filters and variables missing from data. Returns ok and diagnostics (severity, code, message, plus path, line and column, or part and paragraph for Word and PowerPoint). Warnings leave ok true: settle each before rendering.
Inputs: data, html, engine, version, +1 more. Returns: ok, template, diagnostics
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools target clearly different resources and actions: template discovery/editing, rendering, conversion, PDF operations, and e-invoice checks are cleanly separated. A few adjacent pairs—validate_einvoice vs. check_invoice, and render vs. markdown_to_pdf vs. convert_to_pdf—require reading the descriptions, but they are not truly overlapping.
The set is overwhelmingly consistent snake_case with recognizable verb_noun names such as list_templates, validate_template, and fill_pdf_form. Minor deviations like markdown_to_pdf and pdf_to_image use source_to_target naming instead, and render is a bare verb, but the convention remains readable.
Eighteen tools is slightly above the typical well-scoped range, but the server covers several genuine subdomains: templates, rendering, PDF manipulation, and e-invoice validation. Each tool appears to earn its place, though the surface is on the heavy side.
Core workflows are covered: template discovery, schema/source reading, validation, drafting, rendering, conversion, and common PDF operations, plus e-invoice preflight and validation. Minor gaps remain, such as no PDF merge operation and no template delete/publish tool, though publishing is intentionally routed through a human review URL.
Maintenance
Related MCP Connectors
Render PDFs and images from your Formfeed templates, check data against a template's schema, make ZUGFeRD / Factur-X e-invoices checked against EN 16931, and convert Office files to PDF. Sign in with your Formfeed account or use an API key.
Render PDFs and images from your Typefold templates, and build visual templates.
Render PDFs from templates you design once: list templates, check the data shape, preview, render.
JSON in, PDF out. Render invoices, certificates, reports and cards from a template and a payload.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Word document generation from templates using Jinja2 syntax and parsing of DOCX, PDF, and Excel files to extract structured content, metadata, and text.1MIT

docjet-mcpofficial
AlicenseAqualityCmaintenanceRender branded PDF documents (invoices, reports, certificates) and PNG social images directly from any MCP client using DocJet templates or raw HTML with JSON data.335 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables PDF and image generation from templates, JSON, HTML, or URLs through the PDF Gen Studio API. Supports rendering, template management, and multiple output formats.17 npm1MIT

DocuQueue MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables creating professional documents (invoices, contracts, certificates, proposals, reports) via the DocuQueue API, with tools for template management, filling, previewing, and PDF generation.21 npm1MIT