The Draw.io tool acts as a Model Context Protocol (MCP) server, allowing AI assistants like Claude to directly interact with and control Draw.io. It facilitates the creation of new diagram files, the addition of various shapes (rectangles, ellipses, clouds, etc.) and connectors, and the customization of element properties such as colors, positions, and sizes. A standout feature is its multi-line text support for shape labels, ideal for complex diagrams like class hierarchies. The server also offers intelligent and secure path handling, ensuring all generated diagrams are conveniently saved to the user's Desktop by default, with automatic cross-platform path translation for seamless workflow.
Key Features
01Create new Draw.io diagram files and add a variety of shapes and connectors.
02Supports multi-line text within shape labels using `\n` for detailed content.
03Customize colors, positions, and sizes of diagram elements.
04Intelligent path resolution and automatic cross-platform path translation for saving diagrams.
05Provides tools to list shapes and read the raw XML content of existing diagrams.
060 GitHub stars
Use Cases
01Create flowcharts, architecture diagrams, and other visual representations directly from a conversation with an AI assistant.
02Generate detailed class diagrams for software development, leveraging multi-line text for attributes and methods.
03Quickly prototype and visualize system designs without manually opening and manipulating a diagram editor.