Carbone MCP
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_PATH | No | HTTP endpoint path (only used when MCP_TRANSPORT=http) | / |
| MCP_PORT | No | HTTP server port (only used when MCP_TRANSPORT=http) | 3000 |
| MCP_TRANSPORT | No | Transport mode: stdio (default, for AI clients) or http (for self-hosted deployments) | stdio |
| CARBONE_API_KEY | No | Your Carbone API key. Not required when CARBONE_BASE_URL points to your own on-premise server, or when running in HTTP mode. | |
| CARBONE_TIMEOUT | No | Request timeout in milliseconds (max: 60000) | 60000 |
| CARBONE_BASE_URL | No | Override for self-hosted or staging environments. When set to a custom URL, CARBONE_API_KEY is not required. | https://api.carbone.io |
| MCP_MAX_BODY_BYTES | No | Maximum request body size in bytes (10 MB default) | 10485760 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Carbone generates documents (PDF, DOCX, XLSX, PPTX, HTML, images...) from templates and JSON data, and converts files.
convert_document changes a file's format; render_document merges JSON into a template ({d.field} tags).
Unsure which data a template expects? Call inspect_template first.
New to Carbone, or starting a template? find_template_examples has ready-to-render templates with their data.
Carbone tags are their own language (not Mustache or Jinja): never guess the syntax. The Carbone Skill is the reference: the skill://carbone/SKILL.md resource, or https://carbone.io/documentation/developer/ai/skills.md
Files: local paths, HTTPS URLs or base64. PDF and Office results are saved to a temp file.
get_capabilities has the formats, converters, options and examples. Docs: https://carbone.io/llms.txt (replace .html with .md on any carbone.io doc URL).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| resources | {
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/skills": {
"directoryRead": true
}
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_templatesA | List stored templates, with filters and pagination. Each result has an id (Template ID; null for a template uploaded with versioning: false) and a versionId: pass either as templateId to render_document, download_template or delete_template. Each result lists its tags: to find templates by tag, keep the results whose tags include it. |
| convert_documentA | Convert a file to another format, e.g. DOCX, XLSX, PPTX, HTML or Markdown to PDF, or any document to PNG. No data is merged: Carbone tags such as {d.name} stay as written (use render_document to fill them). Example: { "file": "/Users/me/report.docx", "convertTo": "pdf" }. To check a layout, convert to png: the image is returned inline (for HTML or SVG, converter "C" with formatOptions { "Scale": 2 }). Returns text and images (png, jpg, gif, webp) inline; other formats are saved to a temp file whose path is returned. |
| render_documentA | Generate a document (PDF, DOCX, XLSX, PPTX, ...) by merging JSON data into a Carbone template. Pass templateId for a stored template, or template (local path, HTTPS URL or base64) for a one-off render. To change the format of a file without data, use convert_document; unsure which data a template expects, call inspect_template first. Returns text and images (png, jpg, gif, webp) inline; other formats are saved to a temp file whose path is returned. Batches need a webhookUrl the user provides; otherwise render one document per call. |
| inspect_templateA | List the Carbone tags a template uses and return a sample JSON dataset matching its structure. Call it before render_document when you do not know which data a template expects. Pass templateId (a stored template) or template (local path, HTTPS URL or base64). It counts as one render on the account; {t()} tags are not listed. |
| list_categoriesA | List the template categories in use, for the category filter of list_templates or upload_template. |
| list_tagsA | List the tags in use across templates. To find the templates with a tag, call list_templates and keep the results whose tags include it. |
| upload_templateA | Store a reusable template, then render it with render_document and its Template ID. Returns id (Template ID) and versionId. A new version of an existing template (id) is used by renders only once deployed (deployedAt). |
| update_template_metadataA | Change ONE template version: name, comment, category, tags, deployment (deployedAt), scheduled deletion (expireAt), or the Template ID it belongs to (moveToTemplateId). A Template ID patches its deployed version; a Version ID, that exact version. To delete now, use delete_template. |
| delete_templateA | Delete a stored template now: a Template ID removes every version, a Version ID only that one. Confirm with the user first: it cannot be undone. To schedule a deletion instead, use update_template_metadata with expireAt. |
| download_templateA | Download a stored template's original file (DOCX, XLSX, HTML...), or with sample: true the sample dataset stored with it. Text and images come back inline; other files are saved to a temp file whose path is returned. |
| get_api_statusA | Check Carbone API health and version. Returns the current API version and a status message. Useful for verifying connectivity and confirming which Carbone version is active. |
| find_template_examplesA | Find a ready-to-run Carbone example: when the user wants to try Carbone, needs a starting template, or asks how to build a kind of document (invoice, label, report, contract, e-invoice...) or use a feature (loop, chart, barcode...). Each example is a real template (DOCX, XLSX, PPTX, ODT, HTML, SVG, CSV, XML, IDML...) with its JSON data, the document it produces, and a page explaining its tags. Each comes with renderArguments: pass them, unchanged, to render_document to fill it with its data (converting it is optional). inspect_template on its template URL lists the data it expects; upload_template keeps it in the account to adapt. No argument: the newest examples and the use cases. |
| get_capabilitiesA | Returns a summary of all Carbone capabilities: supported formats, features, tool usage examples, and links to full documentation. Call this first if you are unsure what Carbone can do. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| carbone-templates | The 100 most recent stored templates. To filter, search, list versions or page, use the list_templates tool. |
| carbone-categories | The template categories in use, such as "invoices" or "legal": the category filter of list_templates and upload_template. |
| carbone-tags | The tags in use across templates. To find the templates with a tag, keep the list_templates results whose tags include it. |
| carbone-status | The Carbone API health and version. |
| carbone | Carbone templating: merge JSON data into a DOCX (Word), XLSX (Excel), PPTX (PowerPoint), ODT, ODS, HTML, Markdown or PDF template, plus text/XML formats such as CSV, TXT, SVG and IDML. Use this skill to design, validate, fix or explain Carbone syntax: tags, loops, conditions, formatters, aggregators, aliases, and mapping a JSON dataset onto a template. Trigger on: the tag syntax {d.} {c.} {#alias} {$alias} {t()} {o.} or any :formatter chain; a template error such as a missing [i+1]; whether a format supports a feature or what it converts to; filling a PDF form (AcroForm); adding a chart, barcode or dynamic image to a document; writing a number or an amount in words; dynamic Excel formulas or merged cells; a CSV/XML export, ZPL label or InDesign layout; upgrading between Carbone versions; and any request to build an invoice, contract or report from JSON, mail-merge data into a document, fill a template with data, or convert a document (HTML or Markdown to PDF, DOCX to PDF). |
TDQS
Scored across 13 tools
Each tool targets a distinct resource+action, and the descriptions explicitly cross-reference and fence off near-neighbors: render_document vs convert_document (data merge vs format change), find_template_examples vs list_templates (ready-made examples vs stored templates), list_categories/list_tags vs list_templates. An agent can reliably pick the right tool without guessing.
Every tool follows the same snake_case verb_noun convention (list_categories, upload_template, render_document, delete_template, convert_document, etc.), with only the natural compound update_template_metadata as a minor variation. The pattern is fully predictable.
Thirteen tools is well within the sweet spot and each one covers a genuine capability: template CRUD, rendering, conversion, inspection, examples, and API status. No tool looks redundant or trivial, and nothing essential seems crammed in.
The template lifecycle is fully covered: create (upload_template), read (list_templates, download_template, inspect_template), update (update_template_metadata), and delete (delete_template), plus render/convert and helpers. Minor gaps exist, such as no dedicated tool to list or fetch a specific template's version history, though versionIds surface via other tools.