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 分