Head to head · Diagrams as code · October 2026 research run
Kroki vs Structurizr + MCP
Structurizr + MCP scores 64.1 (B) on agent readiness against Kroki's 56.7 (C), and leads in 4 of 7 scored categories. Kroki leads on agent ergonomics, security & auth and payments & pricing. 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
- Agent ergonomics, 70 against 55
- Security & auth, 56 against 43
- Payments & pricing, 90 against 75
Also in its favour
- No key needed to call it
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
Best for Teams that model architecture in C4 and want an agent to write and check the model as text.
Ahead on
- Reliability, 70 against 64
- Schema & documentation, 61 against 48
- Transparency & trust, 76 against 70
Also in its favour
- A hosted endpoint, with nothing to install
- No incidents deducted, where Kroki loses 10 points for them
Watch for
The hosted cloud API is gone. Storage and rendering need your own server
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.
Agent ergonomics Kroki +15
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).
Structurizr + MCP 55
Six compact tools on the hosted MCP, and the self-hosted image enables tool groups by flag (-dsl, -server-read, -server-update and so on) (25). The workspace API returns or replaces whole workspaces, and export works one view key at a time (8). Errors come back as exception text, and API errors aren't documented (8). PUT replaces a workspace and the update tool merges layout from the server copy, with lock and unlock endpoints, but the hosted tools carry Spring AI's default annotations, which mark them destructive per the 30 September check (6). Official Java client library, no second language (8).
Payments & pricing Kroki +15
Kroki 90
Read with the self-hosted rule. Free software with nothing to buy and no payment protocol (0). No price to publish (20). No card or trial needed (20). An agent can pull the Docker image, or call the public instance, with no signup (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.
Structurizr + MCP 75
Apache 2.0 code with a paid option, the licence for prebuilt binaries. No payment protocol (0). The licence table is public, £300 to £2,400 a month by unique users billed annually, bought by email and paid by bank transfer or PayPal invoice (10). Building from source is free, and a 14-day trial licence comes from trial.structurizr.com with no payment (20). The hosted MCP needs no key and the local tools need no signup (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 50 is 75.
Schema & documentation Structurizr + MCP +13
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.
Structurizr + MCP 61
OpenAPI 3.0 definition for the workspace JSON and API, and the MCP tools get typed schemas from their Java signatures (25). No llms.txt found (0). Tool descriptions are one line, such as "Validates a Structurizr DSL workspace", with the parameter described as "DSL" (6). Required flags and a numeric workspace ID, no enums (8). curl examples for each API case, errors undocumented, and tools return the raw exception message (7). Dated changelogs for the application and the library (15).
Security & auth Kroki +13
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).
Structurizr + MCP 43
A per-workspace API key in the X-Authorization header, an admin key for listing, and a regenerate endpoint added in May 2026. The MCP server tools take the API key as a tool argument, so the secret passes through the model's context, and server authentication can be switched off entirely (20). Tool groups are enabled one by one, so an agent can be given read without update or delete. There is no read-only key (12). The hosted tools return parse results of the agent's own DSL. Workspaces fetched from a server can hold text written by others (9). No audit log found (0). No security.txt, disclosure policy or bug bounty found, support is the GitHub issue tracker (2).
Reliability Structurizr + MCP +6
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.
Structurizr + MCP 70
The hosted cloud API shut down on 30 September 2026, so what an agent calls now is a server you run plus a small hosted MCP, and we used the self-hosted checklist. Prebuilt binaries and Docker images with Java 21 stated (20). A Maven workflow builds and runs the unit tests on every push to main and on pull requests, integration tests excluded, pass state unread because GitHub's pages refuse our reader (15, the value this run gives public CI that runs the tests with an unread result). The changelogs fix reported issues #131, #132, #135 and #137 within weeks of filing, open issues not read (15). Date-stamped application releases and a semver library (v6.2.4), each with a changelog (12). The server is a stable product, but the released MCP module's README still calls it "an experimental MCP server" and mcp.structurizr.com has no status page or published limits (8). 20+15+15+12+8 = 70.
Transparency & trust Structurizr + MCP +6
Kroki 70
MIT licence, with every component in one public repository (30). No terms for the software or the public instance. Since 25 October 2026 kroki.io has a privacy policy for the website and the public instance. It says diagram sources are processed in memory and not stored, POST bodies aren't logged, access logs (with GET URLs and so the encoded source) are kept under 30 days, and it names Cloudflare, Exoscale, Netlify and Carbon Ads, with a contact and the CNIL. It agrees with the docs' statement that the server is stateless. No DPA (22 of 30, 15 on 9 October). KROKI_PORT is marked deprecated with the reason and a replacement, and no removal date. Removed behaviour is recorded in the changelog (8). OpenTelemetry tracing is configured by environment variable. The 0.32.0 changelog discloses that the companions' headless Chromium contacted Google hosts at launch and that the calls are now blocked (14). 30 + 22 + 8 + 14 = 74.
Structurizr + MCP 76
Apache 2.0, and the prebuilt binaries add a EULA (28). The privacy policy, updated 1 February 2026, covers only licence purchase data, keeps it for ten years after the licence ends, and says Structurizr has no access to data in your installation. The hosted MCP isn't covered (20). The end-of-life page and cloud migration guide gave dated notice, sign-ups closed 31 December 2025 and shutdown on 30 September 2026; the page was taken down on 25 October after the shutdown and stays readable in the docs repository's history (20). No telemetry mentioned in the docs or EULA, and a search of the source found no analytics or usage calls (12).
Score by category
| Category | Weight | Kroki | Structurizr + MCP | Edge |
|---|---|---|---|---|
| Reliability | 16% | 64 | 70 | Structurizr + MCP +6 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 48 | 61 | Structurizr + MCP +13 |
| Agent ergonomics | 13% | 70 | 55 | Kroki +15 |
| Security & auth | 14% | 56 | 43 | Kroki +13 |
| Payments & pricing | 10% | 90 | 75 | Kroki +15 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 86 | 88 | Structurizr + MCP +2 |
| Transparency & trust | 7% | 70 | 76 | Structurizr + MCP +6 |
| Negative events | ≤15 | -10 | 0 | |
| Total | C 56.7/100 | B 64.1/100 |
Facts side by side
| Fact | Kroki | Structurizr + MCP |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Yuzu tech | Structurizr |
| Hosted endpoint | no (local only) | https://mcp.structurizr.com/mcp |
| Transports | HTTP | HTTP, Streamable HTTP |
| Auth | None | OAuth or key |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | MIT | Apache-2.0 |
| Tools exposed | none | 6 |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| Last release | 2026-10-25 | 2026-10-26 |
| Terms last updated | no document linked | not read yet |
| Popularity | 4.4k stars | 419 stars |
| Agent reviews | none | 3/5 (2) |
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.
Structurizr + MCP
One text model generates several C4 architecture views, and the project shipped four releases between 17 September and 26 October 2026. The hosted cloud API has closed, so storage and rendering need a customer-managed server, and the free hosted MCP covers only validation, parsing and export.
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
Structurizr + MCP
- Call
validateand theninspecton the DSL before pushing a workspace - Use the Mermaid export when the diagram has to render in Markdown without a Structurizr server
- Export needs a view key. Parse the DSL first to list the views
- Run the
structurizr/mcpimage with only the flags you need, such as-dsl -server-read, to keep write and delete tools out of reach - The workspace API returns JSON, never images. PNG and SVG come from the separate export command
Questions
Which is better for AI agents, Kroki or Structurizr + MCP?
Structurizr + MCP scores 64.1 (B) on agent readiness against Kroki's 56.7 (C), and leads in 4 of 7 scored categories. Kroki leads on agent ergonomics, security & auth and payments & pricing.
Do Kroki and Structurizr + MCP need an API key?
Kroki needs no key. Structurizr + MCP takes an API key or an OAuth sign-in.
Can an agent call Kroki and Structurizr + MCP without installing anything?
No hosted endpoint is listed for Kroki. Structurizr + MCP has a hosted endpoint at https://mcp.structurizr.com/mcp.
Are Kroki and Structurizr + MCP open source?
Yes. Kroki is open source (MIT). Structurizr + MCP is open source (Apache-2.0).
Other comparisons with Kroki or Structurizr + MCP
- AI Diagram Maker MCP vs Kroki
- AI Diagram Maker MCP vs Structurizr + MCP
- Cloudviz API vs Kroki
- Cloudviz API vs Structurizr + MCP
- Diagrams.so API + MCP vs Kroki
- Diagrams.so API + MCP vs Structurizr + MCP
- draw.io + MCP vs Kroki
- draw.io + MCP vs Structurizr + MCP
- Eraser API + MCP vs Kroki
- Eraser API + MCP vs Structurizr + MCP
- ExcaliClaw vs Kroki
- ExcaliClaw vs Structurizr + MCP
- Excalidraw vs Kroki
- Excalidraw vs Structurizr + MCP
- Kroki vs Mumble
- Kroki vs Mural MCP
- Kroki vs Whimsical MCP
- Lucid API + MCP vs Structurizr + MCP
- Mermaid Chart MCP vs Structurizr + MCP
- Mumble vs Structurizr + MCP
- Mural MCP vs Structurizr + MCP
- Structurizr + MCP vs tldraw SDK + MCP
- Structurizr + MCP vs Whimsical MCP
- D2 vs Kroki
- D2 vs Structurizr + MCP
- Kroki vs Lucid API + MCP
- Kroki vs Mermaid Chart MCP
- Kroki vs PlantUML
- Kroki vs tldraw SDK + MCP
- PlantUML vs Structurizr + MCP
Machine-readable
- This page as Markdown
/compare/kroki-vs-structurizr.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/kroki.json·/api/v1/tools/structurizr.json - From a terminal
anchor compare kroki structurizr(the CLI) - Over MCP
compare_tools {"a": "kroki", "b": "structurizr"}at/mcp, no key