Skip to content

Kroki diagram to SVG

Render a text diagram (Mermaid, PlantUML, C4, Graphviz DOT, D2, BPMN, DBML, Vega-Lite, WaveDrom, Excalidraw and more) to SVG on the free kroki.io service. Needs diagram type and source.

Inputs

2 required
Diagram type
Diagram language, e.g. 'mermaid'Required · diagram_type
Source
Diagram source text, e.g. 'graph TD; Lead --> Customer;'Required · source

Pricing

Price
Free, no charge per call
Billing
No charge per call. A workspace is still needed so your agent can call it.
License
Kroki is MIT-licensed open source, offered as a free service at kroki.io

Call

Your agent reads the schema and the price with inspect_tool before it runs the tool.

MCP call
cURL command
TypeScript
Tool ID

Alternatives

GitHub, npm & PyPI

Connect your agent to 3,500+ tools for free

Sign in with Google or GitHub. No card required.