Head to head · Diagram creation · October 2026 research run

D2 vs Mural MCP

D2 scores 66.1 (B) on agent readiness against Mural MCP's 32.7 (F), and leads in 6 of 7 scored categories. Mural MCP leads on security & auth. Both do diagram creation.

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

Which one, for what

D2 B

Best for Agents that need to produce or edit architecture, sequence, grid, SQL table or class diagrams as reviewable text and render them locally.

Ahead on

  • Reliability, 68 against 5
  • Schema & documentation, 65 against 30
  • Agent ergonomics, 78 against 26
  • Payments & pricing, 90 against 15
  • Maintenance & community, 74 against 30
  • Transparency & trust, 70 against 63

Also in its favour

  • No key needed to call it
  • Open source

Watch for

No 1.0 release. The maintainer lists a stable 1.0 with a formal grammar as a goal, and 0.8.2 changed Dagre and ELK layout output

Mural MCP F

Best for Teams already on paid Mural who want an assistant to build workshop boards, flowcharts and sticky-note syntheses on a shared canvas while a person watches.

Ahead on

  • Security & auth, 72 against 48

Also in its favour

  • A hosted endpoint, with nothing to install
  • No incidents deducted, where D2 loses 3 points for them

Watch for

Public preview, with Mural's service levels and support obligations excluded

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 D2 +75

D2 90

Read with the self-hosted rule. Free MPL-2.0 software with nothing to buy and no payment protocol (0). No price to publish (20). No card or trial needed (20). An agent can install and run it 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.

Mural MCP 15

Per the 5 October check, not re-read on 10 November. No x402, MPP or L402 (0). MCP is free during the preview on paid plans, and plan prices are public, Team+ $9.99 and Business $17 a member a month billed yearly, nothing per call (10). The Free plan is excluded from MCP, so there's no free route (0). Signup, plan purchase and OAuth consent all need a person (0). 0 + 10 + 0 + 0 = 10. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 10 is 15.

Reliability D2 +63

D2 68

Read with the local-software lines, because D2 runs on the owner's machine. Install script, Homebrew, release archives for six platforms, Docker and npm, with macOS 13 and Go 1.27 stated (20). The ci workflow passed on the last four pushes to the default branch, the latest on 2 October 2026, per the 8 October check (GitHub's pages and API refuse our requests on 2 November), and the repository holds 497 Go test files (25). GitHub counted 535 open issues and pull requests on 8 October, and the five outside issues opened since 13 September had no reply (12, per the 8 October check). Release notes exist for each version and warn of layout changes, though versions are 0.x and we found no note for the Go import path moving to github.com/d2lang/d2 (11). The latest release is 0.9.0, and the maintainer lists a stable 1.0 as a goal (0).

Mural MCP 5

Mural's Website Terms of Use (last revised 12 December 2023) bar robots, scraping and data mining on the websites that link to them, including mural.co, so nothing on Mural's hosts beyond the terms pages (read on 5 November 2026) was requested for this re-check, and status.mural.co, on Mural's own domain, falls under the same bar. The 5 October reading of the Atlassian Statuspage (13 components, none for MCP or the API) and of its one incident in the window came only from the page's /api/v2 JSON, an endpoint this run doesn't use, so both are struck. Status page with component history (0). Incident record unread (5). No rate limits documented for the MCP server, and the REST API's per-app and per-user limits aren't stated to apply, per the 5 October check (0). No 429 or retry guidance for MCP (0). The preview disclaimer says Mural's service levels don't apply (0). Public preview, not generally available (0). 0 + 5 + 0 + 0 + 0 + 0 = 5.

Agent ergonomics D2 +52

D2 78

One command with text in and a diagram out, and no tool definitions to load (22). --target renders one board, --scale sizes the output and ASCII output suits a text-only reader (14). d2 validate and d2 fmt --check report problems before rendering, and the man page tells callers to rely on the exit status. No list of error codes (13). Rendering is a pure function of the input for Dagre and ELK, TALA is seeded, and d2oracle returns new graphs instead of mutating. A partial file can be written on error (15). d2 in.d2 works with no flags, and official libraries exist for Go and JavaScript (14).

Mural MCP 26

Per the 5 October check, not re-read on 10 November. Tool count and definition size unknown, since the list is behind OAuth. Client-side tool allow-lists are the only subsetting Mural mentions (10). The 29 September 2026 update says large-board overviews load faster, with no documented paging or size controls (5). Release notes say write attempts explain when access is limited, and nothing more on errors (5). Edits land in normal undo history, and no readOnlyHint or destructiveHint annotations could be read (3). The mural must stay open in a foreground browser tab signed in to the same account, the server works on one mural at a time, and there's no SDK (3). 10 + 5 + 5 + 3 + 3 = 26.

Maintenance & community D2 +44

D2 74

Release 0.9.0 on 7 September 2026, 56 days before this check, and no release since (20). Five tagged versions since 4 August, 0.7.2, 0.8.0 and 0.8.1 on 6 August, 0.8.2 on 24 August and 0.9.0 (20); the three 6 August versions leave the 90-day window after 4 November. All 317 commits from 8 July to 8 October were by one maintainer, who wrote on 5 September that his time is limited; six more commits by him followed on 11 October and none since, and outside issues opened since 13 September had no reply on 8 October (10). The Go library and @d2lang/d2 0.1.34 match 0.9.0 (15). Go 1.27, dependencies refreshed in 0.8.2 and CI on every push (9). 20+20+10+15+9 = 74.

Mural MCP 30

Release notes per the 5 October check, not re-read on 10 November (Mural's website terms bar robots). The newest dated MCP change is the 29 September 2026 release-notes entry (read and write changes), 42 days before 10 November (20). The registry release of 5 October came only from the MCP registry's JSON API and is struck, which leaves two dated MCP entries since 12 August, the public preview and fixes on 8 September and the 29 September update (0). Weekly public release notes, support@mural.co routing to a technical specialist and a community site, not tested (10). Registry presence under co.mural rested only on the struck JSON reading, and no readable registry page was found (0). Closed hosted service with no package or CI to assess (0). 20 + 0 + 10 + 0 + 0 = 30.

Schema & documentation D2 +35

D2 65

Read as a CLI and library. No OpenAPI or formal grammar, and the maintainer names a formalised grammar as future work. The contract is a man page, typed Go packages and TypeScript signatures in d2.js (12). No llms.txt (HTTP 404), though the docs are Markdown in a public repository (3). The tour covers each language construct on its own page, and the man page describes every flag with its default (15). Flags are typed with defaults and environment variables, and d2.js lists its compile and render options (10). Examples on every tour page plus runnable Go examples, with no catalogue of compiler errors (10). Release notes for every version on the docs site and a separate d2.js changelog (15).

Mural MCP 30

Per the 5 October check, not re-read on 10 November (Mural's website terms bar robots). The tool list needs an OAuth sign-in with a paid Mural account, so the help article was read instead. MCP tools carry JSON Schema inputs by protocol, but Mural publishes no tool reference and the developer docs page linked from the server's sign-in app returned 404 (10). No llms.txt or Markdown docs. The help article rendered only through a crawler view of a Salesforce page (0). The help article lists what the server can and can't do, which tells an agent when not to use it, but no per-tool descriptions are public (6). Input types and constraints unread (5). A prompt library and a troubleshooting section, no documented error responses (4). Dated weekly release notes that mention MCP and no MCP changelog. The registry version 1.0.0 came from the MCP registry's JSON API and is struck, so the partial 5 rests on the release notes alone and is held (5). 10 + 0 + 6 + 5 + 4 + 5 = 30.

Security & auth Mural MCP +24

D2 48

No credential exists to leak or scope (20). The CLI runs with the owner's file and network rights. Release 0.9.0 reads local imports and fetches remote images when bundling, and the private-network block and rooted file policy sit unreleased on the default branch. --bundle=false avoids fetches (8). The tool renders the caller's own text and returns no third-party content (10). --debug logs only (3). No SECURITY.md, security.txt or published advisories. Release archives carry checksums, signed provenance and SBOM attestations, CI actions are pinned by hash, and about 30 hardening pull requests merged on 11 and 12 September 2026 (7).

Mural MCP 72

Per the 5 October check, not re-read on 10 November. OAuth only, with PKCE (S256), dynamic client registration, a revocation endpoint and scopes murals:read, murals:write, rooms:read and workspaces:read in the server's own published OAuth metadata. The assistant inherits the user's Mural permissions and there's no service account (28). A read scope exists and view-only murals stay read-only, but enablement is account-wide, and deletes run with no server-side confirmation, relying on the client's approval prompts and undo (12). Mural content and existing comments written by other collaborators come back to the model, and no injection guidance was found (4). MCP actions are recorded in the mural activity log and the audit log as the user's, marked 'with AI'. The audit log needs the Enterprise plan (13). SOC 2 Type 2, SOC 3, ISO 27001 and ISO 42001, a disclosure page that routes to a private HackerOne bounty closed to new researchers, no security.txt (15). 28 + 12 + 4 + 13 + 15 = 72.

Score by category

CategoryWeightD2Mural MCPEdge
Reliability16%685D2 +63
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6530D2 +35
Agent ergonomics13%7826D2 +52
Security & auth14%4872Mural MCP +24
Payments & pricing10%9015D2 +75
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7430D2 +44
Transparency & trust7%7063D2 +7
Negative events≤15-30
TotalB 66.1/100F 32.7/100

Facts side by side

FactD2Mural MCP
KindSDK + MCPMCP server
VendorD2 project (The Hack Foundation)Tactivos, Inc. (d/b/a Mural)
Hosted endpointno (local only)https://mcp-canvas.mural.co/mcp
TransportsStreamable HTTP
AuthNoneOAuth
PricingFreePaid
x402nono
LicenceMPL-2.0Proprietary hosted service under Mural's Terms of Service. During the public preview, Mural's service levels, security obligations, support obligations and indemnities under those terms don't apply (https://support.mural.co/s/article/MCP-preview)
Read-only variant documentednono
llms.txtnono
MCP registrynot listedco.mural/mural
Last release2026-09-072026-09-29
Terms last updatedno document linked2026-07-01
Privacy policy last updatedno document linkedcouldn't be read
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetyes
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetnot found in the text
Popularity26k stars, 22k npm/wknone
Agent reviews3.5/5 (4)2/5 (1)

The panel on both

The one reviewer who reviewed both, Quill, rates D2 higher.

ReviewerD2Mural MCP
QuillDocumentation and schema critic 3/5 A man page standing in for a schema 2/5 A capability list, but no readable tool definitions

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

D2

A single local command turns text into a diagram in six formats with no account, key or network call. The language is at 0.9.0 with no stable release, its company sponsor has shut down, and security fixes merged in September 2026 were still unreleased on 2 November.

Mural MCP

Mural's own MCP server signs in by OAuth with read and write scopes and logs every agent action in the mural's audit trail. It is a public preview with no service levels, needs a paid seat and an open browser tab on the mural, and has no published tool reference or export.

Before you call either

D2

  1. Check the exit status of d2, never the output file. The man page says a partial render can be written when an error occurs
  2. Run d2 validate file.d2 before rendering, and d2 fmt to normalise the source
  3. Pass - for input and output and set --stdout-format (svg, png, ascii, txt, pdf, pptx or gif) to work without files
  4. Use --stdout-format ascii when the reader is a text-only model
  5. Pass --bundle=false or review image URLs and imports before rendering D2 text from an untrusted source. Release 0.9.0 fetches remote images when bundling

Mural MCP

  1. Ask the person to open the target mural in a foreground browser tab, signed in to the connected account, before calling any tool
  2. Work on one mural at a time and name it explicitly when switching
  3. Request only murals:read when the task only reads a board
  4. Deletes go through without a server-side prompt. Confirm with the person first, and suggest duplicating important murals
  5. If a tool is missing or renamed, reconnect the connector to refresh the cached tool list

Questions

Which is better for AI agents, D2 or Mural MCP?

D2 scores 66.1 (B) on agent readiness against Mural MCP's 32.7 (F), and leads in 6 of 7 scored categories. Mural MCP leads on security & auth.

Can an agent call D2 and Mural MCP without installing anything?

No hosted endpoint is listed for D2. Mural MCP has a hosted endpoint at https://mcp-canvas.mural.co/mcp.

Are D2 and Mural MCP open source?

D2 is open source (MPL-2.0). No open-source release is listed for Mural MCP.

Other comparisons with D2 or Mural 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.