Skip to main content
mcpSource-backed
Draw.io MCP Server logo

Draw.io MCP Server

MCP server for controlling Draw.io and diagrams.net diagrams from Claude, including document discovery, page management, layers, shapes, edges, Mermaid import, diagram import/export, and a built-in editor mode.

by Lukas Gazo · submitted by oktofeesh1·added 2026-06-06·
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://raw.githubusercontent.com/lgazo/drawio-mcp-server/main/README.md, https://github.com/lgazo/drawio-mcp-server
Brand
Draw.io MCP Server
Brand domain
diagrams.net
Brand asset source
brandfetch
Safety notes
Draw.io MCP Server can create, edit, delete, import, export, rename, copy, and reorganize diagram pages, layers, shapes, edges, labels, metadata, and Mermaid-derived content., Live operations target connected Draw.io browser tabs or the built-in editor; verify the selected document and page before allowing destructive edits., The server can run local HTTP and WebSocket endpoints, optionally with TLS or auto-generated self-signed certificates; avoid binding it to untrusted network interfaces., Browser-extension mode links a browser tab to the MCP server, so only connect tabs containing diagrams that the agent is allowed to inspect or modify., Export tools can write or return XML, SVG, and PNG files with embedded diagram data; review outputs before sharing them externally., Use trusted package sources, pin versions for repeatable workflows, and review generated diagrams before committing architectural or security documentation.
Privacy notes
Diagrams can include private architecture, network topology, cloud account names, customer systems, credentials embedded in labels, incident details, internal process maps, or product plans., The MCP client can receive diagram XML, SVG, PNG exports, page names, layer names, selected-cell data, shape metadata, browser tab document metadata, and imported Mermaid content., Local editor and browser-extension workflows may leave diagrams, exported files, browser state, TLS material, and logs on disk., Treat exported SVG or PNG files with embedded XML as source files, because they can contain full editable diagram data beyond the visible image., Clear temporary files, generated certificates, and MCP logs when they are no longer needed for the diagram workflow.
Author
Lukas Gazo
Submitted by
oktofeesh1
Claim status
unclaimed
Last verified
2026-06-06

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

63

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Needs review

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    No reviewed flag detected in metadata.

    Pending

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

CLI install

Copy-ready — paste the snippet to get started.

10 minutes

Adoption plan

Balanced adoption plan

Current risk score 24/100. Use staged verification before broader rollout.

Risk 24

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    No review metadata found; increase manual validation.

    Pending
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Missing required evidence: Metadata review. Risk score 31.

Risk 31

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Missing

Review metadata is missing.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required gaps: Metadata review

Decision timeline

Decision timeline · balanced

Blocking gaps: Check metadata review status. Risk 28.

Risk 28

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is missing.

Pending

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

Blockers: Check metadata review status

Prerequisite readiness

Prerequisite readiness

5 prerequisites to line up before setup. Includes a review or approval gate.

0/5 ready
Install & runtime2Network & hosting1Review & approval1General110 minutes

Safety & privacy surface

Safety & privacy surface

6 safety and 5 privacy notes across 5 risk areas. Review closely: credentials & tokens, network access.

5 areas
  • SafetyGeneralDraw.io MCP Server can create, edit, delete, import, export, rename, copy, and reorganize diagram pages, layers, shapes, edges, labels, metadata, and Mermaid-derived content.
  • SafetyExecution & processesLive operations target connected Draw.io browser tabs or the built-in editor; verify the selected document and page before allowing destructive edits.
  • SafetyNetwork accessThe server can run local HTTP and WebSocket endpoints, optionally with TLS or auto-generated self-signed certificates; avoid binding it to untrusted network interfaces.
  • SafetyGeneralBrowser-extension mode links a browser tab to the MCP server, so only connect tabs containing diagrams that the agent is allowed to inspect or modify.
  • SafetyLocal filesExport tools can write or return XML, SVG, and PNG files with embedded diagram data; review outputs before sharing them externally.
  • SafetyGeneralUse trusted package sources, pin versions for repeatable workflows, and review generated diagrams before committing architectural or security documentation.
  • PrivacyCredentials & tokensDiagrams can include private architecture, network topology, cloud account names, customer systems, credentials embedded in labels, incident details, internal process maps, or product plans.
  • PrivacyGeneralThe MCP client can receive diagram XML, SVG, PNG exports, page names, layer names, selected-cell data, shape metadata, browser tab document metadata, and imported Mermaid content.
  • PrivacyLocal filesLocal editor and browser-extension workflows may leave diagrams, exported files, browser state, TLS material, and logs on disk.
  • PrivacyLocal filesTreat exported SVG or PNG files with embedded XML as source files, because they can contain full editable diagram data beyond the visible image.
  • PrivacyLocal filesClear temporary files, generated certificates, and MCP logs when they are no longer needed for the diagram workflow.

Disclosure: Community-maintained open source MCP server for Draw.io/diagrams.net, published as the `drawio-mcp-server` npm package under the MIT license.

Safety notes

  • Draw.io MCP Server can create, edit, delete, import, export, rename, copy, and reorganize diagram pages, layers, shapes, edges, labels, metadata, and Mermaid-derived content.
  • Live operations target connected Draw.io browser tabs or the built-in editor; verify the selected document and page before allowing destructive edits.
  • The server can run local HTTP and WebSocket endpoints, optionally with TLS or auto-generated self-signed certificates; avoid binding it to untrusted network interfaces.
  • Browser-extension mode links a browser tab to the MCP server, so only connect tabs containing diagrams that the agent is allowed to inspect or modify.
  • Export tools can write or return XML, SVG, and PNG files with embedded diagram data; review outputs before sharing them externally.
  • Use trusted package sources, pin versions for repeatable workflows, and review generated diagrams before committing architectural or security documentation.

Privacy notes

  • Diagrams can include private architecture, network topology, cloud account names, customer systems, credentials embedded in labels, incident details, internal process maps, or product plans.
  • The MCP client can receive diagram XML, SVG, PNG exports, page names, layer names, selected-cell data, shape metadata, browser tab document metadata, and imported Mermaid content.
  • Local editor and browser-extension workflows may leave diagrams, exported files, browser state, TLS material, and logs on disk.
  • Treat exported SVG or PNG files with embedded XML as source files, because they can contain full editable diagram data beyond the visible image.
  • Clear temporary files, generated certificates, and MCP logs when they are no longer needed for the diagram workflow.

Prerequisites

  • Node.js 22 or newer for the published npm package.
  • An MCP client such as Claude Desktop or Claude Code.
  • A browser for the built-in editor, or the Draw.io MCP browser extension when controlling an existing diagrams.net tab.
  • Review of which diagrams, browser tabs, pages, and export locations Claude is allowed to modify.
  • TLS planning when using Firefox, browser-extension WebSocket connections, reverse proxies, or network-accessible transports.

Schema details

Install type
cli
Troubleshooting
No
Source repository stats
Scope
Source repo
Collection metadata
Estimated setup
10 minutes
Difficulty
intermediate
Tool listing metadata
Disclosure
Community-maintained open source MCP server for Draw.io/diagrams.net, published as the `drawio-mcp-server` npm package under the MIT license.
Full copyable content
{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["-y", "drawio-mcp-server", "--editor"],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true"
      }
    }
  }
}

About this resource

Content

Draw.io MCP Server lets Claude control Draw.io and diagrams.net diagrams through MCP. It can inspect connected documents, work across pages and layers, add and edit shapes or edges, import Mermaid diagrams, export XML/SVG/PNG files, and run a built-in editor without requiring a separate browser extension.

Use it when Claude needs supervised access to create or maintain architecture diagrams, flowcharts, cloud diagrams, process maps, or visual documentation in a Draw.io-compatible format.

Source Review

These sources were reviewed on 2026-06-06. Prefer the live repository, README, npm metadata, license, package manifests, configuration guide, tools reference, server entrypoint, and tool registry for current setup and behavior details.

Features

  • Run a built-in Draw.io editor from the MCP server.
  • Connect to Draw.io or diagrams.net browser tabs through the companion extension.
  • List connected documents and target a specific document in multi-tab workflows.
  • List, create, copy, rename, and inspect pages.
  • Inspect selected cells, page models, layers, shape libraries, and vendor stencil categories.
  • Add rectangles, library shapes, edges, labels, parent-child relationships, layer assignments, and custom cell data.
  • Edit or delete existing shapes and edges by ID.
  • Import Draw.io XML, SVG, PNG, or Mermaid diagrams.
  • Export diagrams as XML, SVG, or PNG, including formats with embedded XML.
  • Enable HTTP transport, custom ports, host binding, WebSocket overrides, TLS, and auto-generated local certificates when needed.

Installation

Configure your MCP client with the published npm package and the built-in editor mode:

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["-y", "drawio-mcp-server", "--editor"],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true"
      }
    }
  }
}

Claude Code users can add it with:

claude mcp add-json drawio '{"type":"stdio","command":"npx","args":["-y","drawio-mcp-server","--editor"]}'

After the MCP server starts, open the local editor URL printed by the server or configure the browser extension to connect to the matching WebSocket settings.

Use Cases

  • Generate an architecture diagram from a written system description.
  • Convert Mermaid diagrams into editable Draw.io pages.
  • Add cloud, network, or Cisco stencil shapes to infrastructure diagrams.
  • Create a multi-page visual design document from separate agent tasks.
  • Inspect a diagram's pages, layers, selected cells, and exported XML.
  • Update labels, connectors, layer organization, or metadata in an existing Draw.io file.
  • Export diagrams for review while preserving embedded editable XML.

Safety and Privacy

Draw.io MCP Server can mutate diagrams directly. Confirm the connected document, target page, and cell IDs before running edits, especially when multiple tabs or agents are active.

Architecture diagrams often reveal sensitive implementation details. Keep diagram XML, embedded SVG/PNG exports, browser-extension state, generated TLS material, and MCP logs within approved storage, and review all generated visuals before publishing or committing them.

Source citations

Add this badge to your README

Show that Draw.io MCP Server is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/mcp/drawio-mcp-server.svg)](https://heyclau.de/entry/mcp/drawio-mcp-server)

How it compares

Draw.io MCP Server side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

Field

MCP server for controlling Draw.io and diagrams.net diagrams from Claude, including document discovery, page management, layers, shapes, edges, Mermaid import, diagram import/export, and a built-in editor mode.

Open dossier

Official Agentset MCP server that lets Claude retrieve cited knowledge-base results from an Agentset namespace through the `knowledge-base-retrieve` tool, with optional tenant scoping and custom tool descriptions.

Open dossier

Unity MCP server, plugin, CLI, and skill generator for controlling Unity Editor and runtime projects from MCP clients through built-in game-dev tools.

Open dossier

MCP server for Anki flashcards that lets Claude review cards, manage decks, create and update notes, handle tags and media, inspect stats, and drive Anki desktop GUI workflows.

Open dossier
Next steps
Trust
Review statusNot reviewedNot reviewedNot reviewedNot reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
Submitteroktofeesh1oktofeesh1oktofeesh1oktofeesh1
Install riskReview firstReview firstReview firstReview first
Notes Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓ Safety ✓ Privacy ✓
BrandDraw.io MCP Server logoDraw.io MCP ServerAgentset logoAgentsetAI Game Developer logoAI Game DeveloperAnki MCP Server logoAnki MCP Server
Categorymcpmcpmcpmcp
SourceSource-backedSource-backedSource-backedSource-backed
AuthorLukas GazoAgentsetIvan MurzakAnkiMCP
Added2026-06-062026-06-062026-06-062026-06-06
Platforms
Harness
Source repo
Safety notesDraw.io MCP Server can create, edit, delete, import, export, rename, copy, and reorganize diagram pages, layers, shapes, edges, labels, metadata, and Mermaid-derived content. Live operations target connected Draw.io browser tabs or the built-in editor; verify the selected document and page before allowing destructive edits. The server can run local HTTP and WebSocket endpoints, optionally with TLS or auto-generated self-signed certificates; avoid binding it to untrusted network interfaces. Browser-extension mode links a browser tab to the MCP server, so only connect tabs containing diagrams that the agent is allowed to inspect or modify. Export tools can write or return XML, SVG, and PNG files with embedded diagram data; review outputs before sharing them externally. Use trusted package sources, pin versions for repeatable workflows, and review generated diagrams before committing architectural or security documentation.The MCP server sends Claude's retrieval queries to the Agentset API using the configured API key and namespace. The `knowledge-base-retrieve` tool can return up to 100 results per call and can rerank results by relevance. Namespace and tenant selection control which indexed documents are searchable; review them before connecting a shared agent. API keys should be scoped, rotated, and stored only in the MCP server environment or a secret manager. Custom tool descriptions can influence when the model calls the retrieval tool, so review them before use in production workflows.AI Game Developer can create, move, copy, modify, and delete Unity assets, scenes, GameObjects, components, scripts, packages, and generated project files. Tools include dynamic C# script execution, C# reflection method lookup and calls, package installation/removal, Unity test execution, editor state changes, play mode control, screenshots, and profiler access. The MCP server supports streamable HTTP and stdio; HTTP deployments should require a bearer token and stay bound to trusted interfaces. Server variables include optional authorization and webhook settings; webhook endpoints can receive tool, prompt, resource, connection, and authorization events. Unity runtime connections can expose compiled game state or in-game behavior to an MCP client, not just editor-only project data. Use source control, backups, tool filtering, and explicit review before allowing destructive tools such as asset deletion, package removal, script execution, or reflection calls.Anki MCP Server can create, update, delete, move, tag, rate, and sync cards and notes through AnkiConnect. Destructive tools include note deletion, media deletion, unused-tag clearing, deck moves, tag replacement, model styling changes, and review rating actions that affect scheduling. The server supports read-only mode that blocks exposed write actions, but users should still review tool calls before enabling unrestricted study or collection-management workflows. Media tools can store files from local paths, URLs, or base64 data and can retrieve media as base64 content. GUI tools can open Anki windows, select cards, edit notes, show answers, and undo the last Anki action. Remote tunnel or ngrok-style setups expose local Anki to cloud-hosted AI clients and require careful authentication, origin, and URL-sharing controls.
Privacy notesDiagrams can include private architecture, network topology, cloud account names, customer systems, credentials embedded in labels, incident details, internal process maps, or product plans. The MCP client can receive diagram XML, SVG, PNG exports, page names, layer names, selected-cell data, shape metadata, browser tab document metadata, and imported Mermaid content. Local editor and browser-extension workflows may leave diagrams, exported files, browser state, TLS material, and logs on disk. Treat exported SVG or PNG files with embedded XML as source files, because they can contain full editable diagram data beyond the visible image. Clear temporary files, generated certificates, and MCP logs when they are no longer needed for the diagram workflow.Retrieved chunks can include private documents, product specs, policies, support content, internal procedures, historical project information, or customer-specific data. Retrieval queries, namespace IDs, tenant IDs, document chunks, citations, and tool outputs may be visible to the MCP client, model provider, Agentset logs, and application telemetry. Tenant IDs are useful for data segregation, but incorrect tenant or namespace configuration can expose the wrong knowledge base. Do not paste API keys, namespace IDs, tenant IDs, or retrieved private chunks into shared issue reports, screenshots, or repository files.Tool calls may expose Unity project paths, asset names, scene hierarchy, serialized object data, scripts, logs, screenshots, profiler metrics, test output, package metadata, and runtime state. MCP config files and Unity plugin config can contain server URLs, connection modes, bearer tokens, authorization settings, enabled tool IDs, and cloud or local endpoint details. Optional webhooks can receive tool, prompt, resource, connection, authorization, and token-bearing request data. Screenshots from Game View, Scene View, cameras, or isolated GameObjects may include proprietary artwork, level design, UI, debug overlays, or unreleased game content. Generated skills and AI-client configuration files can reveal available tools, project structure, installed packages, and local workflow assumptions.Tool calls can expose deck names, note fields, card contents, tags, review history, media filenames, base64 media, selected notes, collection stats, scheduling metadata, and AnkiConnect errors. Flashcards may contain medical, language-learning, school, work, personal, customer, or confidential study material. Sync can send Anki collection changes to AnkiWeb according to the user's Anki account and sync settings. Local media file paths, URLs imported into cards, and GUI-selected note IDs can enter MCP client context and model logs. Remote tunnel providers and hosted clients may process connection metadata or traffic according to their own policies.
Prerequisites
  • Node.js 22 or newer for the published npm package.
  • An MCP client such as Claude Desktop or Claude Code.
  • A browser for the built-in editor, or the Draw.io MCP browser extension when controlling an existing diagrams.net tab.
  • Review of which diagrams, browser tabs, pages, and export locations Claude is allowed to modify.
  • Agentset account or self-hosted Agentset deployment with a populated namespace.
  • Agentset API key with access to the namespace Claude should query.
  • Node.js 18.17 or newer for running the `@agentset/mcp` package.
  • Namespace ID selected with `--ns` or `AGENTSET_NAMESPACE_ID`.
  • Unity project using Unity 2022.3 or newer for the current package metadata.
  • Unity Hub or a local Unity Editor installation.
  • Node.js 20.19 or newer, or Node.js 22.12 or newer, for `unity-mcp-cli`.
  • An MCP client such as Claude Code, Claude Desktop, Codex, Cursor, Gemini CLI, GitHub Copilot, Cline, or another supported client.
  • Anki Desktop installed and running.
  • The AnkiConnect add-on installed in Anki.
  • Node.js 22.12 or newer for the npm package path.
  • Review of which decks, cards, tags, media files, and note types the MCP client may access.
Install
npx -y drawio-mcp-server --editor
Run `npx @agentset/mcp --ns <namespace-id>` with `AGENTSET_API_KEY` set in the MCP server environment.
npm install -g unity-mcp-cli && unity-mcp-cli install-plugin ./MyUnityProject
npx -y @ankimcp/anki-mcp-server --stdio
Config
{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": [
        "-y",
        "drawio-mcp-server",
        "--editor"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true"
      },
      "type": "stdio"
    }
  }
}
{
  "mcpServers": {
    "agentset": {
      "command": "npx",
      "args": ["-y", "@agentset/mcp@latest", "--ns", "ns_xxx"],
      "env": {
        "AGENTSET_API_KEY": "agentset_xxx"
      }
    }
  }
}
Manual-only setup:
npm install -g unity-mcp-cli
unity-mcp-cli install-plugin ./MyUnityProject
unity-mcp-cli open ./MyUnityProject
{
  "mcpServers": {
    "anki": {
      "command": "npx",
      "args": [
        "-y",
        "@ankimcp/anki-mcp-server",
        "--stdio"
      ],
      "type": "stdio"
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.