Skip to main content
The Autype MCP server implements the Model Context Protocol (MCP 2025-03-26) over Streamable HTTP. It exposes Autype’s document generation capabilities as tools that any compatible AI agent or IDE can call directly — no custom code required.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI agents and applications to access external tools and data sources. Think of it as a universal API that AI assistants understand natively. With the Autype MCP server, your AI agent can:
  • Generate documents from a full document JSON or Extended Markdown and receive a download URL
  • Build documents iteratively — create a session, add sections one by one, then render
  • List projects — browse your Autype projects and documents
  • Read the document schema — the agent can inspect the full JSON schema as a resource to construct valid documents

Prerequisites

The hosted MCP endpoint is available at https://mcp.autype.com/mcp/. Self-hosting instructions are at the bottom of this page.

Supported clients

Available tools

Render tools

ToolDescription
render_documentRender a complete document JSON to PDF/DOCX/ODT. Takes a config object (with document, sections, and optionally defaults, variables, abbreviations, citations). Waits for completion and returns a download URL.
render_markdownRender Extended Markdown to PDF/DOCX/ODT. Takes content (markdown string) and document (settings with type, size, etc.) as separate top-level parameters, plus optional defaults, variables, abbreviations, citations, style.
render_get_statusPoll for render job status by job ID. Returns status, download URL (when completed), format, credit cost, and timestamps.
render_list_jobsList render jobs with pagination (page, limit) and optional status filter (“PENDING”, “PROCESSING”, “COMPLETED”, “FAILED”).

Document builder tools

ToolDescription
builder_create_sessionCreate a new session. Accepts document_type (“pdf”/“docx”/“odt”), size (“A4”/“A3”/“A5”/“Letter”/“Legal”/“Tabloid”), orientation, title, and margin settings. Returns a sessionId.
builder_get_sessionGet the full document JSON config and section count for a session.
builder_list_sessionsList all active builder sessions.
builder_update_documentUpdate document-level settings (type, size, orientation, title, author, filename, margins). Only provided fields are changed.
builder_update_defaultsSet or merge global defaults: fontFamily, fontSize, color, lineHeight, spacing, styles, header, footer.
builder_set_variablesSet or merge template variables for \{\{varName\}\} substitution. Values can be strings, number objects, image objects, list objects, or table objects.
builder_add_sectionAdd a section with type (“flow”/“page”) and content array. Supports all element types: headings, text, images, tables, lists, code, math, charts, QR codes, page breaks, spacers, TOC, and more.
builder_update_sectionReplace a section at a given index with a new section object.
builder_remove_sectionRemove a section by index.
builder_reorder_sectionsReorder sections by providing a permutation of current indices.
builder_renderRender the session to the configured output format. Waits for completion and returns a download URL.
builder_delete_sessionDelete a session and free its memory.

Other tools

ToolDescription
projects_listList projects with pagination (page, limit). Each project contains document IDs for persistent rendering.

Schema resources

The MCP server exposes the Autype document schema as readable resources. Your AI agent can read these to understand the exact structure before constructing a document:
Resource URIDescription
autype://schemas/documentFull document JSON schema (sections, elements, defaults, variables, etc.)
autype://schemas/defaultsDefaults schema (fonts, colors, spacing, header/footer)
autype://schemas/document-settingsDocument settings (page size, orientation, margins, output format)
autype://schemas/variablesTemplate variables for text substitution
autype://schemas/abbreviationsAbbreviation entries for automatic expansion
autype://schemas/citationsCitation entries and bibliography configuration

Example prompts

Once connected, you can ask your AI agent naturally:
“Generate a two-page PDF invoice for client Acme GmbH, total €2,400, due 2026-03-15. Include a line items table.”
“Convert this markdown report to a PDF with A4 size and 3cm margins.”
“Create a DOCX contract template with {{client_name}}, {{start_date}}, and {{monthly_fee}} variables.”
“List my recent render jobs and download the latest completed one.”

Self-hosting with Docker

If you prefer to run the MCP server yourself, use the official Docker image:
docker run -d \
  --name autype-mcp \
  -p 8000:8000 \
  -e AUTYPE_API_BASE_URL=https://api.autype.com/api/v1 \
  -e MCP_PUBLIC_URL=http://your-server-hostname:8000 \
  ghcr.io/autypehq/autype-mcp:latest
Then point your MCP client to http://your-server-hostname:8000/mcp/.
When self-hosting, MCP_PUBLIC_URL must be reachable by the Autype API so that webhook callbacks (render job completion) can be delivered. Use a public hostname or ngrok tunnel for local development.

Docker Compose

services:
  autype-mcp:
    image: ghcr.io/autypehq/autype-mcp:latest
    ports:
      - "8000:8000"
    environment:
      AUTYPE_API_BASE_URL: https://api.autype.com/api/v1
      MCP_PUBLIC_URL: https://mcp.your-domain.com
      MCP_PORT: 8000
      SESSION_TTL_SECONDS: 3600
    restart: unless-stopped

Environment variables

VariableDefaultDescription
AUTYPE_API_BASE_URLhttps://api.autype.com/api/v1Autype API base URL
MCP_PUBLIC_URLhttp://localhost:8000Public URL of this MCP server (used for webhook callbacks)
MCP_PORT8000Port to listen on
SESSION_TTL_SECONDS3600How long inactive builder sessions are kept in memory