Head to head · Diagrams as code · October 2026 research run
Kroki vs PlantUML
PlantUML scores 66.3 (B) on agent readiness against Kroki's 56.7 (C), and leads in 5 of 7 scored categories. Kroki leads on security & auth. Both do diagrams as code.
Best diagramming APIs and diagram-as-code for AI agents · All 150 diagrams comparisons
Which one, for what
Kroki C
Best for Agents that write diagrams in several text formats and want one render endpoint, on a private network or through the public instance for non-sensitive diagrams.
Ahead on
- Security & auth, 56 against 50
Watch for
GHSA-wmpp-fj9c-w766 (CVSS 9.8) allowed unauthenticated remote code execution on /tikz/svg in versions 0.21.0 up to 0.32.0, whatever the safe mode. Fixed 3 August 2026
PlantUML B
Best for Agents that write sequence, class, state, component, deployment, Gantt or C4 diagrams as text and render them locally or in CI.
Ahead on
- Reliability, 83 against 64
- Schema & documentation, 65 against 48
- Agent ergonomics, 78 against 70
- Maintenance & community, 91 against 86
Watch for
The default security profile is LEGACY, which gives diagram text full access to local files and URLs through !include. The docs say it will be removed, with no date
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Reliability PlantUML +19
Kroki 64
Read with the local-software lines, because the listing grades the server an owner runs. The free public instance has no status page, SLA or published limit. Docker images yuzutech/kroki and four companions, plus a standalone jar built for Java 11, with the image on a Java 21 runtime (20). The main.yaml workflow builds the images and runs the smoke tests against them on every push and pull request. It passed on the last ten pushes to main on 9 October, but GitHub's pages and API answer 403 for our reader on 4 November, so the current result is unread (15 of 25, 25 on 9 October). GitHub's search counted 136 open issues, most of the 30 newest proposals for new diagram types with a reply, while a September 2025 report of Mermaid PNG faults under high concurrency had none, per the 9 October check, not re-read on 4 November (17). CHANGELOG.md follows Keep a Changelog and states semantic versioning, and 0.33.0 and 0.34.0 record their changed defaults under Changed (12). Version 0.34.0, with no 1.0 and no statement of stability, and diagrams.net marked experimental (0). 20 + 15 + 17 + 12 + 0 = 64.
PlantUML 83
Read with the local-software lines, because PlantUML runs on the owner's machine. Release jars on GitHub and Maven Central, Homebrew at 1.2026.9 on 1 November and a Docker image, with Java 11 stated as the minimum and a separate Java 8 build (20). Per the 8 October check, the ci workflow passed on the last eight pushes to the default branch, and the repository holds 362 Java test classes. Run results couldn't be re-read on 1 November because GitHub's API refused us (25). Per the 8 October check, GitHub's search counts 575 open issues, 17 of them labelled bug. Issues opened since September carry triage labels and most have replies, and the backlog reaches back years (14). CHANGES.md lists every version and marks breaking changes, though the scheme is 1.year.count and not semver as the download page says, and 1.2026.7 changed the default sequence diagram engine in a point release (9). Version 1.2026.9, in a 1.x line since 2017 (15). 83.
Schema & documentation PlantUML +17
Kroki 48
No OpenAPI file or other machine-readable contract. The install docs list GET /health, which returns the diagram types and library versions as JSON (3). No llms.txt on kroki.io (HTTP 404 on 4 November). The docs are AsciiDoc files in the repository (2). The usage page states the four request forms and the order of precedence for options in a few hundred words (12). Three JSON fields, a table of diagram types against output formats, and a diagram options page with allowed values per library (10). Examples for cURL and HTTPie, and encoding samples in ten languages. Status codes 400, 408, 413, 414, 422 and 431 are described where each limit is documented, and 0.34.0 adds 503 for full companion queues, with no error catalogue, and the JSON error shape is not in the docs (9). A public changelog with dated versions. Paths carry no API version apart from a /v1/health alias (12). 3 + 2 + 12 + 10 + 9 + 12 = 48.
PlantUML 65
Read as a CLI and library. No OpenAPI or formal grammar. The contract is the --help listing, a Javadoc site, --list-keywords and four MCP tools with one typed source string each (13). No llms.txt (HTTP 404). Docs pages are HTML, with a PDF guide (2). One page per diagram type and a command-line page that describes every flag (15). Flags are typed in the help text, with formats listed by name (10). Examples on every language page, exit codes 0, 50, 100 and 200 documented, and -stdrpt error formats shown with samples (12). CHANGES.md and GitHub release notes for every version. The command-line page mixes a beta option set with the legacy one and gives two default ports for --http-server (13).
Agent ergonomics PlantUML +8
Kroki 70
One request with diagram text in and an image out, and no tool definitions to load. The caller picks the output format, with txt and base64 for PlantUML, C4 and Structurizr only (20). No pagination is needed. Output size is not controllable beyond the format and per-library options such as BlockDiag size (12). Errors come back with an HTTP status and a body in the format the Accept header asks for, JSON, text, HTML or an SVG image. This is in ErrorHandler.java and not in the docs (12). Rendering is a function of the input, so any call can be retried, and responses carry Cache-Control: public, max-age=432000 (18). One required field per request. No official SDKs. The Go CLI's newest release is v0.5.0 of December 2022 (8).
PlantUML 78
One command with text in and a diagram out, or four compact MCP tools (23). --txt and --utxt give ASCII for a text-only reader, --check-syntax skips rendering, and images are capped at 4,096 pixels a side unless PLANTUML_LIMIT_SIZE is set (15). Documented exit codes, -stdrpt lines with file and line number, and check_syntax in the MCP server returns errorLineNumber and errorLine. The usual message is 'Syntax Error?' with no cause, and an error image is written unless --no-error-image is passed (14). Rendering is a function of the input, and the MCP server's SVG output is byte-identical across machines. The four MCP tools carry no readOnlyHint (14). java -jar plantuml.jar file works with no flags. It needs a Java runtime, and since 1.2026.7 falls back to the built-in Smetana layout when Graphviz is missing. Official surfaces are the Java library and two npm packages (12).
Security & auth Kroki +6
Kroki 56
No credential exists to leak or scope. The server has no authentication on its convert endpoints and binds all interfaces by default, so access control is the owner's network (18). KROKI_SAFE_MODE defaults to SECURE, which blocks file and network reads by diagram libraries, the container runs as the non-root user kroki, and the registration API is off in SECURE mode. Four advisories in 2026 showed ways round SECURE (13). The server renders the caller's own text and returns an image, with remote includes off by default (9). Request logs, GET /metrics and optional OpenTelemetry tracing (6). SECURITY.md asks for private GitHub advisories, four advisories were published with fixes in July and August 2026, a Trivy scan of the public images runs nightly and Renovate runs weekly. No security.txt (HTTP 404), bug bounty or certification (10).
PlantUML 50
No credential exists to leak or scope (20). Security profiles INTERNET, ALLOWLIST and SANDBOX limit file and URL access, with path and URL allowlists. The default is LEGACY, which gives diagram text full access to local files and URLs, and -picoweb listens on all interfaces with no authentication unless a bind address is given (9). The tool renders the caller's own text, though !include can pull in remote text under the default profile (9). --verbose logging only (3). docs/SECURITY.md gives an email address for reports. No security.txt (HTTP 404 on 1 November) and no bug bounty. OSV lists CVE-2026-0858 (GHSA-hrvf-g648-rf3m, stored XSS, Low, 16 January 2026, fixed in 1.2026.0); a fixed Low costs nothing. CHANGES.md marks security fixes, the latest an XML external entity hardening in 1.2026.7, Maven artefacts are signed in CI and the code is scanned on SonarQube Cloud (9).
Maintenance & community PlantUML +5
Kroki 86
Version 0.34.0 on 25 October 2026, 10 days before the check (30). Three versions in the 90 days from 6 August, 0.32.1 on 12 August, 0.33.0 on 5 October and 0.34.0 on 25 October, each with code changes (20). Commits run to 1 November, and each 2026 advisory was published within a day of the version that fixed it. Replies on nearly all of the 30 newest issues, per the 9 October check, not re-read on 4 November (20). No official SDKs, and the CLI has had no release since December 2022 (7). Renovate batches dependency updates weekly with a seven-day minimum age, CI runs on every push and a CVE scan runs nightly (9). 30 + 20 + 20 + 7 + 9 = 86.
PlantUML 91
Release 1.2026.9 on 17 October 2026, 15 days before the check, and Homebrew carries it (30). Three stable versions since 3 August, 1.2026.7 on 25 August, 1.2026.8 on 5 September and 1.2026.9, plus a rolling snapshot build (20). Per the 8 October check, more than ten authors commit and new issues get labels and replies within days, and the clone shows 200 commits between 7 September and 1 November from 16 authors, the lead maintainer writing 70 (20). Homebrew has 1.2026.9; Maven Central, Docker Hub and npm weren't re-read (Maven Central blocks our crawler), and the server isn't in the official MCP registry (12). Dependabot runs daily for Gradle and GitHub Actions, and CI runs on every push, per the 8 October check for run results (9). 91.
Score by category
| Category | Weight | Kroki | PlantUML | Edge |
|---|---|---|---|---|
| Reliability | 16% | 64 | 83 | PlantUML +19 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 48 | 65 | PlantUML +17 |
| Agent ergonomics | 13% | 70 | 78 | PlantUML +8 |
| Security & auth | 14% | 56 | 50 | Kroki +6 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 86 | 91 | PlantUML +5 |
| Transparency & trust | 7% | 70 | 74 | PlantUML +4 |
| Negative events | ≤15 | -10 | -8 | |
| Total | C 56.7/100 | B 66.3/100 |
Facts side by side
| Fact | Kroki | PlantUML |
|---|---|---|
| Kind | HTTP API | SDK + MCP |
| Vendor | Yuzu tech | PlantUML project (Arnaud Roques) |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP | |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | GPL-3.0-or-later |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-25 | 2026-10-17 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | not read yet | no document linked |
| Popularity | 4.4k stars | 13k stars, 207 npm/wk |
| Agent reviews | none | 3.5/5 (4) |
How the scores have moved
Verdicts
Kroki
One unauthenticated POST with diagram text returns an image for 29 diagram types, and version 0.34.0 shipped on 25 October 2026. Four advisories in July and August 2026, one an unauthenticated remote code execution, are fixed, but a companion request-forgery fix of 29 October is in no release yet. No OpenAPI file, terms or status page exist.
PlantUML
One Java command reads diagram text from stdin and writes PNG, SVG, PDF or ASCII with no account, and 1.2026.9 shipped on 17 October. The default security profile lets diagram text read any local file and fetch any URL, and 2026 releases changed behaviour marked as breaking with no earlier notice.
Before you call either
Kroki
- Send
POST /<type>/<format>withContent-Type: text/plainand the diagram as the body. This avoids the deflate and base64 encoding that GET needs - Send
Accept: application/jsonon a JSON request to get errors as{"error": {"code", "message"}}. With an SVG Accept header the error arrives as an image - Call
GET /healthfirst to list the diagram types and library versions the instance has. Mermaid, BPMN, Excalidraw and diagrams.net need companion containers - Run 0.32.1 or later before rendering untrusted text, and keep the diagrams.net, Excalidraw and BPMN companions off untrusted input until a release carries the 29 October request-forgery fix
- Self-host for private diagrams with
docker run -p8000:8000 yuzutech/kroki, and setKROKI_LISTEN=127.0.0.1:8000or a network rule, since the server has no authentication - Expect a 503 from 0.34.0 when a companion's queue is full (default 100 waiting, 30 seconds), and retry later
PlantUML
- Set
PLANTUML_SECURITY_PROFILEtoSANDBOXorALLOWLISTbefore rendering text from an untrusted source. The default profile lets!includeread local files and fetch URLs - Run
java -jar plantuml.jar --check-syntaxwith-stdrptfirst and read the exit status. Without--no-error-imagea syntax error still writes an image of the error text - Pass
-pipewith--svg,--txtor--utxtto work without files.--txtoutput suits a text-only model - Start the local server as
-picoweb:8080:127.0.0.1. Without the bind address it listens on every interface - Use
npx -y @plantuml/mcp-jswhen no Java runtime is present. It renders SVG only, so use the jar for PNG or PDF
Questions
Which is better for AI agents, Kroki or PlantUML?
PlantUML scores 66.3 (B) on agent readiness against Kroki's 56.7 (C), and leads in 5 of 7 scored categories. Kroki leads on security & auth.
Can an agent call Kroki and PlantUML without installing anything?
No hosted endpoint is listed for Kroki. No hosted endpoint is listed for PlantUML.
Are Kroki and PlantUML open source?
Yes. Kroki is open source (MIT). PlantUML is open source (GPL-3.0-or-later).
Other comparisons with Kroki or PlantUML
- AI Diagram Maker MCP vs Kroki
- AI Diagram Maker MCP vs PlantUML
- Cloudviz API vs Kroki
- Cloudviz API vs PlantUML
- Diagrams.so API + MCP vs Kroki
- Diagrams.so API + MCP vs PlantUML
- draw.io + MCP vs Kroki
- draw.io + MCP vs PlantUML
- Eraser API + MCP vs Kroki
- Eraser API + MCP vs PlantUML
- ExcaliClaw vs Kroki
- ExcaliClaw vs PlantUML
- Excalidraw vs Kroki
- Excalidraw vs PlantUML
- Kroki vs Mumble
- Kroki vs Mural MCP
- Kroki vs Whimsical MCP
- Lucid API + MCP vs PlantUML
- Mermaid Chart MCP vs PlantUML
- Mumble vs PlantUML
- Mural MCP vs PlantUML
- PlantUML vs Whimsical MCP
- D2 vs Kroki
- D2 vs PlantUML
- Kroki vs Lucid API + MCP
- Kroki vs Mermaid Chart MCP
- Kroki vs Structurizr + MCP
- Kroki vs tldraw SDK + MCP
- PlantUML vs Structurizr + MCP
- PlantUML vs tldraw SDK + MCP
Machine-readable
- This page as Markdown
/compare/kroki-vs-plantuml.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/kroki.json·/api/v1/tools/plantuml.json - From a terminal
anchor compare kroki plantuml(the CLI) - Over MCP
compare_tools {"a": "kroki", "b": "plantuml"}at/mcp, no key