Diagrams.so MCP
An MCP server that allows AI agents to generate, edit, fix, and export cloud architecture diagrams as editable draw.io files using natural language prompts. It supports AWS, Azure, GCP, and Kubernetes icons, and provides Well-Architected reviews.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Generate cloud architecture diagrams from natural language prompts
- Edit and fix existing diagrams via agent tool calls
- Export diagrams as draw.io XML or SVG
- Receive Well-Architected security warnings
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@diagrams-so/mcp 1.4.7
{
"version": "1.4.7",
"transport": "stdio",
"identifier": "@diagrams-so/mcp",
"runtimeHint": "npx",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "DIAGRAMS_API_KEY",
"description": "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."
},
{
"name": "DIAGRAMS_API_BASE",
"default": "https://api.diagrams.so/api/v2",
"description": "API base URL. Defaults to production; override only for a local or self-hosted API."
},
{
"name": "DIAGRAMS_API_TIMEOUT_MS",
"default": "450000",
"description": "Per-request timeout in milliseconds for slow generate/edit/fix calls."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"diagrams-so-mcp": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp@1.4.7"
],
"env": {
"DIAGRAMS_API_KEY": "<YOUR_DIAGRAMS_API_KEY>",
"DIAGRAMS_API_BASE": "<YOUR_DIAGRAMS_API_BASE>",
"DIAGRAMS_API_TIMEOUT_MS": "<YOUR_DIAGRAMS_API_TIMEOUT_MS>"
}
}
}
}Cline
{
"mcpServers": {
"diagrams-so-mcp": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp@1.4.7"
],
"env": {
"DIAGRAMS_API_KEY": "<YOUR_DIAGRAMS_API_KEY>",
"DIAGRAMS_API_BASE": "<YOUR_DIAGRAMS_API_BASE>",
"DIAGRAMS_API_TIMEOUT_MS": "<YOUR_DIAGRAMS_API_TIMEOUT_MS>"
}
}
}
}VS Code
{
"servers": {
"diagrams-so-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp@1.4.7"
],
"env": {
"DIAGRAMS_API_KEY": "<YOUR_DIAGRAMS_API_KEY>",
"DIAGRAMS_API_BASE": "<YOUR_DIAGRAMS_API_BASE>",
"DIAGRAMS_API_TIMEOUT_MS": "<YOUR_DIAGRAMS_API_TIMEOUT_MS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"diagrams-so-mcp": {
"command": "npx",
"args": [
"-y",
"@diagrams-so/mcp@1.4.7"
],
"env": {
"DIAGRAMS_API_KEY": "<YOUR_DIAGRAMS_API_KEY>",
"DIAGRAMS_API_BASE": "<YOUR_DIAGRAMS_API_BASE>",
"DIAGRAMS_API_TIMEOUT_MS": "<YOUR_DIAGRAMS_API_TIMEOUT_MS>"
}
}
}
}Let your agent find its tools
Find servers like Diagrams.so MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.