How to Use the Gotenberg MCP in Claude Code
Pipe terminal outputs and files directly into Gotenberg through Claude Code for instant headless PDF generation.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Gotenberg MCP to Claude Code
Create your Vinkius account to connect Gotenberg to Claude Code — we handle the hosting, security, and runtime updates so you don't have to. No server setup required.
Key Capabilities
Headless PDF generation via Claude Code
Claude Code executes `convert_html_to_pdf` directly from your terminal session to compile reports. You pipe raw markup from a database query into the CLI, and the tool outputs a base64 string. For automated documentation, the tool converts text files using `convert_markdown_to_pdf` during Claude Code script runs. This allows terminal users to generate manual pages without a heavy GUI.
Command-line document merging and splitting
Gotenberg combines separate PDF assets using `merge_pdfs` inside your Claude Code shell pipeline. Claude Code passes the file paths as arguments and saves the consolidated file to your working directory. If you need to extract specific pages, Claude Code runs `split_pdf` to slice the document. The output returns as a ZIP file that you can extract using standard terminal utilities.
Automate metadata and bookmark updates
This MCP Server uses `write_pdf_bookmarks` to inject navigation structures into documents generated via Claude Code. Claude Code reads the current outline via `read_pdf_bookmarks` before writing updates. You can also manage compliance fields by executing `write_pdf_metadata` in your Claude Code release scripts. Every generated document will carry correct version numbers and author tags as a result.
Set up Gotenberg MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seegotenberg-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Gotenberg transactions." It will automatically discover and invoke the available Gotenberg tools.
claude mcp add --transport http gotenberg-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Gotenberg MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Gotenberg MCP today
We host it, we monitor it, we maintain it. You just paste one token.