# TemplateFox MCP Server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/TemplateFoxPDF/mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 245  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-76

## Description
MCP server for TemplateFox PDF generation API - Generate PDFs from templates via AI assistants

## Tools
Capabilities this server exposes over MCP:

- **generate_pdf** — Generate a PDF from a template with dynamic data. Returns a URL to download the generated PDF. Costs 1 credit per generation. Use list_templates to find available templates and get_template_fields to discover required data fields.
- **generate_image** — Generate an image (PNG/JPEG/WebP) from an image template. Content is driven by modifications targeting named layers (use get_template_layers to discover them). Returns a URL to the rendered image — keep export_type at its default 'url' (binary is not supported over MCP). Costs 1 credit per generation.
- **generate_pdf_async** — Queue an asynchronous PDF generation job. Returns a job_id for status polling. Use for large documents or when you need webhook notifications. Costs 1 credit. Check progress with get_pdf_job_status.
- **get_pdf_job_status** — Get the status of an async PDF generation job. Returns status (pending, processing, completed, failed) and the PDF URL when completed.
- **list_pdf_jobs** — List async PDF generation jobs. Supports pagination and filtering by status.
- **list_templates** — List all available PDF templates. Returns template IDs and names. Use this to discover which templates are available before generating a PDF.
- **get_template_fields** — Get the dynamic fields for a specific template. Use this to know what data to provide when generating a PDF. Returns field names, types, and whether they are required.
- **get_template_layers** — List the named layers of an image template: name, type (background/image/text/shape), current text, and which fields each layer accepts as modifications in generate_image.
- **get_account_info** — Get account information including remaining credits and email address.
- **list_transactions** — List credit transaction history showing PDF generations, purchases, and refunds. Supports pagination.
- **author_template** — Have the TemplateFox authoring agent create a new image template from a natural-language description (plus optional brand colors/fonts/asset URLs). Asynchronous: returns a job_id — poll get_agent_job_status until completed, which always returns the template_id and a preview_url of the rendered result. Costs 25 credits, refunded if the job fails.
- **revise_template** — Send natural-language feedback to the authoring agent to revise an existing image template (layer names stay stable). Asynchronous: returns a job_id — poll get_agent_job_status for the fresh preview_url. Costs 10 credits, refunded if the job fails.
- **get_agent_job_status** — Get the status of an authoring-agent job (author_template / revise_template). When completed, returns the template_id and a preview_url of the rendered template. Failed jobs include the error and are automatically refunded.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "templatefox-mcp-server": {
    "command": "npx",
    "args": ["-y","@templatefox/mcp-server"],
    "env": {
      "TEMPLATEFOX_API_KEY": "",
      "TEMPLATEFOX_BASE_URL": "",
      "PORT": ""
    }
  }
}
```

**Requires environment variables:** `TEMPLATEFOX_API_KEY`, `TEMPLATEFOX_BASE_URL`, `PORT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What TemplateFox MCP Server MCP server does

TemplateFox MCP Server MCP server exposes the TemplateFox PDF generation API through Model Context Protocol. It is intended for AI assistants that need to work with templates and produce PDF documents without requiring a custom application layer for each request.

The server can discover the templates available to an account and inspect the fields or variables required by a selected template. After identifying the appropriate template and data structure, an assistant can request a PDF using dynamic values such as customer details or invoice amounts. The example workflow uses template discovery, field inspection, and PDF generation in sequence, then returns a PDF download URL.

It also provides account and job-management operations. Assistants can submit asynchronous PDF jobs, optionally include a webhook, inspect the status of a submitted job, and list previous async jobs. Account tools expose remaining credits, account information, and credit transaction history.

## How it works

The server authenticates with a TemplateFox API key and forwards MCP tool requests to the TemplateFox API. Synchronous generation uses one credit, and queued asynchronous generation also uses one credit. Status checks and listing operations are available for reviewing jobs, templates, account details, and transactions.

TemplateFox MCP Server MCP server supports two transport approaches. For local use, an MCP client starts the package through `npx`, or runs the globally installed `templatefox-mcp-server` command. For remote or cloud deployments, the server provides a Streamable HTTP endpoint. HTTP clients send the API key using either an `Authorization: Bearer` header or an `x-api-key` header.

## Setup and configuration

Local configuration requires the `TEMPLATEFOX_API_KEY` environment variable. The key starts with `sk_` and can be obtained from the TemplateFox API keys dashboard. `TEMPLATEFOX_BASE_URL` is optional and overrides the default API base URL, `https://api.templatefox.com`.

Claude Desktop, Cursor, and Windsurf can use the `npx -y @templatefox/mcp-server` command with the API key supplied in the MCP server environment. Claude Code can add the server with its `claude mcp add` command, followed by setting the key in the shell. A global npm installation is also available.

For self-hosted HTTP mode, set `PORT` and the API key before running the built server, or build and run the supplied Docker image. The MCP endpoint uses `/mcp`, and the self-hosted HTTP mode exposes `/health` for health checks.

## Tools and capabilities

- Generate a PDF from a template with dynamic data.
- Queue asynchronous PDF generation with an optional webhook.
- Check async job status and list async PDF jobs.
- List templates and inspect a template's fields.
- Check account information and remaining credits.
- Review credit transaction history.

## Limitations and notes

Template operations depend on templates already available in the connected TemplateFox account. PDF generation consumes credits, with the documented synchronous and asynchronous generation operations costing one credit each. An API key is required for normal use. The optional base URL setting is provided for API endpoint overrides; no other configuration variables are documented.

TemplateFox MCP Server MCP server can be used through the documented remote endpoint or self-hosted in HTTP mode, but HTTP clients must provide the API key in a supported header.

_Full upstream README: https://allmcps.com/mcp/mcp-server-76/readme_

