API & MCP

Everything a person can do on Diagram & Flowchart Maker, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Diagram & Flowchart Maker

Type a diagram in a Mermaid-like text syntax – flowcharts (top-down or left-right, node shapes, labelled arrows), sequence diagrams (participants, messages, notes, loop/alt blocks) or indented mind maps – and get an automatically laid-out, accessible SVG with SVG/PNG downloads. Syntax errors are reported with line numbers.

Inputs of Diagram & Flowchart Maker
FieldTypeDefaultDescription
source (required)textarea"flowchart TD\n start([Order received]) --> pay{Paid?}\n pay -->|Yes| pick[PicDiagram text. First line: "flowchart TD" (or LR, BT, RL), "sequenceDiagram" or "mindmap". See the examples.
titletext—Title. Shown above the diagram and used as its accessible name.
pngbooleantrueAlso create a PNG image

Example request

Order flowchart (top-down, shapes, labelled edges, a loop)

curl -X POST https://diagramflowchartmaker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"source":"flowchart TD\n  start([Order received]) --> pay{Paid?}\n  pay -->|Yes| pick[Pick items]\n  pay -->|No| remind[/Send reminder/]\n  remind --> pay\n  pick --> stock{In stock?}\n  stock -->|Yes| ship[[Ship parcel]]\n  stock -->|No| back[(Backorder list)]\n  back -.-> pick\n  ship --> done((Done))","title":"Order handling"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "diagram-flowchart-maker": { "type": "http", "url": "https://diagramflowchartmaker.usefulweb.site/mcp" }
  }
}