
Draw Flow Mcp Server
Brings draw.io diagram generation into Claude and Cursor with real-time browser preview. Spins up an embedded HTTP server on port 6002 that serves the draw.io UI and syncs state as you work. You get five tools: start_session opens the browser, create_new_diagram and edit_diagram handle XML generation and cell-level edits by ID, get_diagram pulls current state, and export_diagram saves to .drawio files. Includes version history with visual thumbnails for rolling back changes. Self-contained with no external dependencies, though it loads the draw.io UI from embed.diagrams.net by default. You can point DRAWIO_BASE_URL at a private instance if you need to keep everything internal.
- tools
- 5
- transport
- STDIO
- last updated
- Jan 11, 2026
Tools
5 toolsPublic tool metadata for what this MCP can expose to an agent.
start_sessionOpens browser with real-time diagram preview
Opens browser with real-time diagram preview
No parameter schema in public metadata yet.
create_new_diagramCreate a new diagram from XML (requires `xml` argument)
Create a new diagram from XML (requires `xml` argument)
No parameter schema in public metadata yet.
edit_diagramEdit diagram by ID-based operations (update/add/delete cells)
Edit diagram by ID-based operations (update/add/delete cells)
No parameter schema in public metadata yet.
get_diagramGet the current diagram XML
Get the current diagram XML
No parameter schema in public metadata yet.
export_diagramSave diagram to a `.drawio` file
Save diagram to a `.drawio` file
No parameter schema in public metadata yet.
Sponsors
Readme
Next AI Draw.io MCP Server
MCP (Model Context Protocol) server that enables AI agents like Claude Desktop and Cursor to generate and edit draw.io diagrams with real-time browser preview.
Self-contained - includes an embedded HTTP server, no external dependencies required.
Quick Start
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}
Installation
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}
VS Code
Add to your VS Code settings (.vscode/mcp.json in workspace or user settings):
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}
Cursor
Add to Cursor MCP config (~/.cursor/mcp.json):
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@next-ai-drawio/mcp-server@latest"]
}
}
}
Cline (VS Code Extension)
Details
- Repository
- github.com/hj1003862396/draw-flow-mcp-server
- Categories
- Web & Browser Automation, Design & Creative
- Package
@io.github.hj1003862396/draw-flow-mcp-server- Transport
- STDIO
- Registry
- MCP registry, active