
simonkurtz-msft/drawio-mcp-server
部署与 DevOps本页由 AI 翻译,技术细节请以原文为准。 查看原文
simonkurtz-msft/drawio-mcp-server 是从 https://github.com/simonkurtz-msft/drawio-mcp-server. 导入的 MCP 服务器候选
概览
simonkurtz-msft/drawio-mcp-server 是从 https://github.com/simonkurtz-msft/drawio-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一款用于使用 Draw.io(Diagrams.net)生成程序化图示的模型上下文协议(MCP)服务器。该服务器直接生成 Draw.io XML——无需浏览器扩展或 Draw.io 实例。
演示视频
致谢
如果没有以下这些仓库及其作者,这个项目不会以这样的方式存在。谢谢!
- 原版drawio-mcp-server由**Ladislav (lgazo)制作:lgazo/drawio-mcp-server
- Azure icons source (
dwarfered): dwarfered/azure-architecture-icons-for-drawio - VS 代码 Drawio 扩展 由 hediet 提供:hediet/vscode-drawio
特色
- 700+ Azure 架构图标 — 官方 Microsoft 图标,嵌入 SVG 数据,分为 ~20 个类别(计算、网络、存储、数据库、AI + 机器学习、安全等)
- 基本形状 — 矩形、椭圆、菱形、平行四边形及其他流程图原语
- 模糊搜索 — 在整个图标库中按部分名称查找形状
- 批处理操作 — 在一次调用中创建和更新多个单元格以提升性能
- 图层管理 — 创建、列出和组织跨图层的单元格
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Draw.io MCP Server
A Model Context Protocol (MCP) server for programmatic diagram generation using Draw.io (Diagrams.net). This server generates Draw.io XML directly — no browser extension or Draw.io instance required.
Demo Video
Acknowledgements
This project would not exist in this manner if it weren’t for the following repositories and their authors. Thank you!
- Original drawio-mcp-server by Ladislav (lgazo): lgazo/drawio-mcp-server
- Azure icons source (
dwarfered): dwarfered/azure-architecture-icons-for-drawio - VS Code Drawio extension by hediet: hediet/vscode-drawio
Features
- 700+ Azure Architecture Icons — Official Microsoft icons with embedded SVG data, organized into ~20 categories (Compute, Networking, Storage, Databases, AI + ML, Security, and more)
- Basic Shapes — Rectangles, ellipses, diamonds, parallelograms, and other flowchart primitives
- Fuzzy Search — Find shapes by partial name across the entire icon library
- Batch Operations — Create and update multiple cells in a single call for better performance
- Layer Management — Create, list, and organize cells across layers
- Style Presets — Built-in Azure, flowchart, and general color presets
- Multiple Transports — stdio (default) and streamable HTTP
- XML Export — Standard Draw.io XML format compatible with Draw.io desktop and web
For PNG/SVG/PDF conversion, use jgraph’s Draw.io skill-cli workflow: https://github.com/jgraph/drawio-mcp/blob/main/skill-cli/README.md.
Documentation
- Transactional mode design: docs/transactional_mode_design.md
Requirements
- Deno v2.3 or higher
Quick Start
From Source
deno run --allow-net --allow-read --allow-env src/index.ts
MCP Client Configuration
Configure your MCP client (Claude Desktop, VS Code, Codex, etc.) to use the server:
Claude Desktop
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
安装
docker run -d --name drawio-mcp-server -p 8080:8080 simonkurtzmsft/drawio-mcp-server:latest配置
{
"mcpServers": {
"drawio": {
"command": "deno",
"args": ["run", "--allow-net", "--allow-read", "--allow-env", "/path/to/drawio-mcp-server/src/index.ts"]
}
}
}