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

Validate that TemplateFox can access and write a small test object to the configured S3-compatible bucket 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 OAuth handling with automatic token refresh and rotation
  • 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

Yes, TemplateFox requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Yes. Composio is SOC 2 Type II compliant and is built to keep your TemplateFox connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Create the key in your TemplateFox account settings, then paste it once on Composio's connection page. Composio stores it encrypted and uses it only for the TemplateFox actions your agent runs. Nobody else in your workspace can read it, and you can revoke it inside TemplateFox at any time.

When you connect a TemplateFox account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in TemplateFox as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside TemplateFox. If TemplateFox lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside TemplateFox at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each TemplateFox connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

The connection stops working the moment TemplateFox rejects the old key. Create a new key in TemplateFox and reconnect the account from the Composio dashboard or by asking your agent to reconnect TemplateFox. Nothing else changes.

Composio's free Hobby plan includes 100,000 tool calls per month with no credit card, which covers most personal TemplateFox use. Paid plans add higher limits and team features. Your TemplateFox plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple TemplateFox accounts).

With Composio, you connect TemplateFox once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with TemplateFox.It takes 30 seconds.

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

Start building