MCP Kroki Server logo

MCP Kroki Server

by tkoba1974

An MCP server that converts Mermaid diagrams to SVG images using Kroki.io. It provides tools to generate URLs and download diagrams in various formats.

View on GitHub

Last updated: N/A

What is MCP Kroki Server?

MCP Kroki Server is an MCP (Model Context Protocol) server that leverages Kroki.io to convert diagrams, particularly Mermaid, into various image formats like SVG, PNG, PDF, and JPEG.

How to use MCP Kroki Server?

The server provides tools to generate diagram URLs using Kroki.io and download diagrams locally. You need to specify the diagram type, content, and desired output format. It can be integrated with Claude Desktop using the provided configuration snippets.

Key features of MCP Kroki Server

  • Generate URLs for diagrams using Kroki.io

  • Download diagrams as SVG, PNG, PDF, or JPEG files

  • Support for multiple diagram formats (Mermaid, PlantUML, Graphviz, etc.)

  • Integration with Claude Desktop

Use cases of MCP Kroki Server

  • Generating diagrams dynamically in applications

  • Creating visual representations of data

  • Integrating diagrams into documentation

  • Converting diagrams to different formats for compatibility

FAQ from MCP Kroki Server

What diagram types are supported?

The server supports multiple diagram formats including Mermaid, PlantUML, Graphviz, and many more supported by Kroki.io.

What output formats are available?

You can download diagrams as SVG, PNG, PDF, or JPEG files.

How do I install the server?

You can install the server locally by cloning the repository, installing dependencies, and building the project using npm.

How do I integrate this with Claude Desktop?

You can add the server to your Claude Desktop configuration file (claude_desktop_config.json) using the provided configuration snippets for local install or npx.

Is there a scaling option?

Yes, the download_diagram tool accepts a scale parameter which affects the width/height attributes of SVG output. Minimum value is 0.1.