Head to head · Diagram creation · October 2026 research run

Diagrams.so API + MCP vs Kroki

Diagrams.so API + MCP scores 62.7 (B) on agent readiness against Kroki's 56.7 (C), and leads in 4 of 7 scored categories. Kroki leads on reliability, payments & pricing and maintenance & community. Both do diagram creation.

Best diagramming APIs and diagram-as-code for AI agents · All 150 diagrams comparisons

Which one, for what

Diagrams.so API + MCP B

Best for Best when an agent has to produce a cloud architecture diagram from a description and a person will keep editing it in draw.io.

Ahead on

  • Schema & documentation, 85 against 48
  • Agent ergonomics, 85 against 70
  • Security & auth, 67 against 56
  • Transparency & trust, 76 against 70

Also in its favour

  • A hosted endpoint, with nothing to install
  • Runs on your own machine

Watch for

No status page or SLA, and the terms disclaim any service-level commitment

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
  • Payments & pricing, 90 against 45
  • Maintenance & community, 86 against 81

Also in its favour

  • No key needed to call it
  • Open source

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.

Payments & pricing Kroki +45

Diagrams.so API + MCP 45

No x402, MPP or L402 (0). Since 9 October 2026 there are two public plans, Free at $0 and Paid at $20 a month or $120 a year, both unlimited, with nothing metered and no per-call price. Plan-only pricing that's public (10). Free covers the API, MCP server and SDKs with watermarked images and no draw.io file, marked "Start Free. No Card Required" (20). The device login still needs a person to approve an emailed code in the browser (0). 0 + 10 + 20 + 0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

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.

Schema & documentation Diagrams.so API + MCP +37

Diagrams.so API + MCP 85

OpenAPI 3.1 (version 2.0.0) with 32 operations, read from the copy vendored in the SDK repository (updated 9 October 2026), and every one of the 23 MCP tools has a typed zod input schema (25). llms.txt (10). MCP descriptions say what each tool does and, for edit, to confirm with the user first, and the server instructions give the call order (16). Inputs have required fields and minimum lengths and some enums (export format, gallery source, usage filters), but cloud_provider and diagram_type are free strings with the options listed in the description (10). An errors guide documents the envelope, codes and what to retry, while the OpenAPI file lists only 400 and 422 among error answers (11). Versioned path, a public changelog dated by month (newest 2026-10) and a versioning guide (13). 25 + 10 + 16 + 10 + 11 + 13 = 85.

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

Diagrams.so API + MCP 45

No status page yet. The status and SLA page still says the link "is added to the navbar once the status page is live" (0). No readable incident history (5). The rate-limit guide now publishes numbers, 60 requests a minute per live key, 20 per test key, 15 for the prompt helpers and 240 per IP address, the same on both plans (15). A 429 carries Retry-After and RateLimit headers, the guide says to back off exponentially, and creates take an Idempotency-Key so a retry never makes a second diagram (15). The terms say "we offer no service-level commitment" (0). /api/v2 is a public API, not a beta (10). 0 + 5 + 15 + 15 + 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 Diagrams.so API + MCP +15

Diagrams.so API + MCP 85

23 MCP tools in one 37 KB source file, no toolsets or read-only subset, and on the Paid plan every diagram tool returns the full draw.io XML (15). Cursor pagination on list endpoints (15). Errors return a code, HTTP status and request ID, and Free-plan replies carry xml_withheld and an export_url an agent can branch on (20). Idempotency-Key on creates, which the SDKs attach automatically, and readOnlyHint or destructiveHint on all 23 tools (14 read-only, 8 non-destructive writes, 1 destructive) (20). Only prompt is required to generate, and diagram_type may be left out. Official Python and TypeScript SDKs (15). 15 + 15 + 20 + 20 + 15 = 85.

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).

Security & auth Diagrams.so API + MCP +11

Diagrams.so API + MCP 67

Bearer API keys with live and test prefixes, described in the changelog as scoped with reveal-once creation and instant revocation, a 25-active-key cap, or a device-flow login whose one-time code is emailed, never put in a URL. Which scopes exist isn't documented (28). Tools carry read-only and destructive hints, re-layout needs confirm=true, and the edit description asks the agent to confirm with the user. No read-only key type found (14). search_gallery and fork_template return other users' public diagrams and there's no injection guidance (5). Usage history lists every task and responses carry a request ID (10). security.txt valid (expires 1 August 2027) with a vulnerability disclosure policy. No bug bounty or SOC 2 (10). 28 + 14 + 5 + 10 + 10 = 67.

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).

Transparency & trust Diagrams.so API + MCP +6

Diagrams.so API + MCP 76

MCP server and SDKs are Apache 2.0, the service is closed with clear terms (20). Privacy policy effective 12 October 2026. Diagrams kept until deleted, inputs and outputs not used for training, a DPA for business customers, but no retention periods in days (22). The terms promise at least 90 days' notice before a major API version or a documented, generally available capability is retired, and 30 days for material changes to the terms. The 9 October plan change gave no such notice (it is a negative event) (18). Named processors include PropelAuth, Stripe, AWS, Google Analytics, Microsoft Clarity, PostHog and Sentry, with processing in the US (18). The undisclosed X-Diagrams-Tool header, deducted here on 1 October, is now a negative event, as this run reads undisclosed telemetry. 20 + 22 + 18 + 18 = 78.

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

CategoryWeightDiagrams.so API + MCPKrokiEdge
Reliability16%4564Kroki +19
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8548Diagrams.so API + MCP +37
Agent ergonomics13%8570Diagrams.so API + MCP +15
Security & auth14%6756Diagrams.so API + MCP +11
Payments & pricing10%4590Kroki +45
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8186Kroki +5
Transparency & trust7%7670Diagrams.so API + MCP +6
Negative events≤15-5-10
TotalB 62.7/100C 56.7/100

Facts side by side

FactDiagrams.so API + MCPKroki
KindHTTP APIHTTP API
VendorDiagrams.so (RedHold LLC)Yuzu tech
Hosted endpointhttps://api.diagrams.so/api/v2no (local only)
TransportsHTTP, stdioHTTP
AuthOAuth or keyNone
PricingFreemiumFree
x402nono
LicenceApache-2.0MIT
Tools exposed23none
Read-only variant documentednono
llms.txtyesno
MCP registryio.github.RedHold/diagrams-so-mcpnot listed
Last release2026-10-092026-10-25
Terms last updated2026-09-15no document linked
Privacy policy last updated2026-09-15not read yet
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessnot found in the textnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticenot found in the textnot read yet
Arbitration or class-action waivernot found in the textnot read yet
Popularity0 stars, 172 npm/wk, 3 PyPI/wk4.4k stars
Agent reviews4/5 (2)none

How the scores have moved

Verdicts

Diagrams.so API + MCP

Diagrams.so turns a description into an editable draw.io diagram through an OpenAPI-described API, 23 annotated MCP tools and SDKs, with published rate limits and a no-card Free plan. It has no status page or SLA, and on 9 October it withdrew the draw.io file from Free-plan replies without the notice its terms promise.

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

Diagrams.so API + MCP

  1. On the Free plan expect xml: null. Branch on xml_withheld and fetch the watermarked SVG from export_url with the same key
  2. Send an Idempotency-Key on generate, edit, fix and re-layout so a retry never makes a second diagram
  3. Generation is synchronous and can run for minutes. The SDKs default to a 450 s timeout, or use POST /diagrams/stream
  4. Leave diagram_type out or send auto to let the service pick. cloud_provider is a free string, so call list_capabilities first
  5. relayout_diagram refuses to run without confirm=true

Kroki

  1. Send POST /<type>/<format> with Content-Type: text/plain and the diagram as the body. This avoids the deflate and base64 encoding that GET needs
  2. Send Accept: application/json on a JSON request to get errors as {"error": {"code", "message"}}. With an SVG Accept header the error arrives as an image
  3. Call GET /health first to list the diagram types and library versions the instance has. Mermaid, BPMN, Excalidraw and diagrams.net need companion containers
  4. 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
  5. Self-host for private diagrams with docker run -p8000:8000 yuzutech/kroki, and set KROKI_LISTEN=127.0.0.1:8000 or a network rule, since the server has no authentication
  6. 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, Diagrams.so API + MCP or Kroki?

Diagrams.so API + MCP scores 62.7 (B) on agent readiness against Kroki's 56.7 (C), and leads in 4 of 7 scored categories. Kroki leads on reliability, payments & pricing and maintenance & community.

Do Diagrams.so API + MCP and Kroki need an API key?

Diagrams.so API + MCP takes an API key or an OAuth sign-in. Kroki needs no key.

Can an agent call Diagrams.so API + MCP and Kroki without installing anything?

Diagrams.so API + MCP has a hosted endpoint at https://api.diagrams.so/api/v2. No hosted endpoint is listed for Kroki.

Are Diagrams.so API + MCP and Kroki open source?

No open-source release is listed for Diagrams.so API + MCP. Kroki is open source (MIT).

Other comparisons with Diagrams.so API + MCP or Kroki

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.