Diagrams.so
MCP server by RedHold Community
Generate, edit and manage AWS, Azure, GCP and Kubernetes architecture diagrams from any MCP client. It suits engineers who want diagrams and Well-Architected warnings from their AI assistant.
Install Diagrams.so
Built from the published package, never by AI.
claude mcp add diagrams-so -- npx -y @diagrams-so/mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"diagrams-so": {
"args": [
"-y",
"@diagrams-so/mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"diagrams-so": {
"args": [
"-y",
"@diagrams-so/mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"diagrams-so": {
"args": [
"-y",
"@diagrams-so/mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add diagrams-so -- npx -y @diagrams-so/mcp{
"mcpServers": {
"diagrams-so": {
"args": [
"-y",
"@diagrams-so/mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add diagrams-so npx -y @diagrams-so/mcpGemini 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 diagrams-so block.
About
The Diagrams.so MCP server is a stdio client for the public Diagrams.so API. It exposes 23 tools that let an assistant create, edit, fix, version and export cloud architecture diagrams. The source names Claude Desktop, Claude Code and Cursor as supported clients.
You connect the machine by approving a sign-in in a browser, so no API key is copied into the config. On the Paid plan, exports are real draw.io XML that opens in app.diagrams.net or the desktop app. The Free plan returns watermarked SVG images instead. The code is Apache-2.0 licensed, and it is aimed at developers and architects who design cloud systems.
Written from the project's README and checked against it.
Tools it gives your assistant
generate_diagramCreates a diagram from a prompt, with warnings, a score and draw.io XML or an image link.edit_diagramApplies a natural-language change to an existing diagram as a new version.get_warningsReturns Well-Architected findings for a diagram.fix_warningResolves one Well-Architected warning on a diagram.export_diagramExports a diagram as raw svg or drawio, depending on the plan.list_diagramsLists your diagrams with cursor-based pagination.list_versionsShows the version history of a diagram, marking the current one.search_gallerySearches public community and curated library diagrams.enhance_promptTurns a rough idea into a more detailed diagram prompt.whoamiShows the connected account, plan, scopes and live or test mode.
What you need
- Node.js 18 or later
- A Diagrams.so account, connected by browser approval
- A Paid plan for draw.io export and diagrams without a watermark
| Setting | Needed | What it is |
|---|---|---|
DIAGRAMS_Environment variable, secret | Optional | Diagrams.so API key (dgz_live_... or dgz_test_...). Optional since 1.4.0: run `npx @diagrams-so/mcp login` once instead. Or create a key at https://diagrams.so under Settings then API Keys. |
DIAGRAMS_Environment variable | Optional | API base URL. Defaults to production; override only for a local or self-hosted API. Default: https://api.diagrams.so/api/v2 |
DIAGRAMS_Environment variable | Optional | Per-request timeout in milliseconds for slow generate/edit/fix calls. Default: 450000 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Generate an AWS three-tier web app with an ALB and RDS Multi-AZ, then show the warnings.
- Fix the warning about no encryption in transit and show me the new score.
- Search the gallery for Kubernetes cluster architecture diagrams.
Good to know
- On the Free plan, tools return a watermarked SVG and the editable draw.io file needs the Paid plan.
- Usage is not metered, but there is a per-minute rate limit.
- delete_diagram is destructive, and relayout_diagram needs confirm=true.
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 Diagrams.so
All alternatives →Appllama gives AI assistants research on top-grossing mobile apps, plus a build bar for native-feeling Expo and React Native screens. It suits developers building mobile apps with AI assistants.
Creates, edits and exports editable designs for AI assistants through the CoDesign MCP server, built on IMG.LY's CE.SDK design engine. It suits social teams, agencies and designers who need posters, social posts, videos and print layouts.
Pascal 3D Editor lets AI agents inspect, edit, validate, and save editable 3D building scenes through an MCP server. It is aimed at architecture, engineering, construction, and operations teams. Local use needs no Pascal account.
Agent-Native Design is the Design agent in Agent-Native, an open-source TypeScript framework. It generates and refines interactive designs with agent help. The same actions serve both the agent and the UI.
Draws and edits draw.io diagrams on a live browser canvas for AI agents such as Claude Code, Cursor and VS Code. It suits people who want to draw diagrams with AI and keep editing them by hand.
Framelink MCP for Figma gives coding assistants access to your Figma files. It supplies design data so the assistant can implement designs in any framework, mainly for use with Cursor.
Compare with Appllama, codesign or Pascal 3D Editor
Diagrams.so: common questions
Does Diagrams.so MCP need an API key?
The source says no key is needed to connect. You connect by approving in a browser with the login command, though DIAGRAMS_API_KEY can be set for CI and headless machines.
Can I edit the diagrams it generates?
On the Paid plan the saved .drawio file is real draw.io XML and is fully editable. On the Free plan the tools return a watermarked image instead.
Does the server send data anywhere else?
The source says the server runs locally and connects only to api.diagrams.so, and that it contains no telemetry.
How do I install Diagrams.so?
In Claude Code run claude mcp add diagrams-so -- npx -y @diagrams-so/mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Diagrams.so the official server?
Diagrams.so is a community project by RedHold, not verified by a company domain.
Is Diagrams.so free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Diagrams.so safe to use?
It scores 69 of 100. Grades: maintenance B, 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 Diagrams.so?
Similar MCP servers: Appllama, codesign, Pascal 3D Editor, Agent-Native Design.
Does Diagrams.so 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.
