Diagrams.so MCP Server
by redholdio.github.RedHold/diagrams-so-mcpv1.4.6
Generate and edit draw.io cloud architecture diagrams from prompts, Terraform or Kubernetes manifests, fix Well-Architected warnings and export to SVG.
context tax
queued
security
queued
cold start
queued
freshness
Maintained52d ago
Install Diagrams.so MCP server
Install in Claude Code
claude mcp add diagrams-so -e DIAGRAMS_API_KEY='<diagrams-api-key>' -- npx -y @diagrams-so/mcpInstall in Cursor
{
"mcpServers": {
"diagrams-so": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp"
],
"env": {
"DIAGRAMS_API_KEY": "<diagrams-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"diagrams-so": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp"
],
"env": {
"DIAGRAMS_API_KEY": "<diagrams-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"diagrams-so": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp"
],
"env": {
"DIAGRAMS_API_KEY": "<diagrams-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"diagrams-so": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp"
],
"env": {
"DIAGRAMS_API_KEY": "<diagrams-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DIAGRAMS_API_KEY | — | yes | 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 AI Provider. |
| DIAGRAMS_API_BASE | — | — | API base URL. Defaults to production; override only for a local or self-hosted API. |
| DIAGRAMS_API_TIMEOUT_MS | — | — | Per-request timeout in milliseconds for slow generate/edit/fix calls. |
Freshness
Maintained — last maintenance signal 52d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-19 · 52d ago · GitHub
Latest release
2026-08-19 · 52d ago · GitHub · v1.4.6
Package published
no data · npm/PyPI
Registry entry updated
2026-08-19 · 52d ago · official registry · v1.4.6
FAQ
›How do I install the Diagrams.so MCP server in Claude Code?
Run: claude mcp add diagrams-so -e DIAGRAMS_API_KEY='<diagrams-api-key>' -- npx -y @diagrams-so/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Diagrams.so require an API key?
Yes. It expects DIAGRAMS_API_KEY, of which 1 is a secret.
›Can I use Diagrams.so as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Diagrams.so in the official MCP registry?
Yes, as io.github.RedHold/diagrams-so-mcp.
Alternatives to Diagrams.so
Other devops & ci/cd MCP servers.