loading…
Search for a command to run...
loading…
Provides Draw.io services to MCP Clients
Provides Draw.io services to MCP Clients
Let's do some Vibe Diagramming with the most wide-spread diagramming tool called Draw.io (Diagrams.net).
Discord channel Build project Verified on MseeP Version
The Draw.io MCP server brings Draw.io diagramming capabilities to AI agents. It provides MCP tools that can create, read, update, and delete diagram elements - letting AI assistants build architectural diagrams, flowcharts, and visual documentation automatically.
Two ways to use:
No additional requirements - runs out of the box with --editor flag.
Add the server to your MCP client configuration:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["-y", "drawio-mcp-server", "--editor"]
}
}
}
claude mcp add-json drawio '{"type":"stdio","command":"npx","args":["-y","drawio-mcp-server","--editor"]}'
Add to ~/.config/zed/settings.json:
{
"context_servers": {
"drawio": {
"command": "npx",
"args": ["-y", "drawio-mcp-server", "--editor"],
"env": {}
}
}
}
Edit ~/.codex/config.toml:
[mcp_servers.drawio]
command = "npx"
args = ["-y", "drawio-mcp-server", "--editor"]
Add to opencode.json in your project root or ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"drawio": {
"type": "local",
"command": ["npx", "-y", "drawio-mcp-server", "--editor"],
"enabled": true
}
}
}
For other MCP clients and detailed configuration (including pnpm options), see Configuration.
After restarting your MCP host, open: http://localhost:3000/
Example prompts you can try:
"Create an event-driven architecture diagram showing a message queue with producers, consumers, and three backend services"
"Draw a CRUD API diagram with a database, API gateway, and four microservices with their endpoints"
"Add a new layer called 'Background' and move all decorative elements to it, then create a new layer for annotations"
Your AI assistant can now control the diagram using MCP tools.
The server provides MCP tools for:
mxgraph.gcp2.cloud_run or mxgraph.cisco19.router without hand-curated catalogsSee Tools Reference for the complete list of available tools.
The server runs as part of your MCP host. Detailed configuration for all supported clients (Claude Desktop, Claude Code, Zed, Codex, oterm) including npm and pnpm options is available in Configuration.
Instead of the built-in editor, you can use the browser extension to connect to Draw.io running in your browser. This works with or without the --editor flag.
Configuration without --editor:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["-y", "drawio-mcp-server"]
}
}
}
See the extension documentation for more details.
Configuration - CLI flags and advanced options
Tools Reference - Complete MCP tools documentation
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"drawio-mcp-server": {
"command": "npx",
"args": [
"-y",
"drawio-mcp-server"
]
}
}
}