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
POST https://diagramflowchartmaker.usefulweb.site/api/v1/calculate– run Diagram & Flowchart MakerGET https://diagramflowchartmaker.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
source (required) | textarea | "flowchart TD\n start([Order received]) --> pay{Paid?}\n pay -->|Yes| pick[Pic | Diagram text. First line: "flowchart TD" (or LR, BT, RL), "sequenceDiagram" or "mindmap". See the examples. |
title | text | — | Title. Shown above the diagram and used as its accessible name. |
png | boolean | true | Also 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)
- Streamable HTTP endpoint:
https://diagramflowchartmaker.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
diagram_flowchart_maker - Local stdio connector:
node src/mcp-stdio.ts --tool=diagram-flowchart-maker
{
"mcpServers": {
"diagram-flowchart-maker": { "type": "http", "url": "https://diagramflowchartmaker.usefulweb.site/mcp" }
}
}