
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
概览
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 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 TemplateFoxPDF,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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):
Claude Code
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)
Then use templatefox-mcp-server as the command instead of npx.
Configuration
Available Tools
Remote Server (HTTP)
The MCP server also supports HTTP transport via Streamable HTTP, suitable for remote and cloud deployments.
Connect via URL
MCP clients must pass the API key via HTTP header:
or:
Self-host
Run the server in HTTP mode by setting the PORT environment variable:
Or with Docker:
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:
- Call
list_templatesto find available templates - Call
get_template_fieldsto discover required fields - Call
generate_pdfwith the template ID and data - Return the PDF download URL
Links
License
MIT
来源:README.md,提交 856fc82
工具
0版本历史
1- v1.9.7最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分