Head to head · Diagrams as code · October 2026 research run

Kroki vs Lucid API + MCP

Lucid API + MCP scores 65 (B) on agent readiness against Kroki's 56.7 (C), and leads in 3 of 7 scored categories. Kroki leads on agent ergonomics, payments & pricing, maintenance & community and transparency & trust. Both do diagrams as code.

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

Best design workspace and canvas APIs for AI agents · All 180 design 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 62
  • Payments & pricing, 90 against 38
  • Maintenance & community, 86 against 33
  • Transparency & trust, 70 against 62

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

Lucid API + MCP B

Best for Organisations already on Lucid that want an agent to create or update diagrams inside governed workspaces, with read-only scopes and audit logs.

Ahead on

  • Reliability, 80 against 64
  • Schema & documentation, 73 against 48
  • Security & auth, 80 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

No public changelog for the API or the MCP 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.

Maintenance & community Kroki +53

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.

Lucid API + MCP 33

No public changelog for the REST API or the MCP server. The newest dated change is the MCP server's 1.0.0 registry entry of 15 June 2026, 141 days before the check (10). No dated release or change in the 90 days from 5 August. Reference pages carry updatedAt stamps (rate limits 28 October), which aren't counted as releases, and the Extension SDK release notes are undated and cover a different surface (0). Support at support@lucid.co and a community forum with developer announcements, not tested (8). In the official MCP registry as app.lucid.mcp/lucid under Lucid's own domain (15). No official REST SDK package to assess (0). 10+0+8+15+0 = 33.

Payments & pricing Kroki +52

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.

Lucid API + MCP 38

No x402, MPP or L402 (0). Plan prices are public, Individual $9 a month and Team $10 per user with a 3-user minimum billed yearly per the 30 September check, and nothing priced per call (10). A Free plan exists. The pricing page renders only with JavaScript, so we couldn't confirm it needs no card (15). Signup, developer-tool activation and OAuth consent all need a person (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 25 is 38.

Schema & documentation Lucid API + MCP +25

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.

Lucid API + MCP 73

Each reference page embeds an OpenAPI 3.0.3 fragment for its operation with server https://api.lucid.co, but there's no single spec file to download (20). llms.txt and a .md twin of every reference page (10). Operation descriptions state purpose and limits, and the MCP tools say what they build, without when-not-to-use guidance (12). Typed bodies with UUID paths, a 100,000-character cap on Mermaid markup and booleans with defaults (13). Per-operation codes 400, 403, 404, 409 and 429 with reasons, few full examples (11). A required Lucid-Api-Version header, but no public changelog (the readme.io changelog returns 404) (7).

Security & auth Lucid API + MCP +24

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

Lucid API + MCP 80

OAuth 2.0 with fine-grained scopes, including :readonly variants such as lucidchart.document.content:readonly, plus API keys limited by grants such as DocumentEdit. The MCP server uses OAuth with dynamic client registration (28). Read-only scopes, and admins can switch developer tools and the MCP server off for an account. Sharing tools can invite up to 100 email addresses per call with no confirmation step (15). Fetched documents can hold text written by other collaborators and we found no injection guidance (4). Get and Query Audit Logs endpoints in the REST API (15). SOC 2 Type II, ISO 27001, 27701 and 42001, FedRAMP Moderate, IRAP, and a HackerOne bug bounty joined by emailing security@lucid.co. No security.txt per the 30 September check (18).

Reliability Lucid API + MCP +16

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.

Lucid API + MCP 80

Atlassian Statuspage at status.lucid.co with components per region (US, EU, Australia, US Government), but none for the REST API or the MCP server (15). The history page and its Atom feed, both open to our reader, show no incident from 5 August to 3 November 2026. The page has posted incidents before, the newest on 28 March 2024, so this reads as a clean record, though no component covers the API (30). Each reference page embeds its rate limit, for example 60 Mermaid diagram requests a minute per account, and Get Rate Limits returns the settings for the requesting user (15). The rate-limits page (updated 28 October 2026) says to honour Retry-After when present and back off exponentially otherwise, and 409 marks a conflicting document change, with no safe-retry guidance for writes (10). No SLA found (0). The REST API is generally available and the MCP server is at 1.0.0 in the official registry since 15 June 2026 (10). 15+30+15+10+0+10 = 80.

Agent ergonomics Kroki +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).

Lucid API + MCP 62

Nine MCP tools with compact definitions, though PNG export returns base64 in the result (22). Paginated list endpoints, search capped at 200 results, export by page (15). Status codes on every operation with the cause of each (15). No idempotency keys or retry-safety guidance found, and we couldn't read the hosted tools' annotations (3). No official REST SDK (the Extension SDK is for in-editor extensions), and every call needs the version header (7).

Score by category

CategoryWeightKrokiLucid API + MCPEdge
Reliability16%6480Lucid API + MCP +16
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4873Lucid API + MCP +25
Agent ergonomics13%7062Kroki +8
Security & auth14%5680Lucid API + MCP +24
Payments & pricing10%9038Kroki +52
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8633Kroki +53
Transparency & trust7%7062Kroki +8
Negative events≤15-100
TotalC 56.7/100B 65/100

Facts side by side

FactKrokiLucid API + MCP
KindHTTP APIHTTP API
VendorYuzu techLucid Software
Hosted endpointno (local only)https://api.lucid.co
TransportsHTTPHTTP, Streamable HTTP
AuthNoneOAuth or key
PricingFreeFreemium
x402nono
LicenceMITproprietary
Tools exposednone9
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listedapp.lucid.mcp/lucid
Last release2026-10-252026-06-15
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatednot read yetcouldn't be read
Customer content may train modelsnot read yetcouldn't be read
Terms restrict automated accessnot read yetcouldn't be read
Terms restrict benchmarkingnot read yetcouldn't be read
Terms or service can change without noticenot read yetcouldn't be read
Arbitration or class-action waivernot read yetcouldn't be read
Popularity4.4k starsnone
Agent reviewsnone3/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.

Lucid API + MCP

OAuth 2.0 scopes with :readonly variants, and audit log endpoints in the REST API. No public changelog for the API or the MCP server.

Before you call either

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

Lucid API + MCP

  1. Always send Lucid-Api-Version: 1, or prefix the path with /v1
  2. For flowcharts and sequence diagrams, post Mermaid markup (up to 100,000 characters) instead of building Standard Import JSON
  3. Request :readonly scopes when the agent only reads documents
  4. On 429, wait the Retry-After seconds when sent, otherwise back off exponentially. Mermaid diagram calls share 60 requests a minute per account
  5. Sharing and embed endpoints need an OAuth token. An API key won't work there

Questions

Which is better for AI agents, Kroki or Lucid API + MCP?

Lucid API + MCP scores 65 (B) on agent readiness against Kroki's 56.7 (C), and leads in 3 of 7 scored categories. Kroki leads on agent ergonomics, payments & pricing, maintenance & community and transparency & trust.

Do Kroki and Lucid API + MCP need an API key?

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

Can an agent call Kroki and Lucid API + MCP without installing anything?

No hosted endpoint is listed for Kroki. Lucid API + MCP has a hosted endpoint at https://api.lucid.co.

Are Kroki and Lucid API + MCP open source?

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

Other comparisons with Kroki or Lucid API + MCP

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.