What is Diagram AI Generator?
Diagram AI Generator is a pip package with an MCP server for architecture diagrams. The agent lists providers, categories and exact node names, then sends a JSON spec to create_diagram_from_json, which draws a diagram with real AWS, Azure, GCP or Kubernetes icons. It needs Graphviz installed.
Diagram AI Generator is a Python package that adds an MCP server for cloud architecture diagrams. You describe a system in plain text, and the agent turns it into a diagram with the correct provider icons.
It supports AWS, Azure, GCP and Kubernetes plus on-premises tools. The README counts 400+ AWS services, 300+ Azure, 200+ GCP, 50+ Kubernetes resources and 14 more providers.
Mixing providers in one diagram is supported, with clusters that group components by cloud and connections that cross them.
What it changes in your workflow
- Guided lookup. The agent discovers valid provider, category and node names before drawing, so icons match.
- Name correction. When a node name is slightly wrong, the server suggests alternatives and uses the closest match.
- Multi-cloud layouts. Use the generic provider and tag each component with its cloud.
- Local output. Files are saved to a generated_diagrams folder, or a folder you set.
Who it is for
- Engineers who document infrastructure and want a first draft from a sentence.
- Architects who mix AWS, Azure and GCP in one picture.
- Claude Desktop users, since the README setup targets that app.
Who it is not for
- Anyone who wants a hosted service. You install Python, the package and Graphviz yourself.
- People who need diagrams from existing infrastructure code. The input is a spec you or the agent write.
- Teams that need an actively updated project, since the last push was in October 2025.
Related diagram routes
To draw from Terraform instead of a prompt, see TerraVision MCP. For hand-drawn style boards with vendor icons, Excalidraw Icons MCP is the closer fit, and codex-tldraw MCP derives diagrams from a repo.
Need the surrounding site as well? UiChemy vs Elementor AI compares two AI routes for WordPress pages.
Connect Diagram AI Generator MCP: Cloud Architecture Diagrams with Icons to your AI client
pip install diagram-ai-generatorInstall Graphviz
Run brew install graphviz on macOS or sudo apt-get install graphviz on Ubuntu or Debian. The README lists a missing Graphviz as a common error.
Install the package
Run pip install diagram-ai-generator with Python 3.10 or higher. Use the same Python that your client uses.
Edit your Claude Desktop config
Add the server entry above to claude_desktop_config.json, then restart the app.
Set an output folder
Optional. Add DIAGRAM_OUTPUT_DIR to the env block. Otherwise diagrams save to ./generated_diagrams/ in your current directory.
Ask for a diagram
Try a serverless e-commerce backend on AWS with API Gateway, Lambda, DynamoDB and S3.
Client configuration
{
"mcpServers": {
"diagram-ai-generator": {
"command": "python3",
"args": ["-m", "src.application.mcp.server_modular"]
}
}
}Endpoints and ports
python3 -m src.application.mcp.server_modularStarts the stdio server./path/to/your/diagramsOptional output folder, created if missing.diagram-ai-generatorInstalled with pip.What you can do with it
- Real provider iconsComponents use the actual AWS, Azure or GCP icon for each service.
- Multi-cloud in one diagramSet provider to generic and give each component a component_provider.
- Smart node suggestionsWrong names such as DynamoDB are matched to Dynamodb with a suggestion shown.
- Clusters and connectionsGroup components by cloud and style connections with color, style and labels.
- Layout choiceSpecs accept a layout such as horizontal.
- Docker readyThe README describes one-command deployment with Docker Compose.
- Custom output directoryChoose where files land with DIAGRAM_OUTPUT_DIR.
Tools it exposes
step1_list_providers
Lists all available providers such as AWS, Azure and GCP.
step2_get_categories
Returns the categories for a provider.
step3_get_nodes
Returns the exact node names for a category.
create_diagram_from_json
Generates a diagram from a JSON specification of components, connections and clusters.
multicloud_helper
Guide for building multi-cloud diagrams.
Frequently asked questions
What is Diagram AI Generator?
It is a Python package with an MCP server that draws cloud architecture diagrams. An AI client calls five tools to find valid icon names and then sends a JSON spec, and the server renders a diagram with real AWS, Azure, GCP or Kubernetes icons.
How do I install Diagram AI Generator?
Install Graphviz, run pip install diagram-ai-generator with Python 3.10 or higher, then add the server entry from the README to claude_desktop_config.json and restart Claude Desktop. Use the same Python install that your client uses, or you may see a module not found error.
Which tools does it expose?
Five tools: step1_list_providers, step2_get_categories, step3_get_nodes, create_diagram_from_json and multicloud_helper. The recommended order is to list providers, get categories, get exact node names and then create the diagram from a JSON spec.
Which cloud providers are supported?
AWS, Azure, GCP, Kubernetes and on-premises tools, plus 14 more providers according to the README. It reports 400+ AWS services, 300+ Azure services, 200+ GCP services and 50+ Kubernetes resources. Use exact names from step3_get_nodes to get the right icon.
Can I mix AWS and Azure in one diagram?
Yes. Set the diagram provider to generic, then give each component a component_provider such as aws or azure. Clusters can group components by cloud, and connections can run between clouds. The README includes a full JSON example with AWS, Azure and GCP functions.
Does it need Graphviz?
Yes. The README lists Graphviz not found as a common issue and gives brew install graphviz for macOS and sudo apt-get install graphviz for Ubuntu and Debian. Install it before running the server, then restart your client.
Where are the diagrams saved?
By default in a generated_diagrams folder inside your current directory. Set DIAGRAM_OUTPUT_DIR in the env block of your client config to choose another folder. Use an absolute path and make sure the folder is writable, as the README advises.
Does it work with clients other than Claude Desktop?
The README targets Claude Desktop and describes the server as working with other MCP clients, but it gives configuration only for Claude Desktop. Other clients should work if they can run a local stdio server, but the README does not say so.


