draw.io MCP Server 是官方的吗?
是的。它由 draw.io 团队(JGraph)开发和托管,源代码位于 GitHub 的 `jgraph/drawio-mcp`。
@draw.io
基本信息
draw.io MCP Server 是 draw.io 团队官方托管的 MCP App。它把 Mermaid 或 draw.io XML 转换为交互式图表,直接显示在 Claude.ai、ChatGPT、VS Code 和 Cursor 中,可搜索约 10,000 个内置图形,并且无需登录。
https://mcp.draw.io/mcpclaude mcp add drawio --transport http https://mcp.draw.io/mcpCreates and displays an interactive draw.io diagram from Mermaid.js syntax or draw.io XML — provide exactly one. **Choose the format first.** Use `xml` for diagrams of boxes and lines up to about 30 shapes: flowcharts, pipelines, decision trees, org charts, ER schemas, UML class, state and use case diagrams, mind maps, timelines, architecture, cloud and network diagrams, swimlanes, UI mockups, floor plans and anything with stencils. You place every shape yourself, laid out for the chat view (see the XML reference). Use `mermaid` for sequenceDiagram, gantt, gitGraph, pie, journey, quadrantChart, xychart-beta, sankey-beta, requirementDiagram, C4Context/C4Container/C4Component, block-beta, packet-beta, kanban, radar-beta, treemap-beta, treeView-beta, venn-beta, ishikawa-beta, zenuml, wardley-beta, eventmodeling, and for flowcharts, class and state diagrams of more than about 30 shapes (flowcharts with postLayout elk). Whenever the user asks for draw.io XML or no Mermaid, use XML for the rest of the conversation. **Call `get_drawio_reference` before your first diagram in a conversation**, once per format, with the format you chose: "mermaid" has the syntax for every type (a misspelled header renders blank), "xml" the styles, layout grid, edges, containers, layers and dark mode. Call `search_shapes` first for industry icons (AWS, Azure, GCP, Cisco, Kubernetes, P&ID, electrical) or logos. XML essentials: <mxGraphModel adaptiveColors="auto"><root><mxCell id="0"/><mxCell id="1" parent="0"/>…</root></mxGraphModel>. Every cell has a unique id. Vertices: vertex="1" with <mxGeometry x y width height as="geometry"/>. Edges: edge="1" with source and target, always with a child <mxGeometry relative="1" as="geometry"/>. Put html=1 in every style and XML-escape HTML in values (< > & "). No XML comments. Don't add waypoints. Place the shapes yourself (no postLayout) and set `routing: "libavoid"` only when an edge would otherwise cross a shape.
Search the draw.io shape library by keywords. Returns matching shapes with their exact style strings, dimensions, and titles. Covers ~10,000 built-in stencils (cloud architecture, network topology, P&ID, electrical, Cisco, Kubernetes, BPMN) and, when those are sparse, supplements results with the draw.io icon service (brand/product logos and general-purpose concept icons, e.g. 'react', 'slack', 'shopping cart', 'solar panel'). Use ONLY for diagrams that need industry-specific, branded, or pictorial icons. Do NOT use for standard diagram types like flowcharts, UML, ERD, org charts, or mind maps — these use basic geometric shapes (rectangles, diamonds, circles, cylinders) that are already covered in the XML reference. Also skip if the user asks to use basic/simple shapes or says not to search. The style string from the results can be used directly in mxCell style attributes.
Returns the draw.io diagram generation reference as Markdown. Format "xml": styles, the layout grid, edges, containers, swimlanes, layers, tags, metadata, dark mode, the layout and routing passes, and the well-formedness rules for create_diagram's xml. Format "mermaid": the header keyword and syntax hints for every Mermaid type draw.io supports, flowchart styling and the ELK layout. Call it once per format and conversation, before the first diagram in that format; the reference stays valid for the rest of the conversation.
draw.io MCP Server 是 draw.io 团队官方托管的 MCP App。它把 Mermaid.js 或 draw.io XML 转换为交互式图表,直接显示在 Claude.ai、ChatGPT、VS Code 和 Cursor 的对话中,无需安装,也无需登录。
draw.io(也称 diagrams.net)是 JGraph 开发的一款广泛使用的绘图工具。托管在 https://mcp.draw.io/mcp 的服务器使用 MCP Apps 扩展:当模型调用 create_diagram 时,宿主会使用官方 draw.io 查看器在沙箱 iframe 中渲染图表,支持缩放、平移、图层、全屏,并提供“Open in draw.io”按钮以继续编辑。代码以 Apache 2.0 许可证开源于 jgraph/drawio-mcp,同一个服务器也可以自托管。
把 URL 添加为远程 MCP 服务器;该服务器无需登录,因此请关闭认证。
https://mcp.draw.io/mcp
在支持 MCP Apps 的宿主中,图表会内联显示:Claude.ai、ChatGPT、带 GitHub Copilot 的 VS Code 1.109 或更高版本,以及 Cursor 2.6 或更高版本。在 Claude Code 等其他宿主中,服务器会返回一个在 draw.io 中打开图表的链接。
claude mcp add --transport http drawio https://mcp.draw.io/mcp
Claude Code 的终端无法内联显示图表,因此每个图表都会给出一个 app.diagrams.net 链接。
draw.io 已上架 Claude 的连接器目录,可一键添加。也可以打开 Settings → Connectors → Add custom connector 并粘贴 URL。
根据 draw.io README,在 ~/.cursor/mcp.json 或 .cursor/mcp.json 中:
{
"mcpServers": {
"drawio": {
"url": "https://mcp.draw.io/mcp"
}
}
}
根据 draw.io README,在 .vscode/mcp.json 中:
{
"servers": {
"drawio": {
"type": "http",
"url": "https://mcp.draw.io/mcp"
}
}
}
点击条目上方的 Start,然后在 Agent 模式下让 Copilot Chat 画图。
mcp.draw.io,无需账号。创建图表。 create_diagram 接收 mermaid 或 xml 中的恰好一个并进行渲染。其描述要求模型对 Mermaid 有对应头部关键字的图表类型都优先使用 Mermaid,否则使用 XML。选项包括 postLayout: "elk" 以及用于 XML 布局的 direction。
参考资料。 get_drawio_reference 以 Markdown 返回 xml 或 mermaid 的生成参考。模型在每次对话中、每种格式的第一张图之前调用一次;这样可以让 create_diagram 的描述保持简短。
图形。 search_shapes 按关键字查找图形,返回精确的样式字符串、尺寸和标题。它适用于行业专用、品牌或图示类图标,而不是标准的流程图或 UML。
draw.io 还发布了一个 stdio 工具服务器 @drawio/mcp(npx -y @drawio/mcp),它会在浏览器中用完整的 draw.io 编辑器打开图表,而不是内联渲染。在不支持 MCP Apps 的宿主中,或者你更喜欢浏览器编辑器时,可以使用它。另外还有一个社区项目 Draw.io MCP server,工作方式不同,并非由 draw.io 团队开发。
@drawio/mcp 服务器。xml 或 mermaid 中的恰好一个,而不是对象或数组。是的。它由 draw.io 团队(JGraph)开发和托管,源代码位于 GitHub 的 `jgraph/drawio-mcp`。
托管端点无需登录或账号,项目以 Apache 2.0 许可证开源。
Claude.ai、ChatGPT、带 GitHub Copilot 的 VS Code 1.109+ 以及 Cursor 2.6+。其他客户端会得到一个在 draw.io 中打开图表的链接。
可以。每个渲染出的图表都有“Open in draw.io”按钮,可在完整编辑器中打开。
支持。`create_diagram` 接受多种图表类型的 Mermaid,并将其转换为原生 draw.io 图表。
可以。MCP App 服务器可以运行在 Node.js 上,也可以使用 `jgraph/drawio-mcp` Docker 镜像或部署到 Cloudflare Workers。
draw.io 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://mcp.draw.io/mcp,AI 助手无需在本地安装或运行任何东西即可连接。
把端点 https://mcp.draw.io/mcp 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。
此收录尚未确认 draw.io 的认证要求。连接前请查阅提供方文档。
draw.io 暴露的是 streamable-http 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。
One MCP connection for all your Gmail, Google Calendar, Drive and Contacts accounts, Slack workspaces and Notion — free.
Search and read current AWS documentation, check regional availability and load AWS agent skills, with no AWS account needed.
AIsa is one key for 950+ data APIs across SEO and AI visibility, finance, social, web search, sales and agent mail — the go-to-market data stack behind prospecting, competitor research and brand monitoring. Five tools ra
Check one exact Gold Coast or Brisbane City property address. Free address/coverage check and short summary; paid structured Agent JSON adds available building, street and surrounding context, with Brisbane routed journe
Write, schedule and publish LinkedIn posts in your own voice, reply to comments and read your analytics, all from your AI assistant. Remote MCP server with OAuth sign-in.
评论