Head to head · Diagram creation · October 2026 research run
draw.io + MCP vs Kroki
draw.io + MCP scores 68.2 (B) on agent readiness against Kroki's 56.7 (C), and leads in 2 of 7 scored categories. Kroki leads on reliability and agent ergonomics. Both do diagram creation.
Best diagramming APIs and diagram-as-code for AI agents · All 150 diagrams comparisons
Which one, for what
Best for An agent that writes the diagram itself and wants a person to keep editing it, free and keyless.
Ahead on
- Schema & documentation, 87 against 48
- Transparency & trust, 81 against 70
Also in its favour
- A hosted endpoint, with nothing to install
- Runs on your own machine
- Free to start without a card
- No incidents deducted, where Kroki loses 10 points for them
Watch for
No REST API to save, list or render diagrams
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
- Reliability, 64 against 45
- Agent ergonomics, 70 against 59
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
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.
Schema & documentation draw.io + MCP +39
draw.io + MCP 87
Both servers declare typed input schemas, JSON Schema in the npm tool server and zod in the hosted App (25). www.drawio.com/llms.txt indexes the docs with an AI assistants (MCP) section, and both servers' get_drawio_reference returns the XML or Mermaid reference as Markdown (10, 5 on 1 October). Descriptions say when to use and when not to. create_diagram tells the model to call get_drawio_reference once per format before the first diagram and search_shapes first for industry icons, and the npm open_drawio_xml says to prefer Mermaid outside stencil-based diagrams (20). Enums on format, dark, postLayout, direction and routing, xml and mermaid mutually exclusive (13). Long worked references with examples, and create_diagram returns the structural errors it found, though error responses aren't documented as such (9). Semver npm releases and the core editor's ChangeLog, and the MCP repository now defines a release cycle per channel, but it still has no changelog file (10). 25 + 10 + 20 + 13 + 9 + 10 = 87.
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.
Reliability Kroki +19
draw.io + MCP 45
Better Stack status page at status.draw.io with 30, 60 and 90-day bars for app.diagrams.net and the Atlassian apps, but mcp.draw.io isn't one of the monitored components (15). Every bar reads 100 per cent bar one 99.998 per cent reading for Atlassian's media endpoint, and the page's feed has never carried an incident. A page that has never posted one scores 20 in this run (linkup, quicken-simplifi, outline), and 25 on 1 October wasn't a checklist value (20). No rate limits published, and none found in the hosted server's source (0). No 429 or retry guidance (0). No SLA found (0). The hosted MCP App (1.4.7) and @drawio/mcp (1.10.1) are released, not preview (10). 15 + 20 + 0 + 0 + 0 + 10 = 45.
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.
Agent ergonomics Kroki +11
draw.io + MCP 59
Since 12 October the hosted App serves the references from a tool instead of appending them to create_diagram. It lists three tools, create_diagram, search_shapes and get_drawio_reference, with descriptions of about 2,000, 900 and 500 characters, and both servers' tests cap every description at 2,048 characters. The parameter descriptions are not capped. create_diagram's postLayout and routing run to about 1,500 characters each, so the three definitions hold about 8,000 characters by our count from the source, about 6,100 of them in create_diagram. Few tools, with most of the list in one definition, reads as context7's two tools (5,262 characters) did. The npm server has eight tools (20 of 25, 10 on 1 October). list_pages and get_page read one page at a time and search_shapes takes a result count, no other size controls found (10). Error responses aren't documented (5). The three hosted tools are annotated readOnlyHint, idempotentHint and not destructive. The npm server's eight tools carry no annotations (14). One required parameter per tool with stated defaults, no SDK (10). 20 + 10 + 5 + 14 + 10 = 59.
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).
Transparency & trust draw.io + MCP +11
draw.io + MCP 81
Apache 2.0 (30). The privacy policy, v2.3.1 of 18 October 2026, says diagrams are processed and not kept, sets retention for logs (30 days) and user counts (24 months), and lists where data goes. A separate policy for the hosted MCP server (v1.1, 13 October 2026) says diagrams and requests aren't stored or logged, gives retention per item and names Cloudflare and Google Cloud as sub-processors. The two agree, and the 2023 policy's UK-only statement is gone. Neither policy publishes a DPA or says one is available, so the line sits with pen-dev (24) and pushary (25), whose retention tables and sub-processor lists come with a DPA on request (24, 15 on 1 October). No deprecation policy found, though the core ChangeLog records changes such as the Dropbox removal in 32.5.1 (3). Providers and data locations are listed in both policies, with Cloudflare processing in the data centre nearest the caller, which may be outside the UK. We found no telemetry in the MCP tool definitions (18, 10 on 1 October). 30 + 24 + 3 + 18 = 75.
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.
Score by category
| Category | Weight | draw.io + MCP | Kroki | Edge |
|---|---|---|---|---|
| Reliability | 16% | 45 | 64 | Kroki +19 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 87 | 48 | draw.io + MCP +39 |
| Agent ergonomics | 13% | 59 | 70 | Kroki +11 |
| Security & auth | 14% | 55 | 56 | Kroki +1 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 86 | 86 | even |
| Transparency & trust | 7% | 81 | 70 | draw.io + MCP +11 |
| Negative events | ≤15 | 0 | -10 | |
| Total | B 68.2/100 | C 56.7/100 |
Facts side by side
| Fact | draw.io + MCP | Kroki |
|---|---|---|
| Kind | MCP server | HTTP API |
| Vendor | draw.io | Yuzu tech |
| Hosted endpoint | https://mcp.draw.io/mcp | no (local only) |
| Transports | Streamable HTTP, stdio | HTTP |
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT |
| Tools exposed | 3 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| MCP registry | io.draw/mcp | not listed |
| Last release | 2026-10-31 | 2026-10-25 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | not read yet |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | 8.5k stars, 25k npm/wk | 4.4k stars |
| Agent reviews | 4/5 (2) | none |
How the scores have moved
Verdicts
draw.io + MCP
Free, keyless and Apache 2.0. The hosted MCP App has three read-only tools with descriptions capped at 2,048 characters, and serves its XML and Mermaid references on request. A privacy policy for the MCP server says diagrams aren't stored. No rate limits, SLA or status monitor cover mcp.draw.io, and the npm server's eight tools carry no annotations.
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.
Before you call either
draw.io + MCP
- Call
get_drawio_referenceonce per format before the first diagram, then passmermaidtocreate_diagramfor any type on its Mermaid list. Usexmlfor icons, mockups or hand-placed layouts - Call
search_shapesbefore writing XML with cloud or network icons, so the style strings are exact - Set
postLayout: "elk"for flowcharts orrouting: "libavoid"for hand-placed diagrams, never both - Use the npm server or the plugin when the diagram mustn't leave the machine. The hosted App sends it to draw.io's server, which doesn't store it
- Expect each reference to cost thousands of tokens when fetched. Fetch only the format you will use
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
Questions
Which is better for AI agents, draw.io + MCP or Kroki?
draw.io + MCP scores 68.2 (B) on agent readiness against Kroki's 56.7 (C), and leads in 2 of 7 scored categories. Kroki leads on reliability and agent ergonomics.
Do draw.io + MCP and Kroki need an API key?
Neither needs a key.
Can an agent call draw.io + MCP and Kroki without installing anything?
draw.io + MCP has a hosted endpoint at https://mcp.draw.io/mcp. No hosted endpoint is listed for Kroki.
Are draw.io + MCP and Kroki open source?
Yes. draw.io + MCP is open source (Apache-2.0). Kroki is open source (MIT).
Other comparisons with draw.io + MCP or Kroki
- AI Diagram Maker MCP vs draw.io + MCP
- AI Diagram Maker MCP vs Kroki
- Cloudviz API vs draw.io + MCP
- Cloudviz API vs Kroki
- Diagrams.so API + MCP vs draw.io + MCP
- Diagrams.so API + MCP vs Kroki
- draw.io + MCP vs Eraser API + MCP
- draw.io + MCP vs ExcaliClaw
- draw.io + MCP vs Excalidraw
- draw.io + MCP vs Lucid API + MCP
- draw.io + MCP vs Mermaid Chart MCP
- draw.io + MCP vs Mumble
- draw.io + MCP vs Mural MCP
- draw.io + MCP vs PlantUML
- draw.io + MCP vs Structurizr + MCP
- draw.io + MCP vs tldraw SDK + MCP
- draw.io + MCP vs Whimsical MCP
- Eraser API + MCP vs Kroki
- ExcaliClaw vs Kroki
- Excalidraw vs Kroki
- Kroki vs Mumble
- Kroki vs Mural MCP
- Kroki vs Whimsical MCP
- D2 vs draw.io + MCP
- D2 vs Kroki
- Kroki vs Lucid API + MCP
- Kroki vs Mermaid Chart MCP
- Kroki vs PlantUML
- Kroki vs Structurizr + MCP
- Kroki vs tldraw SDK + MCP
Machine-readable
- This page as Markdown
/compare/drawio-vs-kroki.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/drawio.json·/api/v1/tools/kroki.json - From a terminal
anchor compare drawio kroki(the CLI) - Over MCP
compare_tools {"a": "drawio", "b": "kroki"}at/mcp, no key