Skip to main content
Glama
@sheetrender/mcp

@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: rendoc

도구

render_pdf

제공한 HTML에서 PDF 하나를 렌더링합니다.

인자

타입

html

string

필수 — 전체 HTML 문서. CSS는 반드시 <style> 태그 안에 인라인으로 포함되어야 하며, 외부 스타일시트, 폰트, 스크립트는 가져오지 않습니다.

data

object

선택 — 키가 Jinja 변수가 됩니다. 따라서 {"total": "42.00"}이면 HTML에서 {{ total }}을 사용할 수 있습니다.

page_settings

object

선택 — 아래 참조.

저장된 PDF의 경로와 크기를 반환합니다. 512 KB 미만이면 base64 리소스로 인라인 첨부되므로, 첨부 파일을 표시하는 클라이언트에서는 문서 자체가 보입니다.

서버 제한 두 가지가 적용됩니다. 2 MB를 초과하는 HTML은 거부됩니다. 전송한 내용과 data가 치환된 후의 문서 모두를 기준으로 측정하므로, 작성한 마크업이 한도를 넘지 않아도 긴 데이터셋을 확장하는 템플릿은 한도를 넘을 수 있습니다. 또한 무료 플랜에서는 render_pdf와 render_template 모두 렌더링된 모든 PDF에 "Made with SheetRender" 바닥글이 포함되지만, 유료 플랜에는 포함되지 않습니다.

list_templates

인자가 없습니다. 저장된 각 템플릿의 이름, ID, 마지막 업데이트 날짜를 반환합니다. 사용자가 언급한 템플릿 이름을 다른 도구들이 필요로 하는 ID로 바꾸려면 이 도구를 호출하세요.

render_template

계정에 이미 저장된 템플릿에서 PDF 하나를 렌더링합니다.

인자

타입

template_id

string

필수 — list_templates에서 가져옵니다.

data

object

필수 — Jinja 변수로 사용할 한 행의 값.

page_settings

object

선택. 생략하면 템플릿에 저장된 페이지 설정을 유지하고, 전달하면 이번 렌더링에서 해당 설정으로 덮어씁니다.

render_pdf와 동일한 반환 형식입니다.

create_batch_job

프로젝트에 이미 업로드된 데이터셋의 행마다 PDF 하나씩 렌더링하는 백그라운드 작업을 대기열에 추가합니다. 이 서버는 스프레드시트를 업로드할 수 없습니다.

인자

타입

template_id

string

필수 — list_templates에서 가져옵니다.

dataset_id

string

필수 — 템플릿과 같은 프로젝트에 있는 데이터셋.

filename_template

string

선택 — 출력 파일 이름 패턴(예: invoice-{{ invoice_no }}).

group_by

string

선택 — 행을 그룹화할 열. 고유한 값마다 다중 페이지 PDF 하나를 생성합니다.

get_job으로 폴링할 작업 ID를 반환합니다. filename_template과 group_by는 각각 템플릿과 프로젝트에 유지되므로 이후 실행의 기본값도 바꾼다는 점에 유의하세요.

서버가 공개 배치 엔드포인트보다 이전 버전이면, 도구는 불명확한 오류로 실패하는 대신 배치 작업을 사용할 수 없다고 보고합니다.

get_job

job_id를 받습니다. 상태, 완료 및 실패한 행 수를 반환하고, 작업이 succeeded, partial, failed 또는 cancelled 상태에 도달하면 렌더링된 모든 문서의 ID와 파일 이름을 반환합니다. 작업이 queued, retry_queued 또는 running인 동안에는 문서 목록이 비어 있습니다. get_document가 받는 것이 바로 이 문서 ID들입니다.

get_document

document_id를 받아 해당 단일 렌더링 PDF를 다운로드합니다. ID는 완료된 배치의 get_job에서 얻습니다. 다른 방법으로는 얻을 수 없습니다. render_pdf와 동일한 반환 형식, 즉 경로, 크기, 그리고 512 KB 미만의 인라인 blob을 반환합니다.

전체 배치의 경우 웹 앱의 병합된 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 라이선스입니다.

Available Tools

11 tools
create_batch_jobStart a batch PDF jobAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool queues a batch job that renders one PDF per row of a dataset, and returns the job id.

Use it when the user wants many documents at once — "an invoice for every row", "one letter per employee" — rather than calling render_template in a loop.

The full sequence, all of it available here:

  1. list_templates — the user's designs, and the template_id for the rest.

  2. create_dataset (rows you hold as JSON) or upload_dataset (a local .csv/.xlsx) — returns the dataset_id. list_datasets finds one that already exists.

  3. create_batch_job — this tool, returning a job id.

  4. get_job — poll until the status is finished; it then lists the document ids.

  5. get_document — download any of those PDFs.

The dataset must belong to the same template's project, which is where create_dataset or upload_dataset put it. Rendering happens in the background, so the job id comes back long before the PDFs do.

filename_template and group_by name columns by their sanitized key, which create_dataset, upload_dataset and list_datasets all report — it is often not the header text verbatim ("Invoice No" becomes invoice_no). Both are saved onto the template/project, so they change the defaults for later runs, not just this one. Only pass them when the user asked to change how output is named or grouped.

Inputs: dataset_id (required), template_id (required), group_by, filename_template.

create_datasetCreate a dataset from JSON rowsAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool turns rows you already hold — as JSON — into a dataset a batch job can render, and returns the dataset id plus the column keys.

This is the normal way to start a batch: the user asks for "an invoice for each of these clients" or "a letter per employee", you assemble the rows, and this uploads them. Use upload_dataset instead when the data is already a file on disk, and list_datasets when the user is referring to a dataset that already exists.

rows is a flat array of flat objects, one per document: [{"client": "Acme", "total": 42}, {"client": "Globex", "total": 17}]. The header is the union of every row's keys in first-seen order, so rows need not agree on their keys — a missing one is a blank cell, not a shifted row. Values must be strings, numbers, booleans or null; nested objects and arrays are rejected, so flatten or stringify them first. So are NaN, Infinity and whole numbers past 2^53 (send those as strings to keep them exact).

The dataset is attached to the template's project, which means every template in that project can render it and it stays available to later jobs.

Limits: 50,000 rows and 500,000 cells (rows x columns) per call. The row cap applies to JSON rows only — a bigger sheet can still go through upload_dataset as a file, which is bounded by size and cells rather than rows. Creating a dataset is free; only rendering counts against the account's plan.

Returns the dataset id and, for each column, the sanitized key. That key — not the original header — is what the template's placeholders, filename_template and group_by address, so read it off this result rather than guessing from the header text.

Inputs: rows (required), template_id (required), name.

design_templateDesign a templateAInspect

Design a saved template from exactly one of dataset_id, inline rows, or data_base64 with data_filename (CSV or XLSX, up to 10 MB), and an example, brief, or style_id. Use an example alone, or a brief with optional style_id. Examples accept PDF, PNG, JPG, WebP or DOCX as base64 with a filename. Local data_path can supply the data; example_path can supply the example. Waits up to 3 minutes; returns the design status, template id, mapping and preview URL.

Inputs: name, rows, brief, style_id, +8 more.

get_designCheck a template designAInspect

Get a design's status and, when complete, its template id, name, mapping and preview URL.

Inputs: design_id (required).

get_documentDownload a rendered documentAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool downloads one PDF produced by a batch job and returns the path to the saved file.

document_id comes from get_job on a finished batch — that is the only place these ids appear, so call get_job first and take an id from its document list. A document id is not a template id or a job id.

Use it to fetch a specific output the user asked about, or to spot-check a batch. Fetching every document of a large batch one at a time is slow; point the user at the SheetRender web app for the merged PDF or ZIP instead.

Returns the temp-file path and size; PDFs under 512 KB are also attached inline.

Inputs: document_id (required).

get_jobCheck a batch PDF jobAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool reports the progress of a batch job started by create_batch_job.

Returns the status, rows done/failed, and — once the job reaches a finished state ("succeeded", "partial", "failed" or "cancelled") — the id and filename of every rendered document. The document list is empty while the job is still in "queued", "retry_queued" or "running", so poll again after a short wait rather than assuming zero documents.

Pass those document ids to get_document to download the individual PDFs.

Inputs: job_id (required).

list_datasetsList datasets for a templateAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool lists the datasets a batch job can render with a given template — everything in that template's project, newest first — with each one's id, row count and column keys.

Call it when the user refers to data they have already loaded ("use the customer list I uploaded") so you can find its id, or to re-run a batch over an existing dataset instead of creating a duplicate. When there is nothing suitable, create one with create_dataset or upload_dataset.

It is also the quickest way to see a dataset's sanitized column keys before writing a filename_template or choosing group_by.

Inputs: template_id (required).

list_templatesList SheetRender templatesAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool lists the templates saved in the user's account, with the id each one needs.

Call it first whenever the user refers to a template by name ("render the invoice template") so you can map that name to an id — every other tool here takes a template_id, including create_dataset and list_datasets. Takes no arguments.

Inputs: no named parameters.

render_pdfRender HTML to PDFAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool renders a single PDF from HTML you supply and returns the path to the saved file.

Use it for one-off documents — an invoice, a report, a certificate — where you are writing the markup yourself. Use render_template instead when the user already has a saved template.

html must be a complete HTML document (, , ) with all CSS inline in a tag: external stylesheets, fonts and scripts are not fetched. Use @page and mm/cm units for print layout.

data keys become Jinja template variables, so passing {"total": "42.00"} lets the HTML say {{ total }}. Jinja loops and conditionals work too. Omit data if the HTML has no placeholders.

Two server limits to plan for: HTML over 2 MB is rejected, measured both on what you send and on the result after data is substituted in, so keep large tables paginated rather than emitting one enormous document; and accounts on the free plan get a "Made with SheetRender" footer added to every PDF, which is expected, not a bug — mention it if the user seems surprised.

Returns the temp-file path and size; PDFs under 512 KB are also attached inline.

Inputs: html (required), data, page_settings.

render_templateRender a saved template to PDFAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool renders one PDF from a template already saved in the user's account and returns the path to the saved file.

Use it when the user wants a document in their existing design. Get template_id from list_templates. Use render_pdf instead when you are writing the HTML yourself.

data supplies one row's worth of values: each key becomes a Jinja variable in the template's HTML. To render a PDF for every row of a spreadsheet, load the rows with create_dataset or upload_dataset and run create_batch_job rather than calling this repeatedly.

Omit page_settings to keep the template's own saved page setup — passing it overrides that for this render only.

Free-plan accounts get a "Made with SheetRender" footer on the PDF, same as render_pdf — expected, not a bug.

Returns the temp-file path and size; PDFs under 512 KB are also attached inline.

Inputs: data (required), template_id (required), page_settings.

upload_datasetUpload a spreadsheet as a datasetAInspect

SheetRender turns HTML templates plus spreadsheet rows into rendered PDFs. This tool uploads a local .csv or .xlsx file as a dataset a batch job can render, and returns the dataset id plus the column keys.

Use it when the user points at a file they already have — an export, a spreadsheet they attached, something you just wrote to disk. Use create_dataset instead when you are holding the rows as JSON: it avoids writing a file only to read it straight back.

file_path is a path on the machine running this MCP server, which is the user's machine, not SheetRender's. The first row must be the header. Other spreadsheet formats (.xls, .ods, .numbers) and .pdf are not parsed — convert to .csv or .xlsx first.

Limits: 20 MB per file and 500,000 cells; larger data has to be split across several datasets and jobs. Uploading is free; only rendering counts against the account's plan.

Returns the dataset id and each column's sanitized key — the name the template's placeholders, filename_template and group_by use, which is often not the header text verbatim ("Invoice No" becomes invoice_no).

Inputs: file_path (required), template_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools are clearly distinct: render_pdf vs render_template (write HTML yourself vs use saved template), create_dataset vs upload_dataset (JSON rows vs local file), and get_job vs get_document (job status vs PDF download) are all explicitly cross-referenced. The only mild overlap is between get_design/template design tools and the job/polling tools, but descriptions draw the lines well.

    Naming Consistency5/5

    Every tool follows a consistent snake_case verb_noun pattern: get_design, render_pdf, list_templates, design_template, get_job, render_template, create_dataset, upload_dataset, list_datasets, create_batch_job, get_document. No mixed conventions or vague verbs.

    Tool Count5/5

    11 tools is well-scoped for a template/PDF rendering service, covering the full workflow (list, render, design, dataset creation, batch jobs, document retrieval) without redundancy or bloat.

    Completeness4/5

    The surface covers the core lifecycle: template discovery, single and batch rendering, dataset creation/upload/listing, job polling, and document download. Minor gaps exist — no delete/update operations for templates or datasets, and no explicit cancel_job tool despite job statuses mentioning 'cancelled' — but agents can work around these.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Provides PDF.co API functionality through the Model Context Protocol, enabling AI assistants to perform various PDF processing tasks like conversion, editing, searching, and security operations.
      41
      205 PyPI
      9
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Generate professional PDFs from Claude, Cursor, and other AI tools. Create invoices, contracts, reports, and certificates from templates or inline HTML markup.
      7
      59 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to generate PDF documents from templates or raw HTML using natural language, with tools for template creation, PDF generation, and utility operations.
      18 npm
      1
      MIT