Skip to content

Installation

Install the Draw.io Skill itself first. Add optional live-edit MCP only if you want browser sessions.

Prerequisites

  • Node.js with npx
  • One supported client:
    • Claude
    • Gemini
    • Codex

Verify Node:

bash
node --version
npx --version
bash
npx skills add bahayonghang/drawio-skills

This installs the skill into the correct skill directory for the current client integration.

Manual Install

1. Clone the repository

bash
git clone https://github.com/bahayonghang/drawio-skills.git
cd drawio-skills

2. Copy skills/drawio into your client's skill directory

Claude

  • macOS: ~/Library/Application Support/Claude/skills/
  • Linux: ~/.config/Claude/skills/
  • Windows: %APPDATA%\Claude\skills\

Gemini

  • macOS: ~/Library/Application Support/gemini/skills/
  • Linux: ~/.gemini/skills/
  • Windows: %APPDATA%\gemini\skills\

Codex

  • macOS / Linux: ~/.codex/skills/
  • Windows: %USERPROFILE%\.codex\skills\

Restart the client after copying the folder.

Optional Live Editing Setup

Normal create/edit/export work does not require MCP. Configure @next-ai-drawio/mcp-server only if you want live browser editing.

Claude / Gemini JSON config

macOS / Linux:

json
{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["--yes", "@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Windows:

json
{
  "mcpServers": {
    "drawio": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "--yes", "@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Codex config.toml

macOS / Linux:

toml
[mcp_servers.drawio]
command = "npx"
args = ["--yes", "@next-ai-drawio/mcp-server@latest"]

Windows:

toml
[mcp_servers.drawio]
type = "stdio"
command = "cmd"
args = ["/c", "npx", "--yes", "@next-ai-drawio/mcp-server@latest"]

Optional Desktop Export Setup

Install draw.io Desktop if you want:

  • .png, .pdf, .jpg export
  • embedded .drawio.svg
  • local desktop preview

The standalone SVG path does not require draw.io Desktop.

Verify the Installation

Verify the skill is reachable

Try a simple request in your client:

text
/drawio create a small high-contrast flowchart with 4 nodes

Verify the local CLI

bash
node skills/drawio/scripts/cli.js skills/drawio/references/examples/login-flow.yaml --validate

Verify optional MCP availability

bash
npm view @next-ai-drawio/mcp-server version

Troubleshooting

The skill loads, but no browser opens

That is expected in the default runtime. Browser sessions happen only when you configured optional MCP and explicitly use live editing.

No active session

You are using MCP tools without a live session. Call start_session first, or switch back to the offline bundle workflow.

Desktop export fails

Use standalone SVG instead, or install draw.io Desktop before using --use-desktop.

Windows MCP launch fails

Wrap npx with cmd /c as shown above. Direct npx launch is often unreliable on Windows MCP transports.

Next Steps

Draw.io Skill v2.2.0 documentation.