TemplateFox MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with TemplateFox MCP or direct API to generate PDFs, create images, manipulate PDFs, and manage template versions through natural language.

TemplateFox logoTemplateFox
Api Key

TemplateFox is a template-driven service for generating PDFs and images from reusable templates. It helps teams automate templated documents, manage versions, and store outputs reliably.

24 Tools

Try TemplateFox now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
TemplateFox
Try asking
TOOLS

Supported Tools

Every TemplateFox action and event your agent gets out of the box.

Create Template With Agent

Queue TemplateFox's authoring agent to create an image template from natural-language instructions.

Create Image

Generate a PNG, JPEG, or WebP image from a TemplateFox image template and return a temporary URL or configured S3 location.

Create PDF

Generate a PDF synchronously from a TemplateFox template and return a temporary URL or configured S3 location.

Create PDF Asynchronously

Queue PDF generation and return a job ID for polling.

Create Template Version

Create an immutable snapshot of an existing TemplateFox template with a unique lowercase tag.

Delete S3 Configuration

Permanently remove the connected account's saved S3-compatible storage credentials.

Delete Template Version

Permanently delete one immutable template version.

Extract PDF Pages

Extract, reorder, or split selected pages from one PDF and return a temporary result URL.

Get Account

Get the connected TemplateFox account identity and remaining credit balance without consuming credits.

Get Agent Job

Get an authoring-agent job's status, resulting template ID, preview, charged credits, or failure details.

Get PDF Job

Get the status, result location, or failure details of an asynchronous PDF generation job.

Get S3 Configuration

Get the connected account's S3-compatible storage configuration.

List Account Transactions

List credit purchases, consumption, refunds, and bonuses one offset page at a time.

List PDF Jobs

List asynchronous PDF generation jobs, optionally filtered by status, one offset page at a time.

List Template Fields

List the dynamic variables a template accepts so an agent can construct valid generation data.

List Template Layers

List addressable image-template layers and their modifiable properties for CREATE_IMAGE.

List Templates

List PDF or image templates belonging to the connected TemplateFox team.

List Template Versions

List immutable snapshots of a template, including version numbers and optional tags.

Merge PDFs

Concatenate two or more PDFs in the supplied order and return a temporary result URL.

Revise Template With Agent

Queue TemplateFox's authoring agent to revise an existing image template from feedback.

Rotate PDF

Rotate all pages or selected pages in a PDF and return a temporary result URL.

Save and Test S3 Configuration

Create or update the connected account's S3-compatible storage credentials, then test access to the configured bucket.

Update Template Version

Change or clear the tag and/or description metadata of a template version; the immutable snapshot content is not changed.

Validate S3 Configuration

Test access to the configured S3-compatible bucket using stored credentials, including writing a small test object, without changing the saved credentials.

SETUP GUIDE

Connect TemplateFox MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
// Example: create auth config or link account for TemplateFox
// await composio.authConfigs.create({ toolkit: 'templatefox', config: { type: 'api_key', name: 'templatefox-default' } });
// await composio.connectedAccounts.link({ toolkit: 'templatefox', credentials: { apiKey: '*****' } });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for TemplateFox
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Generate an image from template "social-post" with text "Big Announcement" and upload to S3'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect TemplateFox API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute TemplateFox Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: "Generate a PDF invoice using template 'standard-invoice' for customer 'Jane Doe' amount '$1,250' and save to S3"
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute TemplateFox actions with your Agent

Why Use Composio?

AI Native TemplateFox Integration

  • Supports both TemplateFox MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your TemplateFox data

Managed Auth

  • Built-in API key handling with secure storage
  • Central place to manage, scope, and revoke TemplateFox access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access TemplateFox
  • Scoped, least privilege access to TemplateFox resources
  • Full audit trail of agent actions to support review and compliance

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with TemplateFox.It takes 30 seconds.

Managed auth, hosted MCP servers, and every TemplateFox tool your agent needs.Free to start.

Start building