@drawio/mcp weekly downloads statistics
By drawio (2 listings) · npm · MCP servers
Official draw.io MCP server for LLMs - Open diagrams in draw.io editor
@drawio/mcp has 27,268 recorded weekly downloads on npm, a decrease of 36.9% over the past 30 days, ranking #947 of 3,247 tracked listings.
About @drawio/mcp
Draw.io MCP Tool Server
The official draw.io MCP server that opens diagrams directly in the draw.io editor. Supports XML, CSV, and Mermaid.js formats with lightbox and dark mode options.
This package is part of the drawio-mcp repository, which also includes:
- MCP App Server — Renders diagrams inline in AI chat interfaces. Hosted at
https://mcp.draw.io/mcp— no install required. - Claude Code Plugin — Claude Code plugin that generates native
.drawiofiles with optional PNG/SVG/PDF export. - Project Instructions — Zero-install approach using Claude Project instructions.
Features
- Open XML diagrams: Load native draw.io/mxGraph XML format
- Import CSV data: Convert tabular data to diagrams (org charts, flowcharts, etc.)
- Render Mermaid.js: Transform Mermaid syntax into editable draw.io diagrams
- Save diagram files: Write a diagram as a new local
.drawiofile, and read or change one page of a file - Customizable display: Lightbox mode, dark mode, and more
Installation
Using npx (recommended)
npx @drawio/mcp
Global installation
npm install -g @drawio/mcp
drawio-mcp
From source
git clone https://github.com/jgraph/drawio-mcp.git
cd drawio-mcp/mcp-tool-server
npm install
npm start
Configuration
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["@drawio/mcp"]
}
}
}
Claude Code
claude mcp add drawio -- npx -y @drawio/mcp
Or manually in .claude/settings.json:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["-y", "@drawio/mcp"]
}
}
}
VS Code (GitHub Copilot)
Add to .vscode/mcp.json in your workspace (or run MCP: Open User Configuration for a global config):
{
"servers": {
"drawio": {
"command": "npx",
"args": ["-y", "@drawio/mcp"]
}
}
}
Then click Start above the server entry, trust the server when prompted, switch Copilot Chat to Agent mode, and make sure the drawio tools are enabled under Configure Tools (🔧) in the chat input.
Other clients that use stdio (Windsurf, etc.) use the same config shape as above.
Tip: VS Code 1.109 and later also supports the MCP Apps extension, so the hosted MCP App Server at
https://mcp.draw.io/mcpworks in Copilot Chat too, rendering diagrams inline in chat instead of opening a browser tab. To use it, replacecommandandargsabove with"type": "http"and"url": "https://mcp.draw.io/mcp". Use this stdio server if you prefer diagrams to open in the full draw.io editor.
Cursor
Click the button above for one-click install, or add the server manually to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["-y", "@drawio/mcp"]
}
}
}
Enable the server when prompted (or under Cursor Settings → MCP), then ask the Agent to create a diagram — it opens in the draw.io editor in your browser.
Tip: Cursor also supports the MCP Apps extension, so the hosted MCP App Server at
https://mcp.draw.io/mcpworks in Cursor too, rendering diagrams inline in chat instead of opening a browser tab. Use this stdio server if you prefer diagrams to open in the full draw.io editor.
OpenCode
Add the server under the mcp key of opencode.json in your project root (or ~/.config/opencode/opencode.json for every project):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"drawio": {
"type": "local",
"command": ["npx", "-y", "@drawio/mcp"],
"enabled": true
}
}
}
The tools are available on the next start; ask the agent to create a diagram and it opens in the draw.io editor in your browser.
Tip: OpenCode also loads the
drawioskill (native.drawiofiles, PNG/SVG/PDF export) without any plugin wrapper — see the plugins README.
Gemini CLI
The repository is a Gemini CLI extension (gemini-extension.json at its root), which runs this server through npx:
gemini extensions install https://github.com/jgraph/drawio-mcp
gemini mcp list shows the server as drawio; ask for a diagram and it opens in the draw.io editor in your browser. gemini extensions update drawio picks up a changed manifest; the server itself is always the latest @drawio/mcp.
Other MCP Clients
Configure your MCP client to run the server via stdio:
npx @drawio/mcp
Self-hosted draw.io
To open diagrams in a self-hosted draw.io instance, set the DRAWIO_BASE_URL environment variable to your instance URL (default: https://app.diagrams.net/):
{
"mcpServers": {
"drawio": {
"command": "npx",
"args": ["-y", "@drawio/mcp"],
"env": {
"DRAWIO_BASE_URL": "https://drawio.example.com/"
}
}
}
}
Return the link without opening a browser…
Description from the npm listing.
- mcp
- drawio
- draw.io
- diagrams
- mermaid
- csv
- xml
- llm
- claude
- anthropic
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 @drawio/mcp alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@drawio/mcp. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.