Carbone MCP
OfficialThis MCP server lets you generate documents from templates and JSON, convert files, and manage a Carbone template library through MCP tools.
Generate documents: Fill stored or one-off templates with JSON data and output PDF, Word, Excel, PowerPoint, HTML, images, CSV, and more; supports translations, time zones, currency conversion, PDF passwords/watermarks/PDF-A/page ranges, webhooks, and batches.
Convert files: Convert among many document/image formats without merging data; supports layout previews as PNG and PDF/image format options.
Inspect templates: List a template’s Carbone tags and return sample JSON data to guide rendering.
Manage templates: List/search/filter templates, upload new templates or versions, update metadata/deployment/scheduled deletion, delete immediately, and download originals or stored samples.
Organize and discover: List categories and tags, find ready-to-run examples, get capability summaries, and check API health/version.
File handling: Accept local paths, HTTPS URLs, or base64; return inline text/images, saved files, base64 attachments, or one-time download links.
Supports converting Markdown documents into professional formats like PDF using the Carbone conversion engine.
Utilizes OnlyOffice as a specialized conversion engine to ensure high-fidelity transformations for complex document formats.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Carbone MCP Server
Automate production-ready PDF, Word, Excel and PowerPoint documents from templates and JSON data, and convert files with 100+ conversions, from Claude, ChatGPT, Cursor, VS Code or any MCP client. The official server for the Carbone document generation API.
Convert files: DOCX, XLSX, PPTX, HTML, SVG, Markdown or PDF to PDF, images, CSV, ODT and the other output formats.
Fill templates with JSON: design them in Word, Excel, PowerPoint, LibreOffice, HTML or Markdown with
{d.field}tags, or fill an existing PDF form.Finish your PDFs: passwords, watermarks, PDF/A, page ranges, and a choice of converter (LibreOffice, OnlyOffice, Chromium or Carbone ICE).
Batch and localize: up to 100 documents per request, collected by the assistant on the hosted server or delivered to your own webhook; translations, time zones, and currency conversion at the rates you give.
Keep a template library: upload, version, categorize, deploy and download templates, and ask which data a template expects.
What you can ask
Carbone turns data into finished documents, including data another MCP server fetches (Salesforce, HubSpot, Stripe, Notion, Google Sheets…) in the same conversation:
"Get the Acme Corp opportunity and its products from Salesforce, fill my 'Sales quote' template, and give me a PDF with a DRAFT watermark."
"Which data does my 'Service agreement' template expect? Map its fields to the HubSpot deal 'Acme renewal' and show me the JSON before you render it."
"Create one certificate per attendee in the 'Workshop' Google Sheet with my 'Certificate' template, as a ZIP of PDFs named certificate-{d.lastName}."
"Generate this invoice in French, German and Spanish, with prices converted from EUR to USD at 1.08 and dates in New York time."
"Build a monthly report from last month's paid Stripe invoices with the 'Statement' template. Render it as a PNG first so you can check the layout, then give me the PDF."
"Turn this Word quote into a Carbone template: add tags for the customer, a loop on the line items and the total, then upload it as 'Quote v2' in the 'sales' category."
"Make a PDF/A copy of pages 1 to 5 of this contract for archiving, and a password-protected PDF with a CONFIDENTIAL watermark to send to the client."
"Deploy the newest version of my 'Invoice' template, and schedule the old one for deletion in 30 days."
Related MCP server: doc-ops-mcp
Account and pricing
You sign in with a Carbone account, free to create. Without a plan, you get unlimited watermarked PDFs. The Free plan adds every output format without a watermark, with 100 documents per month (pricing).
Quick start
Setup | Runs | Clients | Files |
Hosted server (recommended) |
| Claude, ChatGPT, Claude Code, VS Code, Cursor, …: sign in with your Carbone account | URLs, base64, ChatGPT attachments, upload URLs |
| Claude Desktop, Claude Code, VS Code, Cursor, and any client that starts local servers | Also reads local paths and saves documents to disk | |
Your own server | Clients that can send an | URLs and base64 |
Hosted server (mcp.carbone.io)
The Carbone agent plugin installs this server and the Carbone Skill together, in Claude, ChatGPT, Codex, Cursor, GitHub Copilot, Gemini CLI and more. To add the server alone:
Claude (claude.ai and Claude Desktop)
Open Carbone in the Claude directory and click Connect.
Sign in with your Carbone account and approve.
If your organization does not offer directory connectors, add a custom connector with the URL https://mcp.carbone.io instead, leaving the OAuth client ID and secret empty. In an organization, each member connects with their own Carbone account, and their documents count against it.
ChatGPT
Open the Carbone plugin in ChatGPT, click Add, then sign in with your Carbone account. The plugin also includes the Carbone Skill.
Without the plugin: open Plugins, click Add, then Add custom MCP server. Enter the name Carbone and the URL https://mcp.carbone.io, choose OAuth, tick I understand and want to continue, click Create as a plugin, and sign in.
Claude Code, VS Code, Cursor
Claude Code: add the server, then run /mcp, select carbone and choose Authenticate.
claude mcp add --transport http carbone https://mcp.carbone.ioVS Code (.vscode/mcp.json), which asks you to sign in when it starts the server:
{
"servers": {
"carbone": { "type": "http", "url": "https://mcp.carbone.io" }
}
}Cursor (~/.cursor/mcp.json or .cursor/mcp.json), then sign in from Cursor's MCP settings:
{
"mcpServers": {
"carbone": { "url": "https://mcp.carbone.io" }
}
}Local package (stdio)
Use it to read and save files on your computer. It needs Node.js 20.3 or later (node --version) and a Carbone API key from account.carbone.io: the test key makes unlimited watermarked PDFs (templates stored with it are kept 30 days), the production key every format (details).
Most clients use this config:
{
"mcpServers": {
"carbone": {
"command": "npx",
"args": ["-y", "carbone-mcp"],
"env": {
"CARBONE_API_KEY": "your_api_key_here"
}
}
}
}Client | Where to put it |
Claude Desktop | Settings → Developer → Edit Config opens |
Cursor |
|
Claude Code:
claude mcp add --env CARBONE_API_KEY=your_api_key_here --transport stdio carbone -- npx -y carbone-mcpVS Code: .vscode/mcp.json uses servers, not mcpServers. With an input variable, VS Code asks for the key once and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "carbone-api-key", "description": "Carbone API key", "password": true }
],
"servers": {
"carbone": {
"type": "stdio",
"command": "npx",
"args": ["-y", "carbone-mcp"],
"env": { "CARBONE_API_KEY": "${input:carbone-api-key}" }
}
}
}Then try: "What can Carbone do?"
Client docs: Claude Desktop · Claude Code · VS Code · Cursor
Files in and out
Hosted server: give files as HTTPS URLs or base64, or attach them in ChatGPT. A large template goes through an upload URL, for assistants that can run commands, such as Claude Code.
Local package: absolute paths too (
/Users/me/invoice.docx,~/invoice.docx). A bare name such asinvoice.docxis read as base64 and fails.Results: text and images come back in the conversation. PDF and Office files come back as a one-time download link (hosted, valid 1 hour) or a saved file (local).
Details: file inputs and output delivery.
Tools
Tool | What it does |
| Converts a file to another format; Carbone tags stay as written |
| Fills a template with JSON data, and can convert the result (to PDF, for example) |
| Returns the download link of a render started with |
| Lists a template's tags and returns a matching sample dataset. Runs one render on your account (counts as one document generation) |
| Lists stored templates, filtered by category, name or ID |
| Lists the template categories in your account |
| Lists the tags used across your templates |
| Stores a reusable template, with versions, category and tags; can return an upload URL for a large file |
| Renames, categorizes, tags, deploys or schedules the deletion of a template version |
| Deletes a template or one of its versions, immediately |
| Downloads a template's original file, or the sample data stored with it |
| Checks the Carbone API's health and version |
| Finds a ready-to-run example (template, data and result) to try Carbone or start a template, with the arguments to generate it |
| Summarizes the formats, features and usage examples |
Every parameter, with examples: docs/API.md.
Writing templates
Design a template in Word, Excel, PowerPoint, LibreOffice, HTML or Markdown, and put tags where the data goes:
Dear {d.customer.name},
Your invoice total is {d.total:formatC()}.
Items:
{d.items[i].description} {d.items[i].quantity}x {d.items[i].price:formatC()}
{d.items[i+1]}{d.items[i]} … {d.items[i+1]} repeats a line for each item. Start with the basics, or give your AI assistant the Carbone Skill, a template syntax reference for AI tools (download .skill · GitHub).
This server also serves the Carbone Skill itself, as skill://carbone/SKILL.md: MCP clients that support skills get it with the server, in the version matching its tools (Carbone Skill).
Troubleshooting
Symptom | Cause and fix |
Carbone is connected, but a Claude chat does not use it | Turn it on for the chat: the + button, then Connectors, then Carbone. |
mcp.carbone.io asks you to sign in again, or sign-in fails | Reconnect: in Claude, Disconnect then Connect the connector; in Claude Code, |
Watermark on every PDF, or only PDF works | Your account has no plan (test key): it produces watermarked PDFs only. On mcp.carbone.io, start a plan at account.carbone.io (the Free plan is enough): the server switches to your production key by itself. Locally, use the production key. |
Tags such as |
|
A file given by name ( | A bare name is read as base64. Pass an absolute path (local package), a URL, or base64. |
| A file passed as base64 is too large (60 MB by default). Pass it by URL or local path; for a template, ask for an upload URL. |
Rendering by Template ID still uses the old version after an upload | Renders by Template ID use the deployed version (most recent |
Password, watermark or PDF/A missing from a PDF | PDF/A, page ranges and accessibility need the default converter |
| The Carbone API answered |
Local package: | Set |
Claude Desktop shows no Carbone tools, or the local server disconnects | Read |
You want to test the server without an AI client | Run the MCP Inspector (Node.js 22.19+): |
Security
Tool approval. Keep your client's approval prompts on for actions that change your account:
delete_templatedeletes immediately, andupdate_template_metadatacan schedule a deletion.Prompt injection. A document or template can contain instructions that trick the AI into unintended actions, such as sending data elsewhere or deleting templates. Review what your client is about to do before you confirm a tool call.
Disconnecting. Disconnect the connector (in Claude Code,
/mcp→ Clear authentication) to stop the assistant from using your account.URL inputs and local files. URLs that resolve to a private or internal address (
localhost, RFC 1918, cloud metadata) are refused unlessCARBONE_ALLOW_PRIVATE_NETWORK=true(details). Local paths are read by the local package only, where the server runs as you.Shared server key (self-hosted HTTP). With
CARBONE_API_KEYset on an HTTP server andCARBONE_REQUIRE_CLIENT_AUTH_HEADER=false(the default), every request without a Bearer key spends that key: anyone who can reach the port uses that Carbone account. The server prints a warning at startup. Never publish such a port on a network you don't fully trust, or setCARBONE_REQUIRE_CLIENT_AUTH_HEADER=trueso each client must bring its own key.Browser origins (self-hosted HTTP). A request whose
Originheader is present but not allowed gets403, so a malicious web page cannot reach a locally running server (DNS rebinding) and spend its key. List the browser-based clients you trust inMCP_ALLOWED_ORIGINS.API keys. Keep them out of version control, pass them through your client's secret input or environment, and rotate them at account.carbone.io.
Your data. Carbone stores the templates and samples you upload, and keeps a document delivered as a download link or to a webhook until it is downloaded, for 1 hour at most. For an async render, the server keeps an encrypted reference to the document for 1 hour. See the privacy policy, or run Carbone on-premise for full control.
Self-hosting
Docker
The image serves Streamable HTTP on port 3000. This quick start sets no server key: each client sends its own key in Authorization: Bearer <key> (signing in with a Carbone account is for mcp.carbone.io only), and the port is reachable from your machine only.
docker run -d --name carbone-mcp -p 127.0.0.1:3000:3000 carbone/carbone-mcp
curl http://localhost:3000/healthConnect your client with your key in the Authorization header. Claude Code:
claude mcp add --transport http carbone http://localhost:3000 --header "Authorization: Bearer your_api_key_here"VS Code (.vscode/mcp.json, which asks for the key once and stores it):
{
"inputs": [
{ "type": "promptString", "id": "carbone-api-key", "description": "Carbone API key", "password": true }
],
"servers": {
"carbone": {
"type": "http",
"url": "http://localhost:3000",
"headers": { "Authorization": "Bearer ${input:carbone-api-key}" }
}
}
}Cursor (~/.cursor/mcp.json), reading the key from your environment:
{
"mcpServers": {
"carbone": {
"url": "http://localhost:3000",
"headers": { "Authorization": "Bearer ${env:CARBONE_API_KEY}" }
}
}
}To serve other machines, publish the port behind a TLS reverse proxy, keep the server without CARBONE_API_KEY (or set CARBONE_REQUIRE_CLIENT_AUTH_HEADER=true), and list the hostnames of browser-based clients in MCP_ALLOWED_ORIGINS.
Shared-key variant, for one user on one machine. A server-level key lets clients connect without sending one. Read the shared-key warning first.
docker run -d --name carbone-mcp -p 127.0.0.1:3000:3000 -e CARBONE_API_KEY=your_api_key_here carbone/carbone-mcpDocker Compose: compose.yml builds the image from this repository, binds 127.0.0.1 only, sets no server key, and passes through every variable of .env.example. Start it with docker compose up -d. Compose also reads CARBONE_API_KEY from your shell or a .env file: if it is set there, you get the shared-key variant.
To run the image as a stdio server for Claude Desktop, see the Docker Hub page.
On-premise Carbone
If you run Carbone on-premise, point the server at your instance with CARBONE_BASE_URL; no API key is needed. For example CARBONE_BASE_URL=https://your-carbone-server.com npx carbone-mcp, or add -e CARBONE_BASE_URL=https://your-carbone-server.com to docker run.
Configuration
Variable | Default | Purpose |
| none | Your Carbone API key: required in stdio for Carbone Cloud, optional over HTTP (Security) |
|
| Carbone API URL; set it to an on-premise instance (no key needed) |
|
| Carbone API request timeout in ms; Carbone Cloud's own limit is 60 s |
|
| Largest input file read from a path, URL or base64 |
|
|
|
|
| HTTP port |
|
| HTTP endpoint path; cannot be |
|
| Largest MCP message: an HTTP body ( |
| none (localhost is always allowed) | HTTP: browser |
|
| HTTP: |
|
|
|
| all tools | Only the tools you list are available (e.g. a read-only agent); new tools stay off until listed (details) |
| none | HTTP: turns on upload URLs for large templates (details); generate with |
| none | HTTP, with |
| none | HTTP, with |
| none | Instead of |
Full descriptions: Configuration in docs/API.md.
Self-hosting troubleshooting
Symptom | Cause and fix |
Tool error | Send |
HTTP | A browser-based client served from a host other than |
HTTP | Expected: the endpoint only answers MCP |
HTTP | One MCP message is over |
| The S3 access key needs to read, write and list the bucket, or |
Upgrading from 1.x
HTTP deployments should upgrade now (security fixes): read the upgrade notes.
Contributing
Bug reports, fixes and documentation improvements are welcome. CONTRIBUTING.md covers the development setup, tests, debugging and the pull request process.
Support
Documentation: MCP server · HTTP API · Template design · OpenAPI specification
Bugs and feature requests: GitHub Issues
Questions: live chat on carbone.io (bottom-right widget) · Enterprise: contact@carbone.io
License
Apache 2.0, see LICENSE.
Available Tools
13 toolsconvert_documentConvert DocumentAInspect
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.
Inputs: file (required), convertTo (required), failOn, converter, +6 more.
delete_templateDelete TemplateADestructiveIdempotentInspect
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.
Inputs: templateId (required).
download_templateDownload TemplateAInspect
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.
Inputs: templateId (required), sample, outputPath, asAttachment.
find_template_examplesTemplate ExamplesARead-onlyIdempotentInspect
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.
Inputs: id, kind, level, limit, +4 more. Returns: total, examples
get_api_statusAPI StatusARead-onlyIdempotentInspect
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.
Inputs: no named parameters. Returns: message, version
get_capabilitiesCapabilitiesARead-onlyIdempotentInspect
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.
Inputs: no named parameters.
inspect_templateInspect TemplateARead-onlyIdempotentInspect
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.
Inputs: template, templateId. Returns: tags, error, sample, signatures
list_categoriesList CategoriesARead-onlyIdempotentInspect
List the template categories in use, for the category filter of list_templates or upload_template.
Inputs: no named parameters. Returns: categories
list_tagsList TagsARead-onlyIdempotentInspect
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.
Inputs: no named parameters. Returns: tags
list_templatesList TemplatesARead-onlyIdempotentInspect
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.
Inputs: id, limit, cursor, origin, +4 more. Returns: hasMore, templates, nextCursor
render_documentGenerate DocumentAInspect
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.
Inputs: data, enum, lang, failOn, +24 more.
update_template_metadataUpdate Template MetadataADestructiveIdempotentInspect
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.
Inputs: templateId (required), name, tags, comment, +4 more. Returns: id, name, tags, comment, +4 more
upload_templateUpload TemplateAInspect
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).
Inputs: template (required), id, name, tags, +6 more. Returns: id, name, size, type, +8 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
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.
Maintenance
Related MCP Connectors
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
MCP server for Api2Pdf — generate PDFs & images from HTML, URLs or office files; merge, barcodes.
Design, publish and render PDF templates with Typst. Full template lifecycle over MCP.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceOrshot's MCP Server lets you dynamically generate images from your templates from your prompts in Claude, Cursor or any app that supports MCP Servers. You can use the pre-designed templates and also AI Generate or design your own templates in Orshot, and then generate images from those templates73-
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.1394 npm140MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables interaction with the PDF Generator API for automated document generation and management. It supports both stdio and HTTP transports, allowing AI models to create and handle PDFs using OpenAPI v4 specifications.1MIT
- AlicenseAqualityDmaintenanceMCP server for Word document (.docx) creation and manipulation — the production-grade document automation tool for AI agents.956 npmMIT