freshcrate
Skin:/
Home > MCP Servers > drawio-mcp-server

drawio-mcp-server

Draw.io Model Context Protocol (MCP) Server

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

Draw.io Model Context Protocol (MCP) Server

README

Draw.io MCP server

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

Key Highlights

  • Import and export diagrams from/to XML, SVG (with embedded XML), or PNG (with embedded XML) v2.0.0
  • Edge geometry control with waypoints and automatic self-connector routing v2.0.0
  • Parent-child relationships for nested shapes and grouping v2.0.0
  • Unified Server and Extension in the same mono-repo v2.0.0
  • Built-in Draw.io editor - no browser extension required v1.8.0
  • MCP server that lets AI agents control Draw.io diagrams
  • Programmatic diagram creation, inspection, and modification via MCP tools
  • Layer management for complex diagrams
  • Works with any MCP client (Claude Desktop, Claude Code, Zed, Codex, etc.)

Introduction

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:

  1. Built-in editor - Server hosts Draw.io directly, accessible in your browser
  2. Browser extension - Connect to Draw.io running in your browser via extension

Requirements

  • Node.js (v20 or higher) - Runtime environment for the MCP server
  • MCP client - Claude Desktop, Claude Code, Zed, Codex, OpenCode, or any MCP-compatible host

For Built-in Editor

No additional requirements - runs out of the box with --editor flag.

For Browser Extension

Optional

  • pnpm - Preferred package manager (npm works fine too)

Quick Start

1. Configure your MCP host

Add the server to your MCP client configuration:

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["-y", "drawio-mcp-server", "--editor"]
    }
  }
}
Claude Code
claude mcp add-json drawio '{"type":"stdio","command":"npx","args":["-y","drawio-mcp-server","--editor"]}'
Zed

Add to ~/.config/zed/settings.json:

{
  "context_servers": {
    "drawio": {
      "command": "npx",
      "args": ["-y", "drawio-mcp-server", "--editor"],
      "env": {}
    }
  }
}
Codex

Edit ~/.codex/config.toml:

[mcp_servers.drawio]
command = "npx"
args = ["-y", "drawio-mcp-server", "--editor"]
OpenCode

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.

2. Open the editor

After restarting your MCP host, open: http://localhost:3000/

3. Start diagramming

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.

Features

The server provides MCP tools for:

  • Diagram inspection - read shapes, layers, and cell properties
  • Diagram modification - add/edit/delete shapes, edges, and labels
  • Layer management - create, switch, and organize layers

See Tools Reference for the complete list of available tools.

Installation

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.

Alternative: Browser Extension

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.

  1. Open Draw.io in your browser
  2. Install the Draw.io MCP Browser Extension:
  3. Ensure the extension is connected (green signal overlay on icon)

Configuration without --editor:

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["-y", "drawio-mcp-server"]
    }
  }
}

See the extension documentation for more details.

Related Resources

Configuration - CLI flags and advanced options

Tools Reference - Complete MCP tools documentation

Troubleshooting

Prompt examples

Contributing

Architecture

Development

Star History

Star History Chart

Assessments

MSeeP.ai Security Assessment Badge

Release History

VersionChangesUrgencyDate
v2.2.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v2.1.1...v2.2.0High7/2/2026
v2.1.1## What's Changed **Only MCP server** is in scope: * fix(register-tool): strip $schema at tools/list response time by @raulipadding in https://github.com/lgazo/drawio-mcp-server/pull/55 * drop support for NodeJS 20 ## New Contributors * @raulipadding made their first contribution in https://github.com/lgazo/drawio-mcp-server/pull/55 **Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v2.1.0...v2.1.1High6/2/2026
v2.1.0## What's Changed * Enable Draw.io MCP in IFrames * AWS, GCP, Azure, Cisco19, and CiscoSafe stencils auto-discovered at runtime from drawio's sidebar * Multi-document targeting with `list-documents` and `target_document` selectors for multi-tab workflows * Multi-page targeting with required `target_page` selectors for page-scoped tools * Per-document FIFO serialization for live operations, so multiple agents can work on different files safely * Page management tools: `list-pages`, `get-cHigh5/1/2026
v2.0.4Server 2.0.4 / Extension 2.0.1 ## What's Changed * Dependency security upgrades * Missing export tool definition in Extension registration **Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v2.0.3...v2.0.4High4/10/2026
v2.0.3## What's Changed - Import and export diagrams from/to XML, SVG (with embedded XML), or PNG (with embedded XML) - Edge geometry control with waypoints and automatic self-connector routing - Parent-child relationships for nested shapes and grouping - Unified Server and Extension in the same mono-repo **Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.8.0...v2.0.3Medium4/1/2026
v1.8.0## What's Changed * feat: Built-in Draw.io editor - no browser extension required * feat: add distroless Docker container by @leisefuxX in https://github.com/lgazo/drawio-mcp-server/pull/42 ## New Contributors * @leisefuxX made their first contribution in https://github.com/lgazo/drawio-mcp-server/pull/42 **Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.7.0...v1.8.0Low2/23/2026
v1.7.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.6.0...v1.7.0Low2/12/2026
v1.6.0## What's Changed * fix: correct Zed MCP server configuration structure by @Efan404 in https://github.com/lgazo/drawio-mcp-server/pull/37 * Add MSeeP.ai badge by @lwsinclair in https://github.com/lgazo/drawio-mcp-server/pull/18 * feat: Add layer management tools by @twrb in https://github.com/lgazo/drawio-mcp-server/pull/39 ## New Contributors * @Efan404 made their first contribution in https://github.com/lgazo/drawio-mcp-server/pull/37 * @lwsinclair made their first contribution in httpLow1/28/2026
v1.5.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.4.0...v1.5.0Low12/23/2025
v1.4.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.3.0...v1.4.0Low12/4/2025
v1.3.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.2.1...v1.3.0Low10/28/2025
v1.2.1**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.2.0...v1.2.1Low9/5/2025
v1.2.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.1.3...v1.2.0Low9/5/2025
v1.1.3**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.1.2...v1.1.3Low9/2/2025
v1.1.2**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.1.1...v1.1.2Low8/16/2025
v1.1.1**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.1.0...v1.1.1Low8/16/2025
v1.1.0**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.0.3...v1.1.0Low7/31/2025
v1.0.3**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.0.2...v1.0.3Low6/27/2025
v1.0.2**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.0.1...v1.0.2Low5/13/2025
v1.0.1**Full Changelog**: https://github.com/lgazo/drawio-mcp-server/compare/v1.0.0...v1.0.1Low5/12/2025
v1.0.0Initial version of Draw.io MCP server that should be available from the NPM registry as well. **Full Changelog**: https://github.com/lgazo/drawio-mcp-server/commits/v1.0.0Low5/4/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

difyProduction-ready platform for agentic workflow development.1.17.1
tabularisA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.v0.23.0
recall-aiBuild and manage AI-driven workspaces using Next.js, React, and TypeScript with customizable UI and MIT licensing.main@2026-09-10
autotask-mcpMCP server for Kaseya Autotask PSA — 39 tools for companies, tickets, projects, time entries, and morev2.36.1
studioOpen-source control plane for your AI agents. Connect tools, hire agents, track every token and dollarnative-v4.345.2

More in MCP Servers

difyProduction-ready platform for agentic workflow development.
tabularisA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
ai-agents-from-zero 🚀 2026 最系统的 AI Agent 速成指南|智能体实战教程 · 完整学习路径 + 实战项目 + 面试题库 · 对标大模型应用开发工程师岗位 · 覆盖LangChain / LangGraph / Coze / Dify / MCP / skills / LLM / RAG / 提示词 · 企业级部署与微调 · 从0到企业级落地 + 从学习到上线项目 + 面试准备一体化
studioOpen-source control plane for your AI agents. Connect tools, hire agents, track every token and dollar