draw.io

Mermaid, PlantUML, CSV or XML in, editable draw.io diagrams out, live in chat. 10,000+ shapes.

Sollte ich dies verwenden

Qualität und Sicherheit

A
Qualität der Beschreibung
100%
Vollständigkeit des Schemas
95%
Qualität der Benennung
100%
Risiko der Vergiftung
100%
Übereinstimmung der Berechtigungen
100%
Einhaltung des Protokolls
100%

Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.

Kontextkosten

~3,769Tokens (Tool-Definitionen)
~7.5 KBTypische Antwortgröße
Erhebliche Auswirkung auf die Aufmerksamkeit (2.94% von 128k Kontext)

Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.

Installieren

Installation mit einem Klick

Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "@drawio/mcp"
      ]
    }
  }
}

Ausführbare Pakete

npm@drawio/mcp1.13.1stdio

Remote-Endpunkte

https://mcp.draw.io/mcpstreamable-http

Was es kann

Tool-Inventar

Tools (4)

🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
🟢create_diagram(xml, mermaid, plantuml, csv, postLayout, ...)

Send Mermaid, PlantUML or CSV and get back an editable, styled draw.io diagram with an edit link (syntax errors by line), or send draw.io XML you placed. 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, "xml" the styles, layout grid, edges, containers, layers and dark mode. For AWS, Azure, GCP and Kubernetes icons write `icon=aws lambda` in the style; call `search_shapes` first for other industry icons (Cisco, 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 and 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.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "xml": {
      "type": "string",
      "description": "draw.io XML content in mxGraphModel format. Must be well-formed XML: no XML comments (<!-- -->), no unescaped special characters in attribute values. Mutually exclusive with 'mermaid'."
    },
    "mermaid": {
      "type": "string",
      "description": "Mermaid.js diagram definition (e.g. 'graph TD\\n  A-->B'). Supports 28 diagram types — see the tool description for the full list. Flowcharts, ER and sequence diagrams are converted on the server into editable draw.io cells, laid out and styled (draw.io's calm theme, with the colors of classDef and style lines), and a syntax error comes back with its line and how to fix it; the other types are converted in the viewer by draw.io's native Mermaid converter (no upstream mermaid runtime). Mutually exclusive with 'xml'."
    },
    "plantuml": {
      "type": "string",
      "description": "PlantUML source from @startuml to @enduml (or the @start…/@end… lines of its type, such as @startmindmap, @startwbs, @startgantt, @startjson, @startyaml, @startsalt or @startnwdiag): sequence, class, activity, state, use case, component, deployment and the other PlantUML diagrams. Sequence and activity diagrams (the new syntax) are converted on the server into editable draw.io cells, laid out and styled, and a syntax error comes back with its line and how to fix it; the other diagrams are converted to draw.io shapes in the viewer, as draw.io's Arrange > Insert > Advanced > PlantUML does (no PlantUML server). Use it when the user gives you PlantUML or asks for it. Mutually exclusive with the other formats; postLayout, direction and routing don't apply."
    },
    "csv": {
      "type": "string",
      "description": "draw.io CSV, as draw.io's Arrange > Insert > Advanced > CSV imports it: configuration lines starting with # (label, style, identity, parent, connect, width, height, layout, …), then a header line and one line per shape. %column% placeholders take the values of each row, in labels and in styles (e.g. `# style: fillColor=%fill%;`). For org charts and other diagrams made from tabular data the user gives you. Converted on the server into editable draw.io cells that keep each row's columns as data, laid out and styled, and an error comes back with its line and how to fix it. Layouts: auto, verticaltree, horizontaltree, orgchart, verticalflow, horizontalflow, organic (drawn in layers), none (each row at its left and top columns); circle, `# list` and `# container` go to draw.io's own import in the viewer. Mutually exclusive with the other formats; postLayout, direction and routing don't apply."
    },
    "postLayout": {
      "type": "string",
      "enum": [
        "elk"
      ],
      "description": "Optional client-side ELK (Eclipse Layout Kernel) layered-flow pass applied after the diagram renders. The only value is `\"elk\"`. Vertices animate (morph) from the positions you supplied to the layered layout — they are **replaced**, so only your edge topology survives. Set it for large Mermaid flowcharts (see below) and for directional XML flows of more than about 30 shapes that you don't lay out yourself; XML you place on the grid (see the XML reference) omits it. Flow direction (top-down vs left-to-right): for **Mermaid** it is taken from the flowchart code (`flowchart TD/TB` → top-down, `LR/RL` → left-to-right) — do not try to set it here; for **XML** set the optional `direction` field (defaults to top-down).\n**Omit** for diagrams whose layout carries meaning you hand-crafted: swimlanes/pools, containers, architecture / deployment / network topology with grouped regions, P&ID or circuit schematics, floor plans, UML diagrams with deliberate placement.\n\n**For Mermaid flowcharts**, the native parser does its own layout, but it produces cramped or unbalanced output once the diagram has any structural complexity. Request `postLayout: \"elk\"` whenever ANY of the following holds: ≥ ~20 nodes, OR ≥ 3 decision diamonds (`{...}` shapes), OR any feedback/back-edges (an edge that points to an earlier node, e.g. an error path looping back to a retry), OR ≥ 3 distinct endpoints — the flow direction follows the flowchart code, so you never pass `direction` for Mermaid. Skip for simple flowcharts (linear chains, < 20 nodes, no branching/back-edges) and for non-flowchart Mermaid types (sequence, class, ER, sankey, etc. — postLayout doesn't apply)."
    },
    "direction": {
      "type": "string",
      "enum": [
        "vertical",
        "horizontal"
      ],
      "description": "**XML only** — the flow direction for `postLayout: \"elk\"` on XML diagrams: `vertical` (top-down) or `horizontal` (left-to-right). Defaults to `vertical`. **Ignored for Mermaid**, where direction is read from the flowchart code (`flowchart TD/TB` vs `LR/RL`). Only meaningful together with `postLayout: \"elk\"`."
    },
    "routing": {
      "type": "string",
      "enum": [
        "libavoid"
      ],
      "description": "**XML only** — optional obstacle-avoiding orthogonal **edge-routing** pass (libavoid). The only value is `\"libavoid\"`. Unlike `postLayout`, this does **not** move any vertices — it keeps your hand-placed coordinates and only recomputes the path of each right-angle edge (`edgeStyle=orthogonalEdgeStyle` or `entityRelationEdgeStyle`) so wires run in clean right-angle segments that route *around* the boxes instead of cutting through them; straight and curved lines stay as drawn. Set it for XML diagrams where you have placed nodes deliberately (architecture, deployment, swimlanes, UML class, floor plans) and want tidy connectors without overlaps — exactly the diagrams where you'd OMIT `postLayout`.\ndraw.io's default router is basic (straight or simple right-angle lines with **no obstacle avoidance** — wires cut straight through any box between the endpoints), so reach for `\"libavoid\"` whenever edges would otherwise cross shapes or you want uniformly clean orthogonal wiring on a layout you placed yourself. Think of `routing` and `postLayout` as **alternatives**: use `routing: \"libavoid\"` to keep your positions and only fix the wires, or `postLayout: \"elk\"` to re-lay-out the vertices — and note ELK already routes its edges decently, so when you use `postLayout` you normally should **not** also set `routing` (the combination is redundant in almost all cases). Do not add `<Array as=\"points\">` waypoints yourself when routing is set; libavoid computes them. **Ignored for Mermaid** (its native/ELK layout already routes)."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢create_semantic_diagram(type, title, layout, nodes, edges, ...)

Only for a diagram the user explicitly asked to get fast or cheap: a quick, fast or rough diagram, a sketch or a draft, little effort or few tokens, in any language ("schnell", "Skizze", "wenig Aufwand", "sparsam"). A request without such words, however simple the diagram, goes to create_diagram, never here, and so do the types not listed here: create_diagram places the shapes with more care. A change to a diagram drawn here comes back here. Creates and displays a draw.io diagram from a description of its content: you say what exists and how it connects, the server lays it out, routes the lines and styles it. Never give coordinates, sizes or styles. To change the diagram, call this again with the whole changed description, keeping the ids, the cells of what stays and the layout. Arguments: type, title, nodes, edges, groups; their keys are in the schema. type "flowchart" (processes, with or without swimlanes): nodes are steps with a kind (start, end, step, decision, error, data); for swimlanes, groups are the lanes in order and each node names its lane in group; edges are transitions, labeled on the branches of a decision ("Yes", "No"). End every path at an end node. Placement: give every node row and col, its cell in one grid for the whole diagram: at most 6 cols, a large diagram grows down, to 8 rows. A group's nodes form a block of cells of their own, which the server frames. A lane is a row (or a column) of that grid, col (or row) the step.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "flowchart",
        "swimlane"
      ],
      "description": "The diagram type."
    },
    "title": {
      "type": "string",
      "description": "A title shown above the diagram."
    },
    "layout": {
      "type": "string",
      "description": "On every change of a diagram: the layout of its last result, copied exactly, also when you add, move or renumber cells. What keeps its cell then stays in place and only what the change needs room for moves; without it, every shape can move"
    },
    "nodes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique, kept when the diagram is changed"
          },
          "label": {
            "type": "string",
            "description": "The name shown, 1 to 5 words"
          },
          "kind": {
            "type": "string",
            "description": "flowchart: start, end, step, decision, error, data"
          },
          "group": {
            "type": "string",
            "description": "id of the group or lane the node is in"
          },
          "sub": {
            "type": "string",
            "description": "Optional second line in small text (a technology, an address)"
          },
          "row": {
            "type": "integer",
            "description": "The row of the node's cell (1 is the top) in one grid for the whole diagram, not per group. Up to 8 rows are shown whole: a diagram that needs more cells than 6 × 6 gets more rows, not more columns. With lanes as rows, every lane has a row to itself (two when its steps branch)"
          },
          "col": {
            "type": "integer",
            "description": "The column of the node's cell (1 is the left) in that grid. At most 6: every further column makes all the text smaller (the steps of a lane diagram may need more). The nodes of a group form a block of cells with no other node in it, nested groups a block in their parent's. With lanes as rows, col is the step of the flow over all lanes: a step that hands over to another lane can keep the col of the step before it, straight below or above"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "id of a node or group"
          },
          "to": {
            "type": "string",
            "description": "id of a node or group"
          },
          "label": {
            "type": "string",
            "description": "1 to 3 words"
          },
          "kind": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": true
      }
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "parent": {
            "type": "string",
            "description": "id of the group this one is nested in"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": true
      }
    }
  },
  "required": [
    "type",
    "nodes"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢search_shapes(query, limit)

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.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Space-separated search keywords (e.g. 'pid globe valve', 'aws lambda', 'cisco router', 'kubernetes pod')"
    },
    "limit": {
      "type": "number",
      "description": "Maximum number of results to return (default: 10, max: 50)"
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Ausgabe-Schema

{
  "type": "object",
  "properties": {
    "shapes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "style": {
            "type": "string",
            "description": "mxCell style string, usable verbatim in a style attribute"
          },
          "w": {
            "type": "number",
            "description": "Default width in pixels"
          },
          "h": {
            "type": "number",
            "description": "Default height in pixels"
          },
          "title": {
            "type": "string",
            "description": "Shape name"
          }
        },
        "required": [
          "style",
          "w",
          "h",
          "title"
        ],
        "additionalProperties": false
      },
      "description": "Matching shapes, best match first — empty when nothing matched the query."
    }
  },
  "required": [
    "shapes"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_drawio_reference(format)

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.

Eingabe-Schema

{
  "type": "object",
  "properties": {
    "format": {
      "type": "string",
      "enum": [
        "xml",
        "mermaid"
      ],
      "description": "Which reference to return: \"xml\" or \"mermaid\", matching the create_diagram parameter you will use."
    }
  },
  "required": [
    "format"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Community

Diesen Server bewerten

Nachweis

Aktuelle Beobachtungen

verifiziertVersion nicht aufgezeichnet4 Tools
verifiziertVersion nicht aufgezeichnet3 Tools
verifiziertVersion nicht aufgezeichnet3 Tools
verifiziertVersion nicht aufgezeichnet3 Tools
verifiziertVersion nicht aufgezeichnet2 Tools
verifiziertVersion nicht aufgezeichnet2 Tools
verifiziertVersion nicht aufgezeichnet2 Tools
verifiziertVersion nicht aufgezeichnet2 Tools