kroki-mcp

kroki-mcp

2

Kroki-MCP is a tool that converts textual diagram descriptions into images via a Kroki backend. It is designed to work both as a standalone command-line tool and an MCP server, offering extensibility and multiple output formats.

Kroki-MCP

Kroki-MCP is a command-line tool and MCP integration for converting textual diagrams into images using a Kroki backend. It supports local and remote Kroki servers, with flexible configuration and supports multiple output formats including PNG, SVG, JPEG, and PDF.

Features

  • Modes: SSE for streaming results and STDIO as default for reading and outputting diagram code.
  • Output Formats: Supports PNG, SVG, JPEG, and PDF.
  • Kroki Server: Configurable backend host with default at https://kroki.io.
  • Extensible: Easily add support for more diagram types and formats.
  • MCP Integration: Exposes diagram conversion as an MCP tool.

Configuration

  • Configurable options include server host, port, mode, output format, Kroki server URL, log level, and log format.

Development with Docker

You can use Docker to build and run Kroki-MCP locally for development and testing.