API & MCP
Everything a person can do on Sketchboard draw.io to SVG, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://sketchboarddrawiotosvg.usefulweb.app/api/v1/calculate– run Sketchboard draw.io to SVGGET https://sketchboarddrawiotosvg.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Sketchboard draw.io to SVG
Reads a .drawio / diagrams.net XML file (plain or compressed pages) or an Excalidraw .excalidraw file, maps shapes, connectors, arrowheads, labels and styles to Sketchboard, and returns a standalone SVG plus a Sketchboard board you can keep editing. It lists what was mapped and what was drawn as a plain shape.
| Field | Type | Default | Description |
|---|---|---|---|
diagram | textarea | — | draw.io or Excalidraw file content. Paste the XML of a .drawio file (or the JSON of an .excalidraw file), or upload the file below. |
diagramFile | file | — | File (optional). Used instead of the pasted text when given. |
page | integer | 1 | Page number (files with several pages) |
style | select (clean, sketchy, file) | "clean" | Drawing style |
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://sketchboarddrawiotosvg.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
sketchboard_drawio_to_svg - Local stdio connector:
node src/mcp-stdio.ts --tool=sketchboard-drawio-to-svg
{
"mcpServers": {
"sketchboard-drawio-to-svg": { "type": "http", "url": "https://sketchboarddrawiotosvg.usefulweb.app/mcp" }
}
}