
drawio-mcp-server
by simonkurtz-MSFT·★ 71·综合分 48
Draw.io MCP 服务器,支持程序化图表生成,包含 700+ Azure 图标和批量操作。
概述
此 MCP 服务器允许 AI 模型程序化生成图表,无需浏览器或 Draw.io 实例。它提供超过 700 个 Azure 架构图标,按类别组织,以及基本形状和流程图元素。服务器支持批量操作以获得更好的性能,图层管理和样式预设。它可以生成与 Draw.io 桌面版和网页版兼容的标准 Draw.io XML 格式。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要以无人干预的方式自动生成图表,特别是处理Azure架构或技术文档时,选择此服务器。
什么时候不要选它
如果您需要实时协作编辑或XML以外的导出格式,请不要选择此服务器,因为它专注于程序化生成而非交互式设计。
此 server 暴露的工具
从 README 抽取出 12 个工具search-shapesFuzzy search for shapes including 700+ Azure icons.
get-shape-categoriesList all shape categories (General, Flowchart, Azure categories).
add-cellsAdd vertices and/or edges to the diagram.
edit-cellsUpdate vertex cell properties (position, size, text, style).
export-diagramExport the diagram as Draw.io XML.
import-diagramImport a Draw.io XML string, replacing the current diagram.
list-layersList all layers with IDs and names.
create-layerCreate a new layer.
create-pageCreate a new page (tab) in the diagram.
list-pagesList all pages with IDs and names.
get-diagram-statsGet statistics about cell counts, bounds, and layer distribution.
set-cell-shapeApply library shape styles to existing cells.
可对比工具
安装
安装
从源码安装
deno run --allow-net --allow-read --allow-env src/index.tsClaude Desktop
编辑 claude_desktop_config.json:
{
"mcpServers": {
"drawio": {
"command": "deno",
"args": ["run", "--allow-net", "--allow-read", "--allow-env", "/path/to/drawio-mcp-server/src/index.ts"]
}
}
}Docker
docker pull simonkurtzmsft/drawio-mcp-server:latest
docker run -d --name drawio-mcp-server -p 8080:8080 simonkurtzmsft/drawio-mcp-server:latestFAQ
- 我可以导出为 PNG/SVG/PDF 格式吗?
- 服务器生成 Draw.io XML 格式。对于 PNG/SVG/PDF 转换,请使用 jgraph 的 Draw.io `skill-cli` 工作流。
- 如何查找特定形状?
- 使用 `search-shapes` 工具进行模糊搜索,可通过部分名称在整个图标库中查找形状。
drawio-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。