MCP.so
ログイン

draw.io MCP Server

@draw.io

基本情報

トランスポート

streamable-http

認証方式

提供元の文書を確認

カテゴリ

メディアとデザイン

作者

draw.io

draw.io MCP Server について

draw.io MCP Server は draw.io チームが公式にホストする MCP App です。Mermaid または draw.io XML をインタラクティブな図に変換して Claude.ai、ChatGPT、VS Code、Cursor 内に表示し、約 10,000 の組み込み図形を検索でき、サインインは不要です。

接続情報

https://mcp.draw.io/mcp

セットアップ

claude mcp add drawio --transport http https://mcp.draw.io/mcp

draw.io MCP Server のツール

3

Creates 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 (&lt; &gt; &amp; &quot;). 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 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」ボタンもあります。コードは jgraph/drawio-mcp で Apache 2.0 のオープンソースとして公開されており、同じサーバーをセルフホストすることもできます。

draw.io MCP Server の使い方

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 Code

claude mcp add --transport http drawio https://mcp.draw.io/mcp

Claude Code のターミナルでは図をインライン表示できないため、図ごとに app.diagrams.net のリンクが返されます。

Claude Desktop と claude.ai

draw.io は Claude のコネクタディレクトリに掲載されており、ワンクリックで追加できます。Settings → Connectors → Add custom connector を開いて URL を貼り付けることもできます。

Cursor

draw.io の README に従い、~/.cursor/mcp.json または .cursor/mcp.json に追加します。

{
  "mcpServers": {
    "drawio": {
      "url": "https://mcp.draw.io/mcp"
    }
  }
}

VS Code

draw.io の README に従い、.vscode/mcp.json に追加します。

{
  "servers": {
    "drawio": {
      "type": "http",
      "url": "https://mcp.draw.io/mcp"
    }
  }
}

エントリの上にある Start をクリックし、Agent モードの Copilot Chat に図の作成を依頼します。

draw.io MCP Server の主な機能

  • draw.io チームの公式サーバーで、mcp.draw.io でホストされ、アカウントは不要。
  • MCP Apps ホストでのインラインかつインタラクティブな図(ズーム、パン、レイヤー切り替え、ライトボックス、全画面)。
  • Mermaid(フローチャート、シーケンス図、クラス図、状態遷移図、ER 図、ガントチャート、マインドマップ、タイムライン、C4、アーキテクチャ図など)またはネイティブの draw.io XML に対応。
  • Mermaid はネイティブに解析・レイアウトされてから draw.io に変換されます。
  • XML の図にはオプションで ELK の階層レイアウトを適用可能。
  • 約 10,000 の組み込みステンシル(クラウドアーキテクチャ、ネットワーク、Cisco、Kubernetes、BPMN、P&ID、電気)と draw.io アイコンサービスからの図形検索。
  • 「Open in draw.io」でフル機能のエディターに引き継ぎ。
  • オープンソース(Apache 2.0)で、Node.js、Docker、Cloudflare Workers でセルフホスト可能。

draw.io MCP Server のツール

図の作成。 create_diagram は mermaid か xml のどちらか 1 つだけを受け取って描画します。説明では、Mermaid にヘッダーがある図の種類にはすべて Mermaid を使い、それ以外は XML を使うようモデルに指示しています。オプションには postLayout: "elk" と、XML レイアウト用の direction があります。

リファレンス。 get_drawio_reference は xml または mermaid の生成リファレンスを Markdown で返します。モデルは会話ごと・形式ごとに最初の図の前に 1 回呼び出します。これにより create_diagram の説明を短く保っています。

図形。 search_shapes はキーワードで図形を探し、正確なスタイル文字列、サイズ、タイトルを返します。業界特有の図形、ブランドロゴ、絵的なアイコン向けで、標準的なフローチャートや UML には使いません。

draw.io MCP Server のユースケース

  • アーキテクチャ図:「AWS アイコンを使って、ALB、2 つの ECS サービス、RDS データベースからなる AWS アーキテクチャを描いて。」
  • コードの説明:「ログインリクエストがこれらのサービスをどう流れるか、シーケンス図にして。」
  • データモデリング:「この 3 つのテーブルの ER 図を作って。」
  • 計画:「このプロジェクト計画をガントチャートにして。」
  • ネットワーク図:「このオフィスネットワークを Cisco の図形で描いて。」
  • ブレインストーミング:「製品ローンチのアイデアをマインドマップにして。」

draw.io MCP Server と代替ツールの比較

draw.io は stdio のツールサーバー @drawio/mcp(npx -y @drawio/mcp)も公開しています。こちらは図をインライン描画せず、ブラウザのフル機能の draw.io エディターで開きます。MCP Apps 非対応のホストや、ブラウザのエディターを好む場合に使います。また、仕組みが異なり draw.io チーム製ではないコミュニティ版の Draw.io MCP server もあります。

draw.io MCP Server のトラブルシューティング

  • 図がインラインではなくリンクで表示される。 ホストが MCP Apps に対応していません(Claude Code や古い Cursor など)。リンクを開くか、対応ホストを使ってください。
  • Cursor で何も描画されない。 インライン描画には Cursor 2.6 以降が必要です。古いバージョンでは stdio の @drawio/mcp サーバーを使ってください。
  • モデルが誤った形式で入力を渡す。 xml か mermaid のどちらか 1 つを、オブジェクトや配列ではなくプレーンな文字列で渡してください。
  • 図を社外に出せない。 ホスト版のエンドポイントでは図が draw.io のサーバーに送信されます。データを社内に留める必要がある場合は MCP App サーバーをセルフホストしてください。

よくある質問

1

draw.io MCP Server は公式ですか?

はい。draw.io チーム(JGraph)が開発・ホストしており、ソースは GitHub の `jgraph/drawio-mcp` にあります。

2

無料ですか?アカウントは必要ですか?

ホスト版のエンドポイントはサインインもアカウントも不要で、プロジェクトは Apache 2.0 のオープンソースです。

3

どのクライアントで図がインライン表示されますか?

Claude.ai、ChatGPT、GitHub Copilot 付きの VS Code 1.109 以降、Cursor 2.6 以降です。その他のクライアントでは draw.io で図を開くリンクが返されます。

4

後から図を編集できますか?

はい。描画された図にはそれぞれ「Open in draw.io」ボタンがあり、フル機能のエディターで開けます。

5

Mermaid に対応していますか?

はい。`create_diagram` は多くの図の種類で Mermaid を受け付け、ネイティブの draw.io の図に変換します。

6

セルフホストできますか?

はい。MCP App サーバーは Node.js 上、`jgraph/drawio-mcp` の Docker イメージ、または Cloudflare Workers で動かせます。

7

draw.io のリモート MCP サーバーとは何ですか?

draw.io のリモート MCP サーバーは、https://mcp.draw.io/mcp にホストされた Model Context Protocol エンドポイントです。AI アシスタントはローカルに何もインストール・実行することなく接続できます。

8

draw.io の MCP サーバーにはどう接続しますか?

エンドポイント https://mcp.draw.io/mcp を Claude Code、Cursor、VS Code など任意の MCP 対応クライアントに追加してください。このページのセットアップ手順で各クライアントを一度に設定できます。

9

draw.io の MCP サーバーは認証が必要ですか?

この掲載では draw.io の認証要件がまだ確認されていません。接続前に提供元のドキュメントをご確認ください。

10

draw.io の MCP サーバーはどのトランスポートを使用しますか?

draw.io は streamable-http エンドポイントを公開しており、これはリモート MCP サーバーで広く使われ、主要な MCP クライアントがサポートするトランスポートです。

コメント