Skip to content

Use with AI assistants

Typefold has an MCP server, so AI assistants can list your workspace’s templates and render PDFs from them. Ask, for example, “render the Invoice template for order 2041 as a test” and the assistant sends the data and hands you a download link.

To have a coding agent write code that calls the API instead, use the Agent Skill.

The server’s address is the address you open Studio at, followed by /mcp, such as https://pdf.example.com/mcp. On the hosted service it is https://app.typefold.dev/mcp.

Most assistants connect by signing in: you add the address, a browser window opens Studio, and you choose the workspace the assistant may use. It acts as you, with no more access than your role gives, and never with more than these permissions:

  • see your templates and the data they take
  • create and change templates
  • render documents and see your renders

You can disconnect an assistant at any time under Account security → Connected apps in Studio.

Tools that can’t sign in send an API key in an Authorization: Bearer header instead. Give the key template:read, render:create and render:read, and template:write to build templates. Give the assistant a key of its own, so you can revoke it without affecting your applications.

The hosted server is also listed in the MCP Registry as dev.typefold/typefold.

  1. In Claude, open Settings → Connectors and choose Add custom connector.
  2. Enter Typefold as the name and the server’s address as the URL, then choose Add.
  3. Choose Connect, sign in to Studio, pick the workspace and choose Connect again.

Claude connects from the internet, so the server must be reachable from it. For a server only on your own network, use Claude Code or Cursor.

The connector then works in Claude on the web, Claude Desktop and the Claude mobile apps. On Team and Enterprise plans, an owner adds it under Organization settings → Connectors first.

Terminal window
claude mcp add --transport http typefold https://pdf.example.com/mcp

Then run /mcp in Claude Code, choose typefold and sign in. To use an API key instead, add --header "Authorization: Bearer $TYPEFOLD_API_KEY". See Claude Code MCP for where the server is saved.

Add the server to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for all projects. Cursor then shows Needs login next to it in Settings → MCP: choose it and sign in. See Cursor MCP.

{
"mcpServers": {
"typefold": {
"url": "https://pdf.example.com/mcp"
}
}
}

To use an API key instead, add "headers": { "Authorization": "Bearer ${env:TYPEFOLD_API_KEY}" } and set TYPEFOLD_API_KEY in your shell profile.

Any MCP client that supports sign-in (OAuth) connects with the server’s address alone. Others need the API key header.

  1. Add an MCP Client Tool to your AI Agent node.
  2. Set Endpoint to the server’s address and Server Transport to HTTP Streamable.
  3. Set Authentication to Bearer Auth and create a credential with the API key as its token.
  4. Keep Tools to Include at All.

See n8n’s MCP Client Tool.

Tool What it does
list_templates Lists the workspace’s templates, their folders and formats, and whether each is published.
get_template_data_schema Returns the shape of the data a published template takes.
render_report Renders a published template to PDF or an image, as the Reports API does, and returns a download link.
start_render Starts a background render of a published template, as the Renders API does, for large files.
get_render_status Returns a render’s state, and once it succeeded, a download link.
  • Download links work for 5 minutes. Ask for the render’s status to get a new one.
  • render_report and start_render take test: true for a free test render with a “TEST” watermark. Ask for test renders while you try things out.
  • Both also take a locale for the template’s translations and a watermark, such as “DRAFT” across every page.
  • Both also take a contentSet, the name of one of the template’s content sets, such as a customer’s.
  • Both also take format: "png", "jpeg" or "webp" for one page drawn as an image, such as a social preview, with image choosing the page and width.
  • start_render also takes a destination to upload the file to one of your storage destinations by its name. With keepCopy: false the render has no download link.
  • Real renders count against your plan’s documents, as API renders do, and the same limits apply.
  • The server doesn’t render Excel files. For those, use the Reports API.

The assistant can also build and change visual templates, the ones Studio’s visual editor opens. Ask, for example, “make a packing slip template for this order JSON” or “move the logo to the right and make the totals bold”. With an API key, give it a key that also has template:write.

Tool What it does
get_tree_format Describes the blocks a visual template is made of and how to change them. The assistant reads it first.
create_visual_template Creates a visual template from a tree of blocks, from example data laid out with every field in place, or from a blank page.
get_visual_template Returns a visual template’s blocks and page settings.
list_blocks Lists the blocks in page order, with the ids and names the assistant uses to change them.
edit_visual_template Inserts, moves, removes and changes blocks and the template’s theme. People with the template open in the visual editor see each change at once.
preview_visual_template Draws pages as images, and lists the problems Studio shows, such as values with no data, text that runs out of its box, QR codes a scanner can’t read, PDF/UA and Factur-X issues.
convert_visual_template_to_html Turns a visual template into an HTML template that draws the same pages, as a copy or in its place.
  • Previews are free and aren’t stored. On plans that count documents they carry a “TEST” watermark.
  • Changes go to the template’s draft. Publish it in Studio before rendering it with render_report.
  • Every change is a draft revision, so you can go back to an earlier one in the template’s history, including after converting it to HTML.

These docs are also published for language models: /llms.txt lists every page, and /llms-full.txt holds them all in one file. The API’s OpenAPI document is at /reference/api/openapi.json.