Loading...
Loading...
Generate and edit draw.io diagrams in XML format with proper font settings, arrow placement, and Japanese text support. Use when creating flowcharts, architecture diagrams, sequence diagrams, or any visual diagrams in .drawio format. Handles font family settings, arrow layering, text sizing, and PNG export validation.
npx skill4agent add ekusiadadus/draw-mcp draw-iodefaultFontFamilymxGraphModelfontFamily=FontName;fontSize=18page="0"<!-- In mxGraphModel -->
<mxGraphModel defaultFontFamily="Noto Sans JP" page="0" ...>
<!-- In EVERY text element's style -->
<mxCell style="text;fontFamily=Noto Sans JP;fontSize=18;..." /><root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- ARROWS FIRST (renders at back) -->
<mxCell id="arrow1" edge="1" ... />
<!-- BOXES AFTER (renders in front) -->
<mxCell id="box1" vertex="1" ... />
</root><!-- Arrow at Y=220 -->
<mxCell id="arrow">
<mxGeometry>
<mxPoint y="220" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<!-- Label at Y=180 (40px above arrow) - CORRECT -->
<mxCell id="label" value="Process">
<mxGeometry y="180" width="60" height="20" />
</mxCell><!-- 8 Japanese characters × 35px = 280px minimum -->
<mxCell id="title" value="シンプルなフロー図">
<mxGeometry width="300" height="40" />
</mxCell># macOS
drawio -x -f png -s 2 -t -o output.png input.drawio
open output.png
# Linux
drawio -x -f png -s 2 -t -o output.png input.drawio
xdg-open output.png