MCP Kroki Server
@tkoba1974
MCP server to convert a diagram to picture using kroki.io
Overview
What is MCP Kroki Server?
MCP Kroki Server is an MCP server that converts diagram markup (e.g., Mermaid, PlantUML) into SVG, PNG, PDF, or JPEG images using the Kroki.io API. It is designed for developers using MCP-compatible clients like Claude Desktop who need to generate and download diagrams programmatically.
How to use MCP Kroki Server?
Install via git clone and npm, or run with npx. Add the server to your MCP client configuration (e.g., Claude Desktop) and then call the generate_diagram_url or download_diagram tools with the diagram type and content. The server sends the diagram to Kroki.io for rendering.
Key features of MCP Kroki Server
- Generate diagram URLs for embedding or sharing
- Download diagrams as SVG, PNG, PDF, or JPEG files
- Support for Mermaid, PlantUML, Graphviz, and more
- Optional scale parameter for adjusting diagram size
Use cases of MCP Kroki Server
- Render Mermaid diagrams directly in Claude Desktop conversations
- Download diagrams for inclusion in documentation or reports
- Integrate diagram generation into automated workflows or CI pipelines
- Use multiple diagram formats from a single server tool
FAQ from MCP Kroki Server
What diagram types are supported?
Mermaid, PlantUML, Graphviz, and many other formats supported by Kroki.io.
What output formats are available?
SVG, PNG, PDF, JPEG. For URL generation, base64 is also an option.
How does the scale parameter work?
The scale parameter (default 1.0, minimum 0.1