Quaterio
Claude integration

Generate PDFs from Claude

Add Quaterio's MCP server to Claude Code and ask for a PDF in the conversation. Claude finds the right template, fills in its variables and hands back a link to the PDF.

The problem

An AI agent can write the content of an invoice or a report, but it cannot lay it out as a branded PDF. Copying its output into a design tool by hand breaks the flow, and wiring a REST API into each agent means writing the same glue code every time.

How Quaterio handles it

Quaterio runs an MCP server at /api/v1/mcp. Add it to Claude Code with your API token and Claude can list your documents, read the variables a template expects and generate a PDF from a template, HTML or Markdown. Each tool calls the same endpoint as the REST API, so the plan, rate limits and usage are the same.

How it works

  1. 1

    Create an API token

    In Quaterio, open Dashboard → Settings → API Tokens in the organization Claude should work in, and create a token. It starts with q_ and works in that organization only. API and MCP access need a Business or Enterprise subscription.

  2. 2

    Add the server to Claude Code

    Run claude mcp add with the server URL and your token in an Authorization header, as shown below.

  3. 3

    Ask Claude for a PDF

    Ask in plain words, for example "list my Quaterio documents" or "generate the quote template for Acme as a PDF". Claude picks the tool, fills in the template's variables and returns the download link.

What the MCP server handles

  • Remote MCP server over Streamable HTTP at https://quaterio.com/api/v1/mcp
  • A q_ API token, sent as Authorization: Bearer
  • List documents (list_documents)
  • Get a document's variables (get_document_schema)
  • Generate a PDF from a template (generate_pdf_from_template)
  • Generate a PDF from HTML (generate_pdf_from_html)
  • Generate a PDF from Markdown (generate_pdf_from_markdown)
  • Generate a Factur-X invoice (generate_facturx)
  • PDFs come back as a download URL, so a large file stays out of the conversation
  • Factur-X invoices come back embedded in the result, never as a link
  • When the API refuses a call, Claude gets the error code, the message and the HTTP status
  • Works with any MCP client that connects over Streamable HTTP and can send an Authorization header

Connect over MCP

# Add Quaterio to Claude Code claude mcp add --transport http quaterio https://quaterio.com/api/v1/mcp \ --header "Authorization: Bearer q_your_api_token" # Then, in Claude Code: > Generate the quote template for Acme as a PDF

Available on Business plan and above.

Connect Claude to Quaterio

Sign up free and design your templates. Connecting Claude takes the Business plan, the same as the REST API.