drawx-mcp-server
MCP server by SaharshPamecha Community
Generates draw.io diagrams and architecture designs from natural language inside Claude, Cursor, or VS Code, using the DrawX API. Useful for people who want diagrams without leaving their AI assistant.
Install drawx-mcp-server
Built from the published package, never by AI.
claude mcp add drawx-mcp-server -e DRAWX_API_KEY=YOUR_DRAWX_API_KEY -- npx -y @drawx/mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"drawx-mcp-server": {
"env": {
"DRAWX_API_KEY": "YOUR_DRAWX_API_KEY"
},
"args": [
"-y",
"@drawx/mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"drawx-mcp-server": {
"env": {
"DRAWX_API_KEY": "YOUR_DRAWX_API_KEY"
},
"args": [
"-y",
"@drawx/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"drawx-mcp-server": {
"env": {
"DRAWX_API_KEY": "YOUR_DRAWX_API_KEY"
},
"args": [
"-y",
"@drawx/mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add drawx-mcp-server --env DRAWX_API_KEY=YOUR_DRAWX_API_KEY -- npx -y @drawx/mcp-server{
"mcpServers": {
"drawx-mcp-server": {
"env": {
"DRAWX_API_KEY": "YOUR_DRAWX_API_KEY"
},
"args": [
"-y",
"@drawx/mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add drawx-mcp-server npx -y @drawx/mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the drawx-mcp-server block.
About
drawx-mcp-server is a Model Context Protocol server that lets AI assistants such as Claude, Cursor, or VS Code generate draw.io diagrams and architecture designs from natural language. It gives the assistant three tools. generate_diagram turns a prompt into complete draw.io XML, architect_design produces a High-Level Design from a brief, and whoami checks the API key and remaining quota.
The server calls the public DrawX API, so its output matches the DrawX web app. It requires a DrawX API key that starts with drawx_live_, and API access is a paid feature bundled with the DrawX Pro plan. It runs on Node.js 18 or later and suits people who want diagrams created from inside their AI assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
generate_diagramTurns a natural-language prompt into complete draw.io XML.architect_designProduces a High-Level Design diagram from a brief, optionally with an LLD and design doc.whoamiVerifies your API key and shows your email, plan, API tier, and remaining monthly quota.
What you need
- DrawX API key (starts with drawx_live_)
- DrawX Pro plan for API access
- Node.js 18 or later
- MCP client such as Claude Desktop, Cursor, or VS Code
| Setting | Needed | What it is |
|---|---|---|
DRAWX_Environment variable, secret | Required | Your DrawX API key (create one at https://getdrawx.com → Settings → API keys; starts with drawx_live_). |
DRAWX_Environment variable | Optional | Override the DrawX API base URL (defaults to https://getdrawx.com/api/v1). |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Draw me a microservices checkout flow
- Design a high-level architecture for a web app on AWS
- Check my DrawX API key and how much monthly quota I have left
Good to know
- The free plan does not enable API access.
- Pro subscribers get 200 API calls per month.
- The rate limit is 60 requests per minute.
- API usage is metered separately from in-app usage.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to drawx-mcp-server
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
drawx-mcp-server: common questions
Do I need a paid plan to use it?
Yes. API access is a paid feature bundled with the DrawX Pro plan, and the free plan does not enable API access.
How do I open the generated diagram?
Paste the returned XML into diagrams.net or save it as a .drawio file.
What do the mode options do?
The generate_diagram and architect_design tools accept flash, pro, or ultra modes, which trade speed for quality.
How do I install drawx-mcp-server?
In Claude Code run claude mcp add drawx-mcp-server -e DRAWX_API_KEY=YOUR_DRAWX_API_KEY -- npx -y @drawx/mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is drawx-mcp-server the official server?
drawx-mcp-server is a community project by SaharshPamecha, not verified by a company domain.
Is drawx-mcp-server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is drawx-mcp-server safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to drawx-mcp-server?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does drawx-mcp-server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
