Generate draw.io diagrams and architecture designs from natural language, via the DrawX API.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
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.
drawx_live_. API access is a paid feature (bundled with the DrawX Pro plan).Or, if your MCP client supports npx, no install is needed β reference npx @drawx/mcp-server directly.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Restart Claude Desktop. In a new chat, ask "Draw me a microservices checkout flow" β Claude will call generate_diagram and show the resulting XML.
Edit ~/.cursor/mcp.json:
Add to your workspace or user settings.json:
| Variable | Required | Purpose |
|---|---|---|
DRAWX_API_KEY | yes | Your DrawX API key (drawx_live_...). |
DRAWX_API_BASE | no | Override the API base URL (default https://getdrawx.com/api/v1). Useful for staging. |
generate_diagramTurn 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_designRun 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".whoamiNo inputs. Returns your email, plan, API tier, and remaining monthly API quota.
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.
MIT Β© 2026 DrawX
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/drawx-mcp-server)<a href="https://allmcps.com/mcp/drawx-mcp-server"><img src="https://allmcps.com/api/badge/drawx-mcp-server?style=directory" alt="Drawx Mcp Server on AllMCPs" /></a>