Official MCP for Carbone — Document Generation, Document Conversion, and Universal Templating.
3.1K
Official Carbone MCP server — Turn AI assistants into document automation experts. Generate professional PDFs, invoices, reports, and convert documents using natural language.
Give Claude, ChatGPT, and other AI assistants the power to:
{d.field} tagsconverter: "I" — DOCX → PDF, up to 60x faster; note ICE ignores PDF password/permission options, use L for those)Get your free API key at account.carbone.io.
docker run -d \
-p 3000:3000 \
-e CARBONE_API_KEY=your_api_key_here \
carbone/carbone-mcp
Connect your MCP client to http://your-host:3000 with Authorization: Bearer your_api_key_here.
curl http://localhost:3000/health
{
"mcp": { "version": "1.2.2" },
"carbone": { "version": "5.x.x" }
}
services:
carbone-mcp:
image: carbone/carbone-mcp
ports:
- 3000:3000
environment:
- CARBONE_API_KEY=${CARBONE_API_KEY}
- MCP_PORT=3000
restart: unless-stopped
CARBONE_API_KEY=your_key docker compose up -d
{
"mcp": {
"servers": {
"carbone": {
"type": "streamable-http",
"url": "http://your-host:3000",
"headers": {
"Authorization": "Bearer your_api_key_here"
}
}
}
}
}
Claude Desktop does not support HTTP Bearer token authentication. Use stdio transport instead:
{
"mcpServers": {
"carbone": {
"command": "docker",
"args": ["run", "-i", "--rm",
"-e", "CARBONE_API_KEY=your_api_key_here",
"-e", "MCP_TRANSPORT=stdio",
"carbone/carbone-mcp"]
}
}
}
| Variable | Default | Description |
|---|---|---|
CARBONE_API_KEY | — | Your Carbone API key (get one free →). Required for cloud API. Not required for on-premise deployments. |
CARBONE_BASE_URL | https://api.carbone.io | Override for self-hosted Carbone instances. |
CARBONE_TIMEOUT | 60000 | Request timeout in milliseconds. |
CARBONE_MAX_FILE_BYTES | 104857600 | Maximum size (bytes) for a resolved input file — path, URL, or base64 (100 MB). |
MCP_TRANSPORT | http | Transport mode: http (default) or stdio. |
MCP_PORT | 3000 | HTTP server port. |
MCP_PATH | / | HTTP endpoint path. |
MCP_MAX_BODY_BYTES | 62914560 | Maximum request body size (60 MB). Returns HTTP 413 when exceeded. |
CARBONE_REQUIRE_CLIENT_AUTH_HEADER | false | Require Authorization: Bearer <key> on every request. Left false, a request with no Bearer key falls back to the server-level CARBONE_API_KEY (a shared-key server — anyone reaching the port can spend it). Set true to require per-client keys. No effect when no server key is set. |
CARBONE_ALLOW_PRIVATE_NETWORK | false | Allow user-supplied URLs to resolve to private/internal addresses. Off by default to block SSRF. |
Point to your own Carbone server — no API key required:
docker run -d \
-p 3000:3000 \
-e CARBONE_BASE_URL=https://your-carbone-server.com \
carbone/carbone-mcp
In HTTP mode (the Docker default), a generated PDF / Office / ZIP file is returned as a download attachment (an MCP EmbeddedResource); text and PNG/JPG/GIF/WEBP come back inline. Two options on convert_document / render_document change this:
asAttachment — force a download attachment for any formatreturnLink — return Carbone's public one-time download URL instead of the bytes (hand it to the user; it is consumed by the first download)
outputPath(save to a local file) is stdio-only — in HTTP mode the file would land inside the container, so it is rejected. See the full API reference.
| Tool | Description | Documentation |
|---|---|---|
convert_document | Convert documents between 100+ formats | Convert documents |
render_document | Generate documents from templates + JSON data | Generate documents |
list_templates | Browse your template library | List templates |
upload_template | Store reusable templates | Upload a template |
update_template_metadata | Rename, tag, categorize templates | Patch a template |
delete_template | Remove templates | Delete a template |
download_template | Download original template files | Download a template |
get_api_status | Check API health and version | |
get_capabilities | View supported formats and features |
| Tag | Description |
|---|---|
latest | Latest stable release |
1.2.2 | Specific version |
1.2 | Latest patch of 1.2 |
1 | Latest minor of v1 |
Supported platforms: linux/amd64, linux/arm64
Content type
Image
Digest
sha256:2f797b3db…
Size
67.3 MB
Last updated
28 days ago
docker pull carbone/carbone-mcp