@sheetrender/mcp
Official@sheetrender/mcp
用于 SheetRender 的 MCP 服务器 — 让你的 AI 助手能够从 HTML 模板和电子表格数据渲染 PDF。
设置
从 sheetrender.com → 设置 → API 密钥获取 API 密钥,然后添加到你的 MCP 客户端配置中:
{
"mcpServers": {
"sheetrender": {
"command": "npx",
"args": ["-y", "@sheetrender/mcp"],
"env": { "SHEETRENDER_API_KEY": "sr_live_..." }
}
}
}SHEETRENDER_API_URL 也会被读取,默认为 https://sheetrender.com。仅当指向自托管或预发布实例时才需要设置它。
Related MCP server: Dokmatiq DocGen
工具
render_pdf
从你提供的 HTML 渲染一个 PDF。
参数 | 类型 | |
| string | 必填 — 完整的 HTML 文档。CSS 必须内联在 |
| object | 可选 — 键成为 Jinja 变量,因此 |
| object | 可选 — 见下文。 |
返回保存的 PDF 的路径及其大小。如果小于 512 KB,它还会作为 base64 资源内联附加,因此显示附件的客户端会直接显示文档本身。
有两个服务器限制适用。超过 2 MB 的 HTML 会被拒绝 — 既测量你发送的内容,也测量在 data 替换后的文档,因此即使你编写的标记没有超限,展开长数据集的模板也可能超限。在免费计划中,每个渲染的 PDF 都会带有 "Made with SheetRender" 页脚 — 无论是来自 render_pdf 还是 render_template;付费计划则没有。
list_templates
无参数。返回每个已保存模板的名称、id 和最后更新日期。调用它可以将用户提到的模板名称转换为其他工具所需的 id。
render_template
从账户中已保存的模板渲染一个 PDF。
参数 | 类型 | |
| string | 必填 — 来自 |
| object | 必填 — 一行数据值,作为 Jinja 变量。 |
| object | 可选。省略则保留模板自身保存的页面设置;传入则会覆盖本次渲染的设置。 |
返回与 render_pdf 相同。
create_batch_job
排队一个后台任务,为已上传到项目的数据集中的每一行渲染一个 PDF。此服务器无法上传电子表格。
参数 | 类型 | |
| string | 必填 — 来自 |
| string | 必填 — 与模板位于同一项目中的数据集。 |
| string | 可选 — 输出命名模式,例如 |
| string | 可选 — 用于对行进行分组的列,每个不同值生成一个多页 PDF。 |
返回用于通过 get_job 轮询的任务 id。请注意,filename_template 和 group_by 会分别持久化到模板和项目中,因此它们也会更改后续运行的默认值。
如果服务器早于公共批处理端点,该工具会报告批处理任务不可用,而不是以晦涩的方式失败。
get_job
接受 job_id。返回状态、已完成和失败的行数,以及 — 一旦任务达到 succeeded、partial、failed 或 cancelled — 每个渲染文档的 id 和文件名。当任务处于 queued、retry_queued 或 running 状态时,文档列表保持为空。这些文档 id 就是 get_document 所接受的。
get_document
接受 document_id 并下载该单个渲染的 PDF。这些 id 来自已完成的批处理的 get_job;没有其他方式获取。返回与 render_pdf 相同 — 路径、大小,以及小于 512 KB 的内联 blob。
对于整个批处理,Web 应用中的合并 PDF 和 ZIP 比逐个获取每个文档更好。
page_settings
两个渲染工具共享,每个字段均可选:
{
"page_size": "a4",
"orientation": "portrait",
"margins": { "top": 15, "right": 15, "bottom": 15, "left": 15 }
}page_size 为小写 — a3、a4、a5、letter、legal 或 tabloid。边距是以毫米为单位的普通数字,不是 CSS 长度。
渲染的 PDF 写入系统临时目录。来自 API 的错误 — 密钥错误、模板缺失、速率限制 — 会作为携带服务器自身消息的工具错误返回。
公共 API 允许每个 API 密钥每分钟 120 个请求。超过后返回 429,工具会报告你已被限流,应稍后重试。批处理任务创建单独计量且更严格。
开发
无需主机 node/npm — scripts/dev.sh install、scripts/dev.sh deno task build。
MIT 许可。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceGenerate professional PDFs from Claude, Cursor, and other AI tools. Create invoices, contracts, reports, and certificates from templates or inline HTML markup.7381MIT

Dokmatiq DocGenofficial
AlicenseAqualityCmaintenancePDF/DOCX/Excel generation from HTML/Markdown with stationery overlay, ZUGFeRD/XRechnung e-invoicing, digital signing, form filling, and AI receipt OCR with DATEV/SKR03 export.40MIT
docjet-mcpofficial
AlicenseAqualityAmaintenanceRender branded PDF documents (invoices, reports, certificates) and PNG social images directly from any MCP client using DocJet templates or raw HTML with JSON data.340MIT- AlicenseNot gradedqualityDmaintenanceEnables PDF and image generation from templates, JSON, HTML, or URLs through the PDF Gen Studio API. Supports rendering, template management, and multiple output formats.121MIT
Related MCP Connectors
Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating
Fill existing fillable, flat and scanned PDF forms from structured data; save reusable templates
Turn a description into a shareable, editable PDF — invoices, certificates, reports, resumes.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sheetrender/sheetrender-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server