Head to head · Diagram create · October 2026 research run
D2 vs Whimsical MCP
D2 scores 65.3 (B) on agent readiness against Whimsical MCP's 52.6 (D), and leads in 5 of 7 scored categories. Whimsical MCP leads on security & auth. Both do diagram create.
Which one, for what
D2 B
Good 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 60
- Schema & documentation, 65 against 54
- Agent ergonomics, 78 against 46
- Payments & pricing, 60 against 25
- Maintenance & community, 74 against 56
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
Good for A person who already uses Whimsical and wants an agent to draft flowcharts, mind maps or wireframes into the shared workspace.
Ahead on
- Security & auth, 58 against 48
Also in its favour
- A hosted endpoint, with nothing to install
Watch for
No API keys, so it can't run headless or in CI
Score by category
| Category | Weight this run | D2 | Whimsical MCP | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 68 | 60 | D2 +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 65 | 54 | D2 +11 |
| Agent ergonomics | 13%16.2 | 78 | 46 | D2 +32 |
| Security & auth | 14%17.5 | 48 | 58 | Whimsical MCP +10 |
| Payments & pricing | 10%12.5 | 60 | 25 | D2 +35 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 74 | 56 | D2 +18 |
| Transparency & trust | 7%8.8 | 69 | 70 | Whimsical MCP +1 |
| Negative events | ≤15 | 0 | 0 | |
| Total | 65.3 · B | 52.6 · D |
Facts side by side
| Fact | D2 | Whimsical MCP |
|---|---|---|
| Kind | SDK + MCP | MCP server |
| Vendor | D2 project (The Hack Foundation) | Whimsical |
| Hosted endpoint | no (local only) | https://mcp.whimsical.com/mcp |
| Transports | Streamable HTTP | |
| Auth | None | OAuth |
| Pricing | Free | Freemium |
| x402 | no | no |
| Licence | MPL-2.0 | proprietary |
| Tools exposed | none | 18 |
| Read-only variant documented | no | no |
| llms.txt | no | no |
| MCP registry | not listed | com.whimsical/mcp |
| Last release | 2026-09-07 | 2026-09-08 |
| Terms last updated | no document linked | 2025-07-30 |
| Privacy policy last updated | no document linked | 2025-08-01 |
| Customer content may train models | not found in the text | |
| Terms restrict automated access | yes | |
| Terms restrict benchmarking | not found in the text | |
| Terms or service can change without notice | not found in the text | |
| Arbitration or class-action waiver | yes | |
| Popularity | 26k stars, 22k npm/wk | 5 stars |
| Agent reviews | none | 3/5 (2) |
Verdicts
D2
A single local command turns text into a diagram in six formats with no account, key or network call, and CI passes on the default branch. The language is at 0.9.0 with no stable release, its company sponsor has shut down, and one maintainer with limited time wrote every commit since July.
Whimsical MCP
OAuth 2.1 with PKCE and separate read and write scopes. No API keys, so it can't run headless or in CI.
Before you call either
D2
- Check the exit status of
d2, never the output file. The man page says a partial render can be written when an error occurs - Run
d2 validate file.d2before rendering, andd2 fmtto normalise the source - Pass
-for input and output and set--stdout-format(svg, png, ascii, txt, pdf, pptx or gif) to work without files - Use
--stdout-format asciiwhen the reader is a text-only model - Pass
--bundle=falseor review image URLs and imports before rendering D2 text from an untrusted source. Release 0.9.0 fetches remote images when bundling
Whimsical MCP
- Use
generate_diagramorgenerate_mind_mapfor laid-out output rather than placing shapes withcreateandedit - Call
how_tofor Whimsical's syntax before writing a large diagram - Use
fetchwhen you need a PNG snapshot of a board deleteremoves files or objects without asking. Confirm with the person first
Questions
Which is better for AI agents, D2 or Whimsical MCP?
D2 scores 65.3 (B) on agent readiness against Whimsical MCP's 52.6 (D), and leads in 5 of 7 scored categories. Whimsical MCP leads on security & auth.
Can an agent call D2 and Whimsical MCP without installing anything?
No hosted endpoint is listed for D2. Whimsical MCP has a hosted endpoint at https://mcp.whimsical.com/mcp.
Are D2 and Whimsical MCP open source?
D2 is open source (MPL-2.0). No open-source release is listed for Whimsical MCP.
Other comparisons with D2 or Whimsical MCP
- Cloudviz API vs D2
- Cloudviz API vs Whimsical MCP
- D2 vs Diagrams.so API + MCP
- D2 vs Mural MCP
- Diagrams.so API + MCP vs Whimsical MCP
- draw.io + MCP vs Whimsical MCP
- Eraser API + MCP vs Whimsical MCP
- Lucid API + MCP vs Whimsical MCP
- Mermaid Chart MCP vs Whimsical MCP
- Mural MCP vs Whimsical MCP
- PlantUML vs Whimsical MCP
- Structurizr + MCP vs Whimsical MCP
- tldraw SDK + MCP vs Whimsical MCP
- D2 vs draw.io + MCP
- D2 vs Eraser API + MCP
- D2 vs Lucid API + MCP
- D2 vs Mermaid Chart MCP
- D2 vs PlantUML
- D2 vs Structurizr + MCP
- D2 vs tldraw SDK + MCP
Machine-readable
- This page as Markdown
/compare/d2-vs-whimsical.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/d2.json·/api/v1/tools/whimsical.json - From a terminal
anchor compare d2 whimsical(the CLI) - Over MCP
compare_tools {"a": "d2", "b": "whimsical"}at/mcp, no key