1. Conduid
  2. Developer Tools
  3. Kroki MCP
MCP server · Developer Tools

Kroki MCP

Kroki-MCP is a Go-based Model Context Protocol tool that converts textual diagram definitions (PlantUML, Mermaid, and more) into images via a Kroki backend. Designed for simplicity and flexibility, it supports both local and remote Kroki servers, offers configurable settings, and outputs multiple fo

62Good

Scored 6 hours ago · breakdown

About Kroki MCP

Kroki MCP is an MCP server published by utain in the Developer Tools category: kroki-MCP is a Go-based Model Context Protocol tool that converts textual diagram definitions (PlantUML, Mermaid, and more) into images via a Kroki backend. Designed for simplicity and flexibility, it supports both local and remote Kroki servers, offers configurable settings, and outputs multiple fo. It has been installed 0 times through Conduid.

The repository has 10 stars and 4 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx kroki-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Kroki MCP

Powered by Claude · Grounded in docs

I know everything about Kroki MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v3.0.0v3.0.0 — Inline SVG rendering for Claude Desktop · 14 Aug 2026SVG diagrams now render inline in Claude Desktop. `generate_diagram` returns SVG as normalized, theme-friendly markup text that scales cleanly in chat, instead of an `image/svg+xml` image block that the Anthropic API always rejected.…
v2.0.0v2.0.0 · 5 May 2025Add Added recommended DPI list and tools for generating PNG diagrams with custom DPI. Introduced a new resource for recommended DPI values for diagram generation. Registered the recommended DPI list in the MCP server. Added a new tool to…
v1.0.0v1.0.0 · 2 May 2025Kroki-MCP v1.0.0 🚀 Initial Public Release Kroki-MCP is a command-line tool and MCP integration for converting textual diagrams (PlantUML, Mermaid, etc.) into images using a Kroki backend. This release marks the first stable version.…

README

Kroki-MCP

CI Go Version

Kroki-MCP is a command-line tool and MCP integration for converting textual diagrams (e.g., PlantUML, Mermaid) into images using a Kroki backend. It supports both local and remote Kroki servers, with flexible configuration and multiple output formats.

Features

  • Modes:
    • SSE: Streams results using Server-Sent Events.
    • STDIO (default): Reads diagram code from stdin and outputs to stdout.
  • Output Formats: Supports png (default), svg, jpeg, and pdf.
  • Kroki Server: Configurable backend host (default: https://kroki.io).
  • Extensible: Easily add support for more diagram types and output formats.
  • MCP Integration: Exposes diagram conversion as an MCP tool using github.com/mark3labs/mcp-go.

Usage

# Default (SSE mode, PNG, default Kroki host)
kroki-mcp

# Specify output format
kroki-mcp --format svg

# Use STDIO mode
kroki-mcp --mode stdio --format pdf

# Specify a custom Kroki server
kroki-mcp --kroki-host http://localhost:8000

Configuration

Option Description Type Default
--host, -h Server host address string localhost
--port, -p Server port int 5090
--mode, -m Operation mode (sse or stdio) string stdio
--format, -f Output format (png, svg, jpeg, pdf) string png
--kroki-host Kroki server URL string https://kroki.io
--log-level Log level (debug, info, warn, error) string info
--log-format Log format (text or json) string text

Project Structure

kroki-mcp/
├── cmd/
│   └── kroki-mcp/           # Main CLI and MCP server entry point
├── internal/
│   ├── kroki/               # Kroki client logic (HTTP, formats)
│   ├── config/              # Configuration management (flags, env, files)
│   └── mcp/                 # MCP tool/server integration
├── test/                    # Unit and integration tests
├── Dockerfile               # Docker build file
├── docker-compose.yml       # Docker Compose for dev environment
├── go.mod                   # Go module definition
├── README.md                # Project documentation
└── .gitignore               # Git ignore file

Implementation Steps

  1. Scaffold Go project.
  2. Implement CLI with default SSE mode, format flags.
  3. Implement Kroki client supporting all formats.
  4. Implement SSE and STDIO modes.
  5. Integrate with mcp-go for MCP tool support.
  6. Add error handling and tests.
  7. Document usage.

Example: Running as an MCP Server

To run Kroki-MCP as an MCP server from source:

go run github.com/utain/kroki-mcp/cmd/kroki-mcp@latest --mode sse --format png --kroki-host https://kroki.io

You can configure the MCP server in your MCP configuration file as follows:

{
  "mcpServers": {
    "kroki-mcp": {
      "command": "go",
      "args": [
        "run",
        "github.com/utain/kroki-mcp/cmd/kroki-mcp@latest",
        "-m", "stdio",
        "-f", "png",
        "--kroki-host", "https://kroki.io"
      ]
    }
  }
}

Development with Docker

You can use Docker and docker-compose for local development and testing.

Build and Run with Docker

docker build -t kroki-mcp .
docker run --rm -it kroki-mcp --help

Using docker-compose (with local Kroki server)

docker-compose up --build
  • This will start both a Kroki server and the kroki-mcp service.
  • kroki-mcp will connect to the Kroki server at http://kroki:8000.

Contributing

Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

Changelog

See CHANGELOG.md for release history.

Related Projects

License

This project is licensed under the MIT License.

README mirrored from the source repository 6 hours ago. The original is authoritative.

Questions

About Kroki MCP

How do I install Kroki MCP?

Run npx kroki-mcp, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Kroki MCP safe to use with an AI agent?

Its trust score is 62 out of 100 (good). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Kroki MCP still maintained?

Yes — the latest release is v3.0.0 (14 Aug 2026), and the last commit was a year ago. The repository has 10 stars and 0 open issues.