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

PlantUML vs tldraw SDK + MCP

PlantUML scores 66.3 (B) on agent readiness against tldraw SDK + MCP's 59.3 (C), and leads in 6 of 7 scored categories. tldraw SDK + MCP leads on schema & documentation. Both do diagrams as code.

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

Which one, for what

PlantUML B

Best for Agents that write sequence, class, state, component, deployment, Gantt or C4 diagrams as text and render them locally or in CI.

Ahead on

  • Reliability, 83 against 70
  • Agent ergonomics, 78 against 71
  • Security & auth, 50 against 40
  • Payments & pricing, 90 against 53
  • Transparency & trust, 74 against 51

Also in its favour

  • Open source
  • Rated higher by the reviewer agents, 3.5 against 3.0 out of 5

Watch for

The default security profile is LEGACY, which gives diagram text full access to local files and URLs through !include. The docs say it will be removed, with no date

tldraw SDK + MCP C

Best for Teams building a product where a person and an agent share a canvas.

Ahead on

  • Schema & documentation, 79 against 65

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

Source-available, and commercial prices aren't published

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 PlantUML +37

PlantUML 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 download the jar or run the npm package 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.

tldraw SDK + MCP 53

No payment protocol (0). Commercial prices are agreed with sales, "value-based", nothing published (0). Development use needs no key, and a 100-day production trial licence is emailed on submitting a form, with no payment step (20). An agent can use the SDK in development and the hosted MCP App with no signup, but production needs a person to request a licence (15). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.

Transparency & trust PlantUML +23

PlantUML 74

GPL-3.0-or-later by default, with the same source under six other open-source licences, and LICENSES.md says generated images belong to the author of the diagram text (30). No privacy policy, and the software runs locally. The FAQ says the public online server stores no diagrams, turns on HTTP traces at times and carries traffic over plain HTTP (17). The docs say the LEGACY profile and the legacy command-line options will be removed, with no dates, and 61 old flag names remain as deprecated aliases (10). Statistics collection is local and off by default, with --enable-stats to turn it on. We found no network call in the statistics code (16).

tldraw SDK + MCP 51

Source-available under the tldraw licence, explicitly not open source, with clear terms (15). The SDK runs in your app. The hosted MCP App keeps canvas checkpoints in a Durable Object SQLite store, capped by count, with exec results kept 10 minutes, none of which we found in a policy (12). RELEASES.md commits to warnings several releases before a breaking change, and v5.4 deprecated useViewportHeight() ahead of removal, though the breaking changes in v5.2.0, v5.3.0 and v5.5.0 came without earlier warnings (12). Licence pings are documented on the licence key page, but the licence page still says less than the code sends. Opting out means a commercial licence (6).

Schema & documentation tldraw SDK + MCP +14

PlantUML 65

Read as a CLI and library. No OpenAPI or formal grammar. The contract is the --help listing, a Javadoc site, --list-keywords and four MCP tools with one typed source string each (13). No llms.txt (HTTP 404). Docs pages are HTML, with a PDF guide (2). One page per diagram type and a command-line page that describes every flag (15). Flags are typed in the help text, with formats listed by name (10). Examples on every language page, exit codes 0, 50, 100 and 200 documented, and -stdrpt error formats shown with samples (12). CHANGES.md and GitHub release notes for every version. The command-line page mixes a beta option set with the legacy one and gives two default ports for --http-server (13).

tldraw SDK + MCP 79

Full TypeScript types, and the MCP App's search tool queries an extracted Editor API spec. Both model-facing MCP tools have zod inputs (22). llms.txt per the 30 September check (10). The exec description says to call search first and gives seven worked examples (16). exec takes free-form JavaScript, which is the design but leaves nothing to validate (6). Many examples, errors come back as JavaScript exceptions (10). Dated release notes for every minor version (15).

Reliability PlantUML +13

PlantUML 83

Read with the local-software lines, because PlantUML runs on the owner's machine. Release jars on GitHub and Maven Central, Homebrew at 1.2026.9 on 1 November and a Docker image, with Java 11 stated as the minimum and a separate Java 8 build (20). Per the 8 October check, the ci workflow passed on the last eight pushes to the default branch, and the repository holds 362 Java test classes. Run results couldn't be re-read on 1 November because GitHub's API refused us (25). Per the 8 October check, GitHub's search counts 575 open issues, 17 of them labelled bug. Issues opened since September carry triage labels and most have replies, and the backlog reaches back years (14). CHANGES.md lists every version and marks breaking changes, though the scheme is 1.year.count and not semver as the download page says, and 1.2026.7 changed the default sequence diagram engine in a point release (9). Version 1.2026.9, in a 1.x line since 2017 (15). 83.

tldraw SDK + MCP 70

Scored as an SDK. The tldraw npm package with React runtimes stated in the docs (20). A public checks.yml workflow and test suites across packages, pass state on main unreadable (GitHub's pages and API refuse our reader), so 15 as this run scores an unread pass state. A stale bot marks issues after 150 days without activity and closes them 30 days later, and open crash reports weren't counted, per the 1 October check (12). RELEASES.md says tldraw doesn't follow semver and minor releases "may contain breaking changes", with breaking items flagged in each release note (8). v5 is a stable line (15). The hosted MCP App has a Cloudflare rate limiter in code with no published numbers and no status page.

Security & auth PlantUML +10

PlantUML 50

No credential exists to leak or scope (20). Security profiles INTERNET, ALLOWLIST and SANDBOX limit file and URL access, with path and URL allowlists. The default is LEGACY, which gives diagram text full access to local files and URLs, and -picoweb listens on all interfaces with no authentication unless a bind address is given (9). The tool renders the caller's own text, though !include can pull in remote text under the default profile (9). --verbose logging only (3). docs/SECURITY.md gives an email address for reports. No security.txt (HTTP 404 on 1 November) and no bug bounty. OSV lists CVE-2026-0858 (GHSA-hrvf-g648-rf3m, stored XSS, Low, 16 January 2026, fixed in 1.2026.0); a fixed Low costs nothing. CHANGES.md marks security fixes, the latest an XML external entity hardening in 1.2026.7, Maven artefacts are signed in CI and the code is scanned on SonarQube Cloud (9).

tldraw SDK + MCP 40

No API key. Licence keys are public and checked offline. The hosted MCP App has no auth, with an optional token for self-hosted copies (18). search is read-only, but exec runs model-written JavaScript against the live editor in the host's iframe, with no approval step (8). Canvas text can come from people and goes back to the model, and we found no injection guidance (8). No audit log (0). SECURITY.md takes reports at hello@tldraw.com with a 24-hour response target and, since 2 November 2026, lists 3.x, 4.x and 5.x as supported. No security.txt (404 on 3 November), no bug bounty found, no advisories in OSV (6).

Agent ergonomics PlantUML +7

PlantUML 78

One command with text in and a diagram out, or four compact MCP tools (23). --txt and --utxt give ASCII for a text-only reader, --check-syntax skips rendering, and images are capped at 4,096 pixels a side unless PLANTUML_LIMIT_SIZE is set (15). Documented exit codes, -stdrpt lines with file and line number, and check_syntax in the MCP server returns errorLineNumber and errorLine. The usual message is 'Syntax Error?' with no cause, and an error image is written unless --no-error-image is passed (14). Rendering is a function of the input, and the MCP server's SVG output is byte-identical across machines. The four MCP tools carry no readOnlyHint (14). java -jar plantuml.jar file works with no flags. It needs a Java runtime, and since 1.2026.7 falls back to the built-in Smetana layout when Graphviz is missing. Official surfaces are the Java library and two npm packages (12).

tldraw SDK + MCP 71

Two model-facing MCP tools, with four more hidden from the model as app-only (25). search returns matching parts of the API spec instead of the whole thing, and canvases export to image or JSON (12). exec returns the thrown error text (10). All six tools carry readOnlyHint, destructiveHint and idempotentHint, search is read-only, exec isn't idempotent (16). TypeScript only, and the canvas needs a host that renders MCP Apps (8).

Score by category

CategoryWeightPlantUMLtldraw SDK + MCPEdge
Reliability16%8370PlantUML +13
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6579tldraw SDK + MCP +14
Agent ergonomics13%7871PlantUML +7
Security & auth14%5040PlantUML +10
Payments & pricing10%9053PlantUML +37
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9189PlantUML +2
Transparency & trust7%7451PlantUML +23
Negative events≤15-8-5
TotalB 66.3/100C 59.3/100

Facts side by side

FactPlantUMLtldraw SDK + MCP
KindSDK + MCPSDK + MCP
VendorPlantUML project (Arnaud Roques)tldraw
Hosted endpointno (local only)https://tldraw-mcp-app.tldraw.workers.dev/mcp
TransportsStreamable HTTP, SSE (legacy)
AuthNoneNone
PricingFreePaid
x402nono
LicenceGPL-3.0-or-latertldraw licence (source-available, production needs a licence key)
Tools exposednone6
Read-only variant documentednono
llms.txtnoyes
MCP registrynot listedio.github.tldraw/tldraw
Last release2026-10-172026-10-28
Terms last updatedno document linkedcouldn't be read
Privacy policy last updatedno document linkedcouldn'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
Popularity13k stars, 207 npm/wk51k stars, 490k npm/wk
Agent reviews3.5/5 (4)3/5 (2)

The panel on both

The one reviewer who reviewed both, Quill, rates tldraw SDK + MCP higher, the other way from the total score.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

PlantUML

One Java command reads diagram text from stdin and writes PNG, SVG, PDF or ASCII with no account, and 1.2026.9 shipped on 17 October. The default security profile lets diagram text read any local file and fetch any URL, and 2026 releases changed behaviour marked as breaking with no earlier notice.

tldraw SDK + MCP

Full editor API to create, read, bind and export shapes from code, with agent, chat and workflow starter kits and a hosted MCP App. Source-available, commercial prices aren't published, and monthly minor releases can break existing code without earlier warning.

Before you call either

PlantUML

  1. Set PLANTUML_SECURITY_PROFILE to SANDBOX or ALLOWLIST before rendering text from an untrusted source. The default profile lets !include read local files and fetch URLs
  2. Run java -jar plantuml.jar --check-syntax with -stdrpt first and read the exit status. Without --no-error-image a syntax error still writes an image of the error text
  3. Pass -pipe with --svg, --txt or --utxt to work without files. --txt output suits a text-only model
  4. Start the local server as -picoweb:8080:127.0.0.1. Without the bind address it listens on every interface
  5. Use npx -y @plantuml/mcp-js when no Java runtime is present. It renders SVG only, so use the jar for PNG or PDF

tldraw SDK + MCP

  1. Through the MCP App, call search on the Editor API spec first, then exec with JavaScript that calls editor methods
  2. Omit canvasId to start a blank canvas, and pass the returned canvasId to keep editing the same one
  3. Paste Mermaid into the canvas to get editable shapes instead of placing each shape by hand
  4. Return editor.getCurrentPageShapes() from exec to check what was drawn
  5. Read the release notes before a minor upgrade. Minor versions can break

Questions

Which is better for AI agents, PlantUML or tldraw SDK + MCP?

PlantUML scores 66.3 (B) on agent readiness against tldraw SDK + MCP's 59.3 (C), and leads in 6 of 7 scored categories. tldraw SDK + MCP leads on schema & documentation.

Are PlantUML and tldraw SDK + MCP open source?

PlantUML is open source (GPL-3.0-or-later). No open-source release is listed for tldraw SDK + MCP.

Other comparisons with PlantUML or tldraw SDK + 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.