Overview of Draw.io MCP Integration Approaches
mainThe drawio-mcp repository provides four distinct ways to integrate draw.io with AI assistants. Choose based on your workflow requirements:
- MCP App Server: Renders diagrams inline as interactive iframes in chat. Best for Claude.ai, Cursor, or any MCP Apps host. Uses the hosted endpoint
https://mcp.draw.io/mcpor can be self-hosted. - MCP Tool Server: Opens diagrams directly in your browser's draw.io editor. Supports XML, CSV, and Mermaid.js. Best for local desktop workflows using Claude Desktop, Cursor, or VS Code.
- Assistant Plugins: Native plugins for Claude Code and Codex CLI. Generates
.drawiofiles and can export to PNG, SVG, or PDF using the local draw.io Desktop CLI. Best for local development. - Project Instructions: A zero-install method for Claude.ai Projects that uses Python code execution to generate draw.io URLs. Best for quick setup without MCP.