Head to head · Diagram creation · October 2026 research run
Excalidraw vs Kroki
Kroki scores 56.7 (C) on agent readiness against Excalidraw's 54.8 (C), and leads in 5 of 7 scored categories. Excalidraw leads on schema & documentation and security & auth. Both do diagram creation.
Best diagramming APIs and diagram-as-code for AI agents · All 150 diagrams comparisons
Which one, for what
Best for Teams already on Excalidraw+ that want agents to create and edit hand-drawn diagrams, slides and wireframes in a shared workspace, and one-off sketches through the free MCP App.
Ahead on
- Schema & documentation, 65 against 48
- Security & auth, 73 against 56
Also in its favour
- A hosted endpoint, with nothing to install
- No incidents deducted, where Kroki loses 10 points for them
Watch for
The API and MCP server are in public beta. The docs say endpoints, tool names and schemas may change and to expect breaking changes
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 30
- Agent ergonomics, 70 against 58
- Payments & pricing, 90 against 53
- Maintenance & community, 86 against 44
- Transparency & trust, 70 against 63
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
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.
Maintenance & community Kroki +42
Excalidraw 44
The newest changelog entry is dated 1 September 2026, 64 days before this check, per the 9 October reading (20); the changelog wasn't re-read on 4 November (terms ban automated access). The editor package @excalidraw/excalidraw has no release since 0.18.1 (20 April 2026), and the MCP App's newest tag is v0.3.2 (9 February 2026), both read from clones. Of the dated entries recorded, only 1 September falls in the 90 days from 6 August (0). A public changelog, a roadmap, a Discord server and support@excalidraw.com exist, and the editor repository had commits up to 3 November 2026 (12). There is no SDK for the API, and the editor package on npm is the vendor's only official package (5). The editor repository runs test, lint and size workflows, and the MCP App repository has no CI and no commit since 24 March 2026 (7). 20 + 0 + 12 + 5 + 7 = 44.
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.
Payments & pricing Kroki +37
Excalidraw 53
No x402, MPP or L402 (0). Plan prices are public, Free at $0 and Plus at $6 a user a month, with no per-call price (10). The free editor and the keyless MCP App need no card, while the API needs the Plus plan, whose 14-day trial does not say whether a card is taken; the terms (re-read 4 November) say the account is charged when the trial ends (15). The MCP App's README gives https://mcp.excalidraw.com as a remote server to add as a custom connector, with no key, but an API key is created by a person in workspace settings (10). Pricing per the 9 October check, not re-read on 4 November. 0 + 10 + 15 + 10 = 35. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
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.
Reliability Kroki +34
Excalidraw 30
Scored on the hosted lines for the Excalidraw+ API and MCP server. Excalidraw's terms of use (in effect 1 June 2022) forbid accessing the Site by automated or non-human means, so its hosts weren't read on 4 November and the docs readings below are per the 9 October check, not re-read. A status page exists at status.excalidraw.com, but its robots.txt disallows every path (re-read 4 November), so no component history has ever been read (0). No incident history could be read (5). The rate limit is 600 requests a minute per IP, with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers (15). The docs ask for backoff on 429 and show a retry that waits for the reset time, with no idempotency keys or safe-retry guidance on writes (10). No SLA found (0). Both surfaces are in public beta (0). 0 + 5 + 15 + 10 + 0 + 0 = 30.
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.
Schema & documentation Excalidraw +17
Excalidraw 65
The endpoint reference is generated from an OpenAPI schema, but no file is linked from the docs, and the MCP tool definitions could not be read without a key (10). llms.txt and llms-full.txt are published (10). The tools page says when to use search_scene_content over get_scene_content, label over text and create_diagram over edit_scene_content (16). Parameters carry ranges and enums in the reference, while edit_scene_content takes its elements as a JSON array string (9). Each endpoint has samples in six languages and error bodies for 400, 401 and 403 (12). The path is versioned as /api/v1 and a monthly product changelog carries API and MCP items, with no API changelog of its own (8). Per the 9 October check, not re-read on 4 November (terms ban automated access). 10 + 10 + 16 + 9 + 12 + 8 = 65.
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.
Security & auth Excalidraw +17
Excalidraw 73
API keys are workspace-bound, take read or full permission or specific routes, carry an expiry and can be rotated or soft-deleted. Personal and workspace keys differ in access to private collections (30). Read-only keys expose only read tools and deletes go to trash, with no confirmation step found (14). Scene text written by collaborators returns to the model and add_image fetches a public URL, with no injection guidance found (3). GET /logs returns the workspace audit log with filters by user, action and operation (13). Excalidraw states SOC 2 Type 1 and Type 2, yearly penetration tests and Vanta scanning, and publishes advisories on GitHub (OSV lists five for the editor, the newest on 24 April 2026). That newest one, GHSA-39h7-pwv7-rc3x, covers Mermaid's own sequence-diagram flaw (CVE-2025-54881, published by Mermaid on 19 August 2025), fixed in 0.18.1 by a dependency update, so it takes no deduction; the other four are older than twelve months. No security.txt, bug bounty or SECURITY.md was found, and the trust centre report was not read (13). Docs readings per the 9 October check, not re-read on 4 November. 30 + 14 + 3 + 13 + 13 = 73.
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).
Agent ergonomics Kroki +12
Excalidraw 58
The docs list 37 MCP tools (5). The server shows a key only the tools its routes allow, so a read-only or route-restricted key cuts the list (7). Lists take offset and limit up to 100, logs take a cursor and filters, and search_scene_content returns only matching elements (18). Errors are JSON with statusCode, error and message, and seven status codes are documented (13). No idempotency keys. Deletes of scenes and collections move them to trash, and MCP annotations could not be read (8). create_diagram measures labels and routes arrows, but there is no SDK for the API (7). Per the 9 October check, not re-read on 4 November. 5 + 7 + 18 + 13 + 8 + 7 = 58.
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).
Score by category
| Category | Weight | Excalidraw | Kroki | Edge |
|---|---|---|---|---|
| Reliability | 16% | 30 | 64 | Kroki +34 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 65 | 48 | Excalidraw +17 |
| Agent ergonomics | 13% | 58 | 70 | Kroki +12 |
| Security & auth | 14% | 73 | 56 | Excalidraw +17 |
| Payments & pricing | 10% | 53 | 90 | Kroki +37 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 44 | 86 | Kroki +42 |
| Transparency & trust | 7% | 63 | 70 | Kroki +7 |
| Negative events | ≤15 | 0 | -10 | |
| Total | C 54.8/100 | C 56.7/100 |
Facts side by side
| Fact | Excalidraw | Kroki |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Excalidraw s.r.o. | Yuzu tech |
| Hosted endpoint | https://api.excalidraw.com/api/v1/mcp | no (local only) |
| Transports | HTTP, Streamable HTTP | HTTP |
| Auth | API key | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | Excalidraw+ is a proprietary service under Excalidraw's terms of use. The editor and the MCP App on GitHub are MIT | MIT |
| Tools exposed | 37 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-09-01 | 2026-10-25 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | 2021-04-29 | not read yet |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | yes | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | yes | not read yet |
| Arbitration or class-action waiver | yes | not read yet |
| Popularity | 134k stars, 676k npm/wk | 4.4k stars |
How the scores have moved
Verdicts
Excalidraw
Excalidraw+ keys carry read or full permission, route restrictions and an expiry, and the MCP server shows a key only the tools its routes allow. The API and MCP server are in public beta with breaking changes expected, sit behind the $6 Plus plan, and have no published OpenAPI file, SDK or idempotency keys. No status history can be read.
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
Excalidraw
- Send
Authorization: Bearer <API_KEY>to https://api.excalidraw.com/api/v1. For MCP, usePOST /api/v1/mcponly. The server is stateless and answers 405 to other methods - Use a personal key to reach the owner's private collection with the collection ID
private. A workspace admin must enable personal keys first - Call
read_diagram_format,read_presentation_formatorread_freeform_formatbefore the first scene write in a session - Write with
edit_scene_contentand bind arrows throughstartBindingandendBindingwithtempIdreferences.PUT /scenes/{sceneId}/contentremoves every element left out of the request - Stay under 600 requests a minute per IP and wait until
X-RateLimit-Resetafter a 429
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, Excalidraw or Kroki?
Kroki scores 56.7 (C) on agent readiness against Excalidraw's 54.8 (C), and leads in 5 of 7 scored categories. Excalidraw leads on schema & documentation and security & auth.
Do Excalidraw and Kroki need an API key?
Excalidraw needs an API key. Kroki needs no key.
Can an agent call Excalidraw and Kroki without installing anything?
Excalidraw has a hosted endpoint at https://api.excalidraw.com/api/v1/mcp. No hosted endpoint is listed for Kroki.
Are Excalidraw and Kroki open source?
Yes. Excalidraw is open source (Excalidraw+ is a proprietary service under Excalidraw's terms of use. The editor and the MCP App on GitHub are MIT). Kroki is open source (MIT).
Other comparisons with Excalidraw or Kroki
- AI Diagram Maker MCP vs Excalidraw
- AI Diagram Maker MCP vs Kroki
- Cloudviz API vs Excalidraw
- Cloudviz API vs Kroki
- Diagrams.so API + MCP vs Excalidraw
- Diagrams.so API + MCP vs Kroki
- draw.io + MCP vs Excalidraw
- draw.io + MCP vs Kroki
- Eraser API + MCP vs Excalidraw
- Eraser API + MCP vs Kroki
- ExcaliClaw vs Excalidraw
- ExcaliClaw vs Kroki
- Excalidraw vs Lucid API + MCP
- Excalidraw vs Mermaid Chart MCP
- Excalidraw vs Mumble
- Excalidraw vs Mural MCP
- Excalidraw vs PlantUML
- Excalidraw vs Structurizr + MCP
- Excalidraw vs tldraw SDK + MCP
- Excalidraw vs Whimsical MCP
- Kroki vs Mumble
- Kroki vs Mural MCP
- Kroki vs Whimsical MCP
- D2 vs Excalidraw
- 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/excalidraw-vs-kroki.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/excalidraw.json·/api/v1/tools/kroki.json - From a terminal
anchor compare excalidraw kroki(the CLI) - Over MCP
compare_tools {"a": "excalidraw", "b": "kroki"}at/mcp, no key