sheetrender-mcp
Render PDFs from templates and spreadsheet data via SheetRender, locally or at mcp.sheetrender.com
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"sheetrender-mcp": {
"command": "npx",
"args": [
"@sheetrender/mcp"
]
}
}
}可运行的软件包
0.5.4stdio远程端点
https://mcp.sheetrender.com/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢list_document_templates
List the document templates this server can fill from rows of data: certificate of completion, letter, donation receipt and job offer letter. Returns each template's key, name, a one-line description, page size and orientation, and its fields (key, label, whether it is required, an example value, and how the value is printed). Call this first when the user wants PDFs made from a spreadsheet, a table, a CSV or a list of people, so you can map their columns onto a template's field keys before calling render_documents. Takes no arguments.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"templates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"page": {
"type": "string"
},
"orientation": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"label": {
"type": "string"
},
"required": {
"type": "boolean"
},
"example": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"description": {
"type": "string"
},
"max_chars": {
"type": "number"
},
"max_bytes": {
"type": "number"
},
"max_lines": {
"type": "number"
}
},
"required": [
"key",
"label",
"required",
"example",
"description",
"max_chars",
"max_bytes"
],
"additionalProperties": false
}
}
},
"required": [
"key",
"name",
"description",
"page",
"orientation",
"fields"
],
"additionalProperties": false
}
}
},
"required": [
"templates"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢render_documents(template, rows, title)
Render one PDF per row of data with a built-in template, and return a PNG preview and a PDF download link for each document. Use when the user has a spreadsheet, table, CSV or list and wants a certificate of completion, letter, donation receipt or job offer letter for each row. Get the field keys from list_document_templates, map the user's columns onto them, and pass each row as an object keyed by field key; values must be text, numbers, true/false or null; a text value may hold at most 2000 characters unless list_document_templates gives a different limit for that field. Renders up to 25 rows per call and up to 50 documents per month for each user (in Claude, each conversation); callers the service cannot tell apart, such as all Claude users together, also share one monthly limit. The response says how many documents remain this month (or that the month's limit is shared with other users) and when the count resets. Rows missing a required field are reported in missing_fields. Preview and PDF links expire after one hour. This tool only fills the built-in templates; it does not accept HTML or custom designs.
输入模式
{
"type": "object",
"properties": {
"template": {
"type": "string",
"enum": [
"certificate",
"letter",
"donation_receipt",
"job_offer_letter"
],
"description": "Template key from list_document_templates."
},
"rows": {
"minItems": 1,
"maxItems": 25,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"description": "Text. A field's length limit is listed by list_document_templates; 2000 characters when none is given."
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"description": "One document's values, keyed by the template's field keys."
},
"description": "One object per document, at most 25 per call."
},
"title": {
"type": "string",
"maxLength": 120,
"description": "Optional name for this set of documents, e.g. \"Q3 volunteer certificates\"."
}
},
"required": [
"template",
"rows"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"template": {
"type": "string"
},
"template_name": {
"type": "string"
},
"rows_received": {
"type": "number"
},
"rows_rendered": {
"type": "number"
},
"documents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row_index": {
"type": "number"
},
"label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"preview_png_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"pdf_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"row_index",
"label",
"preview_png_url",
"pdf_url"
],
"additionalProperties": false
}
},
"expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"missing_fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"row_index": {
"type": "number"
},
"fields": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"row_index",
"fields"
],
"additionalProperties": false
}
},
"volume": {
"anyOf": [
{
"type": "object",
"properties": {
"used": {
"type": "number"
},
"limit": {
"type": "number"
},
"resets_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"scope": {
"type": "string",
"enum": [
"subject",
"pool"
]
}
},
"required": [
"used",
"limit",
"resets_at"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"continue": {
"type": "object",
"properties": {
"how": {
"type": "string"
}
},
"required": [
"how"
],
"additionalProperties": false
},
"status": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [
"template",
"template_name",
"rows_received",
"rows_rendered",
"documents",
"expires_at",
"missing_fields",
"volume",
"continue"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟡create_continue_link(template, rows, title)
Create a link to the template's page on the SheetRender website with the user's rows loaded, so they can be kept as a SheetRender project. Call this only when the user asks to continue on the website, to keep or save the rows, to repeat or schedule the job, or to have the documents delivered by email; do not call it otherwise. Accepts up to 100 rows. The rows are stored until they are loaded into a project or for 7 days, whichever comes first, and the link expires after 7 days.
输入模式
{
"type": "object",
"properties": {
"template": {
"type": "string",
"enum": [
"certificate",
"letter",
"donation_receipt",
"job_offer_letter"
],
"description": "Template key from list_document_templates."
},
"rows": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"description": "Text. A field's length limit is listed by list_document_templates; 2000 characters when none is given."
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"description": "One document's values, keyed by the template's field keys."
},
"description": "The user's rows, keyed by field key, at most 100."
},
"title": {
"type": "string",
"maxLength": 120,
"description": "Optional name for this set of documents, e.g. \"Q3 volunteer certificates\"."
}
},
"required": [
"template",
"rows"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}输出模式
{
"type": "object",
"properties": {
"continue_url": {
"type": "string"
},
"expires_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"rows_saved": {
"type": "number"
}
},
"required": [
"continue_url",
"expires_at",
"rows_saved"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社区
证据