| name | drawio |
| description | Generates and edits diagrams using draw.io via local files or the MCP service. |
| compatibility | Gemini CLI |
| metadata | {"version":0.1} |
draw.io Diagram Skill
This skill enables the creation and editing of diagrams using the powerful draw.io editor. It can operate in two modes.
1. Local File Mode (Default)
This is the default mode of operation. You provide a description of a diagram (in natural language, Mermaid syntax, or even CSV), and the skill will generate a .drawio file.
If you have the draw.io Desktop application installed, the skill can also use its command-line interface to export the diagram to other formats like PNG, SVG, or PDF.
Usage
"Create a flowchart for a coffee making process."
{baseDir}/scripts/generate.sh --prompt "a description..." --output "diagram.drawio.png"
2. ⭐ Advanced Mode: MCP App Server Integration
For a much more integrated experience with interactive diagrams directly inside your chat, you can configure the official draw.io MCP server.
This is a one-time setup in your AI assistant's settings (e.g., Gemini Advanced Settings or the Claude.ai web UI).
How to set it up:
- Go to your AI assistant's settings for tools or extensions.
- Find the section for adding new MCP (Model Context Protocol) servers.
- Add the following URL:
https://mcp.draw.io/mcp
Benefits
- Inline Diagrams: Diagrams will appear directly in the conversation, not just as files.
- Interactive: You can pan, zoom, and even edit the diagrams from the chat.
- No Installation: You don't need the draw.io desktop app for this to work.
By setting this up, you are essentially giving the assistant a powerful, persistent tool for all future diagramming tasks.