Skip to content
mcp/skillhub

Drawio MCP Server

by lgazo

Provides Draw.io services to MCP Clients

1.5kNode.jsstdio

context tax

~7,754 tok/turn30 tools

security

100/100

cold start

904 ms

freshness

Active32d ago

Our reading of Drawio, from the data

Drawio is an MCP server from lgazo.

Its 30 tools add about 7,754 tokens to every model turn (measured 2026-10-23).

Maintenance is active: the last public signal was 32 days ago (2026-10-13).

It runs locally on your machine over stdio.

Install Drawio MCP server

Install in Claude Code

claude mcp add drawio-lgazo -- npx -y drawio-mcp-server

Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works

npx mcpskillhub test drawio-mcp-server

Context tax

Connecting this server adds ~7,754 tokens of tool definitions to every model turn (heavy, 30 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure

ModelPer 1,000 turnsWith prompt caching
Claude Opus 5.5$31.02$1.55
Claude Sonnet 5.5$15.51$1.55
Claude Haiku 5.5$0.775—

Input prices as of 2026-10-06. Excludes your own prompt and output.

Tools (30)

  • add-edge596 tok

    This tool creates an edge, sometimes called also a relation, between two vertexes (cells). When source and target are the same shape (self-connector), a loop edge style is automatically applied if no custom style is provided.

  • list-paged-model585 tok

    Retrieves a paginated view of all cells (vertices and edges) on the target page. This tool provides access to the complete model data with essential fields only, sanitized to remove circular dependencies and excessive data.

  • export-diagram543 tok

    Export the target page or current diagram as SVG, PNG, or XML. Returns the diagram data as base64 (PNG) or text (SVG/XML). Optionally saves to a file.

  • add-cell-of-shape441 tok

    This tool allows you to add a new vertex cell on the target page of the current Draw.io document by its shape name.

  • add-rectangle431 tok

    This tool allows you to add a new Rectangle vertex cell on the target page of the current Draw.io document.

  • import-mermaid411 tok

    Insert a Mermaid diagram into the target Draw.io page. Conversion runs inside the Draw.io editor via its bundled Mermaid pipeline (EditorUi.parseMermaidDiagram). mode='native' converts supported Mermaid types into native mxGraph cells; unsupported types fall back to an embedded image cell. mode='embed' always emits a single image cell that preserves the Mermaid source for re-editing inside Draw.io. `target_page` is required for `replace` and `add`, and optional for `new-page`.

  • edit-edge407 tok

    Update properties of an existing edge by its ID. Only provided fields are modified; unspecified properties remain unchanged. Supports setting waypoints for edge geometry control.

  • import-diagram353 tok

    Import a diagram from XML, SVG with embedded XML, or PNG with embedded XML into the current Draw.io instance. `target_page` is required for `replace` and `add`, and optional for `new-page`.

  • edit-cell342 tok

    Update properties of an existing vertex/shape cell by its ID. Only provided fields are modified; unspecified properties remain unchanged.

  • set-cell-data270 tok

    Sets or updates a custom attribute on an existing cell.

  • set-cell-shape243 tok

    Updates the visual style of an existing vertex cell to match a library shape by name.

  • set-cell-parent242 tok

    Sets the parent of a cell, making it a child of the specified parent cell. This allows creating hierarchical relationships where moving the parent also moves its children.

  • set-active-layer236 tok

    Sets the active layer for creating new elements. All subsequent element creation will happen in this layer. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.

  • copy-page232 tok

    Creates a copy of an existing page in the target/current Draw.io document, appends the copy to the end of the page list, and returns the copied page metadata. When possible, the previously visible page is restored after the copy is created.

  • move-cell-to-layer230 tok

    Moves a cell from its current layer to a target layer.

  • delete-cell-by-id227 tok

    Deletes a cell from the target page, whether it is a vertex or edge.

  • get-selected-cell210 tok

    This tool retrieves the selected cell on the target page of the current Draw.io document. If the target page is not currently visible, Draw.io may switch the visible page first because selection is UI-bound.

  • get-active-layer206 tok

    Gets the currently active layer information for the target page. If the target page is not currently visible, Draw.io may switch the visible page first because active-layer state is UI-bound.

  • create-layer195 tok

    Creates a new layer on the target page.

  • rename-page192 tok

    Renames the selected page without changing the visible page.

  • list-layers184 tok

    Lists all available layers on the target page with their IDs and names.

  • get-shapes-in-category144 tok

    Retrieve all shapes in the provided category from the diagram's library. A shape primarily contains `style` based on which you can create new vertex cells.

  • get-shape-by-name139 tok

    Retrieve a specific shape by its name from all available shapes in the diagram's library. It returns the shape and also the category it belongs.

  • set-document-title130 tok

    Renames the current Draw.io document through its active storage provider while preserving the existing file extension when one is present.

  • create-page122 tok

    Appends a new blank page to the current Draw.io document without changing the visible page when the runtime supports background page insertion.

  • save-document111 tok

    Triggers Draw.io's existing File > Save action for the current document. The active storage provider may display an authentication, conflict, or Save As prompt that requires user interaction.

  • list-pages99 tok

    Lists all pages in the current Draw.io document with their index, id, name, and current-page flag.

  • get-shape-categories98 tok

    Retrieves available shape categories from the diagram's library. Library is split into multiple categories.

  • get-current-page98 tok

    Gets the currently visible page metadata, including index, id, name, and whether it is active.

  • list-documents37 tok

    Lists all connected Draw.io document instances with their stable instance IDs and basic metadata.

Security signals

100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.

Deductions

No findings from the checks that ran.

Checks

  • ✓Repository hygiene (archived, activity, license, security policy)
  • ✓Tool descriptions (prompt-injection and hidden-text heuristics)
  • ○Package metadata (install scripts, provenance) — pending
  • ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending

Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules

Freshness

Active — last maintenance signal 32d ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-10-13 · 32d ago · GitHub

  2. Latest release

    2026-09-15 · 2mo ago · GitHub · v2.3.0

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    no data · official registry

FAQ

›How do I install the Drawio MCP server in Claude Code?

Run: claude mcp add drawio-lgazo -- npx -y drawio-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does Drawio require an API key?

No required environment variables are declared in its published metadata.

›Can I use Drawio as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is Drawio in the official MCP registry?

No. It was indexed from npm.

›How many tokens does Drawio add to my context?

Its tool definitions total about 7,754 tokens, resent on every turn.

Sources and method

GitHub repository
fetched 2026-10-19
Package registry (npm / PyPI)
listed
Last checked against all sources
2026-10-19

The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.