TemplateFoxPDF

io.github.TemplateFoxPDF由 GitHub 账号 TemplateFoxPDF 发布v1.9.7更新于 Oct 24, 2026

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

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

TemplateFox PDF 服务器,让 AI 助手列出模板、填入数据并通过 TemplateFox API 生成 PDF。

可以做什么
列出可用模板,并查看每个模板在填写前所需的字段。使用动态数据从模板生成 PDF,或排队异步生成任务并可选择设置 webhook。查询异步任务状态并列出历史 PDF 生成任务。查看账户信息、剩余额度和额度交易记录。
适用场景
适合希望助手在对话中直接用现有 TemplateFox 模板生成发票、报告等文档,或查询 PDF 生成额度和任务历史的场景。
运行要求
以 npm 包形式在本地运行(npx 或全局安装),需要 Node.js。需要 TemplateFox 账户和 TEMPLATEFOX_API_KEY 环境变量。可选 TEMPLATEFOX_BASE_URL 覆盖 API 地址。需要访问 TemplateFox API 的网络连接。
安装前请注意
API 密钥是机密信息,通过环境变量传入;使用远程 HTTP 端点时则放在 Authorization 或 x-api-key 请求头中,请勿写入共享配置。每次生成 PDF 消耗一个额度,会产生费用。模板数据会发送到 TemplateFox API,异步任务可将结果推送到你指定的 webhook。

安装

在 SourceWeft 中

  1. 打开 控制台中的 TemplateFoxPDF,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

TemplateFox MCP Server

MCP (Model Context Protocol) server for the TemplateFox PDF generation API. Generate PDFs from templates directly through AI assistants like Claude, Cursor, and Windsurf.

Installation

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

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

Claude Code

bash
claude mcp add templatefox -- npx -y @templatefox/mcp-server

Then set the environment variable TEMPLATEFOX_API_KEY in your shell.

Cursor / Windsurf

Use the same npx -y @templatefox/mcp-server command in your MCP server configuration, with TEMPLATEFOX_API_KEY in the environment.

Global Install (alternative)

bash
npm install -g @templatefox/mcp-server

Then use templatefox-mcp-server as the command instead of npx.

Configuration

Environment VariableRequiredDescription
TEMPLATEFOX_API_KEYYesYour API key (starts with sk_). Get one at app.templatefox.com/dashboard/api-keys
TEMPLATEFOX_BASE_URLNoOverride API base URL (default: https://api.templatefox.com)

Available Tools

ToolDescription
generate_pdfGenerate a PDF from a template with dynamic data (1 credit)
generate_pdf_asyncQueue async PDF generation with optional webhook (1 credit)
get_pdf_job_statusCheck the status of an async PDF job
list_pdf_jobsList async PDF generation jobs
list_templatesList all available templates
get_template_fieldsGet the fields/variables for a template
get_account_infoCheck remaining credits and account info
list_transactionsView credit transaction history

Remote Server (HTTP)

The MCP server also supports HTTP transport via Streamable HTTP, suitable for remote and cloud deployments.

Connect via URL

https://mcp-server-599407781746.us-central1.run.app/mcp

MCP clients must pass the API key via HTTP header:

Authorization: Bearer sk_your_api_key_here

or:

x-api-key: sk_your_api_key_here

Self-host

Run the server in HTTP mode by setting the PORT environment variable:

bash
PORT=8080 TEMPLATEFOX_API_KEY=sk_your_key node dist/index.js

Or with Docker:

bash
docker build -t templatefox-mcp .docker run -p 8080:8080 templatefox-mcp

The MCP endpoint is available at http://localhost:8080/mcp and a health check at http://localhost:8080/health.

Example Usage

Once configured, you can ask your AI assistant:

"List my PDF templates and generate an invoice using the Invoice Template with customer name 'John Doe' and amount 150.00"

The assistant will:

  1. Call list_templates to find available templates
  2. Call get_template_fields to discover required fields
  3. Call generate_pdf with the template ID and data
  4. Return the PDF download URL

Links

License

MIT

来源:README.md,提交 856fc82

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.9.7最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分