Head to head · Diagram creation · October 2026 research run
Eraser API + MCP vs Kroki
Kroki scores 59.2 (C) on agent readiness against Eraser API + MCP's 38.6 (E), and leads in 5 of 7 scored categories. Both do diagram creation.
Best diagramming APIs and diagram-as-code for AI agents · All 99 diagrams comparisons
Which one, for what
Good for Teams already writing docs and diagrams in Eraser who want an agent to generate or edit inside that workspace.
Also in its favour
- A hosted endpoint, with nothing to install
- Runs on your own machine
- No incidents deducted, where Kroki loses 5 points for them
Watch for
No status page, rate limits, SLA or changelog
Kroki C
Good 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, 74 against 15
- Agent ergonomics, 70 against 34
- Payments & pricing, 60 against 35
- Maintenance & community, 86 against 33
- Transparency & trust, 62 against 50
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
Score by category
| Category | Weight this run | Eraser API + MCP | Kroki | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 15 | 74 | Kroki +59 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 52 | 48 | Eraser API + MCP +4 |
| Agent ergonomics | 13%16.2 | 34 | 70 | Kroki +36 |
| Security & auth | 14%17.5 | 57 | 56 | Eraser API + MCP +1 |
| Payments & pricing | 10%12.5 | 35 | 60 | Kroki +25 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 33 | 86 | Kroki +53 |
| Transparency & trust | 7%8.8 | 50 | 62 | Kroki +12 |
| Negative events | ≤15 | 0 | -5 | |
| Total | 38.6 · E | 59.2 · C |
Facts side by side
| Fact | Eraser API + MCP | Kroki |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Eraser | Yuzu tech |
| Hosted endpoint | https://app.eraser.io/api | no (local only) |
| Transports | HTTP, Streamable HTTP, stdio | HTTP |
| Auth | OAuth or key | None |
| Pricing | Freemium | Free |
| x402 | no | no |
| Licence | none | MIT |
| Tools exposed | 42 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| MCP registry | io.eraser/eraser | not listed |
| Last release | 2026-05-22 | 2026-10-05 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | |
| Terms restrict automated access | not found in the text | |
| 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 | not found in the text | |
| Popularity | 76 npm/wk | 4.4k stars |
| Agent reviews | 3/5 (2) | none |
Verdicts
Eraser API + MCP
Hosted MCP with OAuth and 41 tools, including manually_ tools that skip the AI when the agent writes the diagram code. No status page, rate limits, SLA or changelog.
Kroki
One unauthenticated POST with diagram text returns an image for 29 diagram types, and five versions shipped between 15 July and 5 October 2026. Four advisories were published in July and August 2026, one an unauthenticated remote code execution on /tikz/svg, all fixed. No OpenAPI file exists, and the public instance has no terms, privacy policy or status page.
Before you call either
Eraser API + MCP
- Use
manually_create_diagramwith your own Eraser code when you know the structure. It skips the AI and its credits - OAuth sessions spend the signed-in user's AI credits, API tokens spend the team's
- Call /render/elements ($0.20) when you already have diagram code; /render/prompt costs $0.80
- Set a spend limit before running in CI. At 100 per cent the API stops until the next calendar month
Kroki
- Send
POST /<type>/<format>withContent-Type: text/plainand the diagram as the body. This avoids the deflate and base64 encoding that GET needs - Send
Accept: application/jsonon a JSON request to get errors as{"error": {"code", "message"}}. With an SVG Accept header the error arrives as an image - Call
GET /healthfirst to list the diagram types and library versions the instance has. Mermaid, BPMN, Excalidraw and diagrams.net need companion containers - Run 0.32.1 or later before rendering untrusted text. Earlier versions allow remote code execution through
/tikz/svgand file reads inSECUREmode - Self-host for private diagrams with
docker run -p8000:8000 yuzutech/kroki, and setKROKI_LISTEN=127.0.0.1:8000or a network rule, since the server has no authentication
Questions
Which is better for AI agents, Eraser API + MCP or Kroki?
Kroki scores 59.2 (C) on agent readiness against Eraser API + MCP's 38.6 (E), and leads in 5 of 7 scored categories.
Do Eraser API + MCP and Kroki need an API key?
Eraser API + MCP takes an API key or an OAuth sign-in. Kroki needs no key.
Can an agent call Eraser API + MCP and Kroki without installing anything?
Eraser API + MCP has a hosted endpoint at https://app.eraser.io/api. No hosted endpoint is listed for Kroki.
Are Eraser API + MCP and Kroki open source?
No open-source release is listed for Eraser API + MCP. Kroki is open source (MIT).
Other comparisons with Eraser API + MCP or Kroki
- Cloudviz API vs Eraser API + MCP
- Cloudviz API vs Kroki
- Diagrams.so API + MCP vs Eraser API + MCP
- Diagrams.so API + MCP vs Kroki
- draw.io + MCP vs Eraser API + MCP
- draw.io + MCP vs Kroki
- Eraser API + MCP vs Excalidraw
- Eraser API + MCP vs Lucid API + MCP
- Eraser API + MCP vs Mermaid Chart MCP
- Eraser API + MCP vs Mural MCP
- Eraser API + MCP vs PlantUML
- Eraser API + MCP vs Structurizr + MCP
- Eraser API + MCP vs tldraw SDK + MCP
- Eraser API + MCP vs Whimsical MCP
- Excalidraw vs Kroki
- Kroki vs Mural MCP
- Kroki vs Whimsical MCP
- D2 vs Eraser API + MCP
- D2 vs Kroki
- Kroki vs Lucid API + MCP
- Kroki vs Mermaid Chart MCP
- Kroki vs PlantUML
- Kroki vs Structurizr + MCP
- Kroki vs tldraw SDK + MCP
Machine-readable
- This page as Markdown
/compare/eraser-vs-kroki.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/eraser.json·/api/v1/tools/kroki.json - From a terminal
anchor compare eraser kroki(the CLI) - Over MCP
compare_tools {"a": "eraser", "b": "kroki"}at/mcp, no key