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:
node --version
npx --versionRecommended Install
npx skills add bahayonghang/drawio-skillsThis installs the skill into the correct skill directory for the current client integration.
Manual Install
1. Clone the repository
git clone https://github.com/bahayonghang/drawio-skills.git
cd drawio-skills2. 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:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["--yes", "@next-ai-drawio/mcp-server@latest"]
}
}
}Windows:
{
"mcpServers": {
"drawio": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "--yes", "@next-ai-drawio/mcp-server@latest"]
}
}
}Codex config.toml
macOS / Linux:
[mcp_servers.drawio]
command = "npx"
args = ["--yes", "@next-ai-drawio/mcp-server@latest"]Windows:
[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,.jpgexport- 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:
/drawio create a small high-contrast flowchart with 4 nodesVerify the local CLI
node skills/drawio/scripts/cli.js skills/drawio/references/examples/login-flow.yaml --validateVerify optional MCP availability
npm view @next-ai-drawio/mcp-server versionTroubleshooting
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.