@drawx/mcp-server
Generates draw.io XML diagrams that can be opened and edited in diagrams.net.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@drawx/mcp-server design a microservices checkout flow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@drawx/mcp-server
Generate draw.io diagrams and architecture designs from inside Claude, Cursor, or VS Code.
DrawX MCP is a Model Context Protocol server that gives your AI assistant three tools:
generate_diagram— one-shot: natural-language prompt → complete draw.io XML.architect_design— from a brief, produce a High-Level Design diagram (optionally an LLD + design doc).whoami— verify your API key + see remaining quota.
Behind the scenes it calls the DrawX public API, so output matches the DrawX web app exactly.
Requirements
Node.js 18+
A DrawX API key — create one in DrawX → Settings → API keys. Keys start with
drawx_live_. API access is a paid feature (bundled with the DrawX Pro plan).
Related MCP server: next-ai-drawio
Install
npm install -g @drawx/mcp-serverOr, if your MCP client supports npx, no install is needed — reference npx @drawx/mcp-server directly.
Configure your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"drawx": {
"command": "npx",
"args": ["-y", "@drawx/mcp-server"],
"env": {
"DRAWX_API_KEY": "drawx_live_..."
}
}
}
}Restart Claude Desktop. In a new chat, ask "Draw me a microservices checkout flow" — Claude will call generate_diagram and show the resulting XML.
Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"drawx": {
"command": "npx",
"args": ["-y", "@drawx/mcp-server"],
"env": { "DRAWX_API_KEY": "drawx_live_..." }
}
}
}VS Code (Copilot MCP)
Add to your workspace or user settings.json:
{
"mcp": {
"servers": {
"drawx": {
"command": "npx",
"args": ["-y", "@drawx/mcp-server"],
"env": { "DRAWX_API_KEY": "drawx_live_..." }
}
}
}
}Environment variables
Variable | Required | Purpose |
| yes | Your DrawX API key ( |
| no | Override the API base URL (default |
Tools reference
generate_diagram
Turn a description into draw.io XML.
Inputs
prompt(string, required) — what to draw.mode—"flash"(default),"pro", or"ultra". Trades speed for quality.previousXml— an existing mxfile to modify.
Output — assistant text: a summary line (model, tokens, cost) followed by the full <mxfile>...</mxfile> XML in a fenced code block. Paste the XML into diagrams.net or save as .drawio.
architect_design
Run the DrawX Architect Co-Pilot on a brief. Streams intermediate progress; returns a JSON payload with hld (and optional lld, doc).
Inputs
brief(string, required, ≥ 20 chars) — what to design.depth—"hld","hld_lld"(default), or"hld_lld_doc".style—"cloud_agnostic"(default),"aws","azure", or"gcp".mode—"flash"(default),"pro", or"ultra".
whoami
No inputs. Returns your email, plan, API tier, and remaining monthly API quota.
Quota + rate limits
API usage is metered on a separate tier from your in-app usage. Pro subscribers get 200 API calls / month. The rate limit is 60 requests / minute. On the free plan, API access is not enabled — upgrade at getdrawx.com.
Local development
git clone https://github.com/SaharshPamecha/drawx-mcp-server
cd drawx-mcp-server
npm install
npm run build
DRAWX_API_KEY=drawx_live_... node dist/index.js # runs over stdio; use an MCP inspector
npm testLicense
MIT © 2026 DrawX
Available Tools
3 toolsarchitect_designDesign a system architectureA
Run the DrawX Architect Co-Pilot: from a brief, produce a High-Level Design diagram (optionally a Low-Level Design and a written design document). Returns the diagram XML and rationale. Best for 'design me an architecture for X' requests.
Inputs: brief (required), mode, depth, style.
generate_diagramGenerate a draw.io diagramA
Generate a draw.io (diagrams.net) diagram from a natural-language description. Returns complete mxfile XML you can save as a .drawio file or paste into diagrams.net. Pass previousXml to modify an existing diagram.
Inputs: prompt (required), mode, previousXml.
whoamiShow DrawX account + API quotaA
Show the DrawX account tied to the configured API key, its plan, API tier, and remaining monthly API quota. Useful to confirm the key works before generating.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The tools 'generate_diagram' and 'architect_design' both generate diagrams but serve distinct purposes: general diagram creation vs. architectural design with documentation. 'whoami' is unrelated. Descriptions clearly differentiate the two diagram tools, though some overlap remains for architecture diagram requests.
Tool names are all lowercase with underscores, but patterns differ: 'generate_diagram' (verb_noun), 'architect_design' (noun_noun or unusual verb_noun), and 'whoami' (standalone command). The mix of conventions makes the set less predictable.
With 3 tools, the surface is minimal but well-scoped for the server's purpose of generating diagrams from natural language. Each tool serves a core function: general generation, architectural design with documentation, and account verification. No tool feels redundant or missing.
The server covers diagram generation and modification (via previousXml) and includes architectural design with written output. It lacks tools for listing, deleting, or converting diagrams, which is acceptable given the focus on generation. Minor gap in retrieving non-XML outputs.
Maintenance
Related MCP Connectors
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
Draw architecture diagrams, UML, planning boards and clickable wireframes from your AI assistant.
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Software diagrams for developers, teams and agents — give your AI agents diagramming superpowers.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn architecture descriptions, flows, and data into 25 types of auto-laid-out, hand-drawn .excalidraw diagrams that stay editable, with optional SVG/PNG export and a version-controlled knowledge graph the AI can query and lint. Runs fully offline in Cursor, Claude Code, and Windsurf with no API keys, and diagrams can be revised through natural language.-
- AlicenseAqualityAmaintenanceLets Claude Code, Cursor, VS Code and other AI agents draw and edit draw.io diagrams from your project's files, on a live browser canvas you can also edit by hand. Includes version history, undo, cloud shape libraries (AWS, Azure, GCP) and PNG or SVG export.41637,125Apache 2.0
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn natural-language descriptions of systems, processes, and data into auto-laid-out, hand-drawn editable diagram files across 25 diagram types — architecture, flowcharts, sequence, swimlanes, ER models, Gantt, timelines and charts — with optional natural-language revision and SVG/PNG export. It can also persist an architecture as a version-controlled knowledge graph that the AI can query and lint, running fully offline in Cursor, Claude Code and Windsurf without API keys.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to turn described architecture and data into 25 types of hand-drawn, auto-laid-out Excalidraw diagrams and editable .excalidraw files, with natural-language revision, SVG/PNG export, and an optional queryable architecture knowledge graph. Runs fully offline in Cursor, Claude Code, and Windsurf without API keys.-