Skip to main content
Glama

APITemplate.io MCP by usefulapi

Server Details

Generate PDFs and images with APITemplate.io from templates, HTML, Markdown or a URL.

If you are the author of this connector, you can claim ownership by verifying the domain or GitHub account it belongs to. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Last Tested
Transport
Streamable HTTP · MCP 2025-06-18
URL
Repository
m190/usefulapi-mcp
GitHub Stars
0

TDQS

Score is being calculated.

Available Tools

10 tools
apitemplate_create_imageCreate an image from a templateInspect

WRITE: renders one image (JPEG and PNG) from a saved image template, changing the named layers with overrides (e.g. [{"name":"text_1","text":"Hello"},{"name":"image_1","src":"https://..."}]), and returns the hosted download URLs (never the file bytes). COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-image.

ParametersJSON Schema
NameRequiredDescriptionDefault
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
overridesYesLayer changes: each item has the layer 'name' and the properties to set (text, src, color, textBackgroundColor ...).
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
template_idYesThe template id (apitemplate_list_templates, or the web console, Manage Templates).
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.
output_image_typeNoWhich formats to render (default all).
apitemplate_create_pdfCreate a PDF from a templateInspect

WRITE: renders one PDF from a saved PDF template and your JSON data (the keys the template uses, e.g. invoice_number, items), and returns the hosted download_url (never the file bytes). Synchronous. COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf (export_type=json).

ParametersJSON Schema
NameRequiredDescriptionDefault
dataYesJSON data merged into the template, e.g. {"invoice_number":"INV-1","total":42}. Keys depend on the template.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
output_htmlNoAlso return html_url, the rendered HTML.
template_idYesThe template id (apitemplate_list_templates, or the web console, Manage Templates).
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.
apitemplate_create_pdf_from_htmlCreate a PDF from HTMLInspect

WRITE: renders one PDF from HTML (Jinja2 placeholders like {{name}} are filled from data), without a saved template, and returns the hosted download_url (never the file bytes). COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf-from-html (export_type=json).

ParametersJSON Schema
NameRequiredDescriptionDefault
cssNoCSS including the <style> tag.
bodyYesHTML body; may use Jinja2 syntax such as {{name}}.
dataNoValues for the placeholders in body, e.g. {"name":"Jo"}.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
settingsNoPDF print settings.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.
apitemplate_create_pdf_from_markdownCreate a PDF from MarkdownInspect

WRITE: renders one PDF from Markdown (Jinja2 placeholders like {{lang}} are filled from data) and returns the hosted download_url (never the file bytes). COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf-from-markdown (export_type=json).

ParametersJSON Schema
NameRequiredDescriptionDefault
cssNoCSS including the <style> tag.
bodyYesMarkdown text; may use Jinja2 syntax such as {{lang}}.
dataNoValues for the placeholders in body.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
settingsNoPDF print settings.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.
apitemplate_create_pdf_from_urlCreate a PDF from a web page URLInspect

WRITE: APITemplate.io opens one public web page URL and prints it to a PDF, and returns the hosted download_url (never the file bytes). The page is fetched by APITemplate.io, not by this server; pages that need a login cannot be printed. COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/create-pdf-from-url (export_type=json).

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesThe public http(s) URL of the page to print.
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
filenameNoCustom file name ending in .pdf (default: a random UUID).
settingsNoPDF print settings.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-10080.
generation_delayNoMilliseconds to wait before rendering (0-30000), for pages that load content late.
apitemplate_get_accountGet account and quota
Read-only
Inspect

The APITemplate.io account behind this key: plan, subscription status and period, and the quota: api_quota, api_used, api_remaining (generations), plus the template quota and count. Check api_remaining before generating. GET /v2/account-information.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

apitemplate_get_templateGet PDF template source
Read-only
Inspect

One PDF template's HTML body, CSS and print settings (the vendor marks this endpoint experimental, so it can answer with an error for some accounts or image templates). Read-only. GET /v2/get-template.

ParametersJSON Schema
NameRequiredDescriptionDefault
template_idYesThe template id (apitemplate_list_templates, or the web console, Manage Templates).
apitemplate_list_objectsList generated files
Read-only
Inspect

List the PDFs and images generated so far, newest first: transaction_ref, template_id, type (PDF, JPEG or MERGE), your meta reference, the hosted file URLs (primary_url, secondary_url for the PNG) and dates. Files already deleted or expired have deletion_status set. Read-only. GET /v2/list-objects.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of records, 1-500 (default 50).
offsetNoRecords to skip (default 0). Next page: offset + limit.
template_idNoOnly files generated from this template.
transaction_typeNoOnly this kind of file.
apitemplate_list_templatesList templates
Read-only
Inspect

List the templates of the account (PDF and image): template_id, name, format (PDF or JPEG), status, group and dates. Use the template_id with the create tools. Read-only; templates are never changed. GET /v2/list-templates.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of records, 1-500 (default 50).
formatNoOnly PDF or only image (JPEG) templates.
offsetNoRecords to skip (default 0). Next page: offset + limit.
group_nameNoOnly templates of this group.
template_idNoThe template id (apitemplate_list_templates, or the web console, Manage Templates).
apitemplate_merge_pdfsMerge PDFsInspect

WRITE: joins 2-20 PDFs (public http(s) URLs, in the given order, e.g. earlier download_url values) into one PDF and returns the hosted primary_url (never the file bytes). The source files are not changed or deleted. COST: uses 1 generation of your APITemplate.io plan quota per call (see apitemplate_get_account). Do not retry or repeat it unless needed; every call is counted. POST /v2/merge-pdfs (export_type=json).

ParametersJSON Schema
NameRequiredDescriptionDefault
metaNoYour own reference id for this file; it shows up in apitemplate_list_objects.
urlsYesThe PDF URLs to join, in order.
expirationNoMinutes until the hosted file expires: 0 = keep permanently (default), or 1-43200.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 10 tool updates
    • First observedapitemplate_create_image
    • First observedapitemplate_create_pdf
    • First observedapitemplate_create_pdf_from_html
    • First observedapitemplate_create_pdf_from_markdown
    • First observedapitemplate_create_pdf_from_url
    • First observedapitemplate_get_account
    • First observedapitemplate_get_template
    • First observedapitemplate_list_objects
    • First observedapitemplate_list_templates
    • First observedapitemplate_merge_pdfs

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables PDF and image generation from templates, JSON, HTML, or URLs through the PDF Gen Studio API. Supports rendering, template management, and multiple output formats.
    11 npm
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Generate professional PDFs from Claude, Cursor, and other AI tools. Create invoices, contracts, reports, and certificates from templates or inline HTML markup.
    7
    43 npm
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Render PDFs and images from HTML templates (Jinja2, Liquid, Handlebars) or Word and PowerPoint files through the Formfeed API, check data against a template's schema before rendering, and convert Office documents to PDF.
    8
    1
    MIT
Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.