Cloud Diagram MCP
Visualizes Terraform plan changes as cloud architecture diagrams with official provider icons, showing hierarchical architecture views with dependency connections and color-coded changes.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cloud Diagram MCPvisualize the Terraform plan from plan.json"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cloud Diagram MCP
MCP server that visualizes Terraform plan changes as cloud architecture diagrams with official AWS, Azure, and GCP icons.
Features
Generate diagrams from Terraform plan JSON (no cloud credentials required)
Multi-cloud support with official provider icons
Hierarchical architecture views with dependency connections
Interactive HTML with clickable resources showing configuration details
Color-coded changes: green (create), red (delete), orange (update), purple (replace)
Related MCP server: CloudForge MCP Server
Screenshots
Installation
Prerequisites: Python 3.10+, Graphviz, Node.js 18+
# Install Graphviz
# Ubuntu/Debian: sudo apt-get install graphviz
# macOS: brew install graphviz
# Windows: winget install --id Graphviz.Graphviz (add bin to PATH)
# Clone and install
git clone https://github.com/aviveldan/cloud-diagram-mcp.git
cd cloud-diagram-mcp
pip install -r requirements.txt
# Build React UI
cd ui && npm install && npm run build && cd ..Usage
MCP Server
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"cloud-diagram": {
"command": "python3",
"args": ["-m", "cloud_diagram_mcp.server"],
"cwd": "/path/to/cloud-diagram-mcp"
}
}
}Terraform Plan
terraform plan -out=tfplan
terraform show -json tfplan > plan.jsonUse the MCP visualize_tf_diff tool with the plan JSON as input:
{
"plan": "<plan-json-content>"
}Command Line
python3 test_mcp.py # Test MCP tools
python3 generate_documentation_diagrams.py # Generate example diagramsSupported Resources
AWS: EC2, VPC, RDS, S3, ELB, Lambda, IAM, ElastiCache, Route53, CloudFront, NAT Gateway, and more
Azure: VMs, Virtual Networks, SQL Database, Storage Accounts, Managed Identities, and more
GCP: Compute Engine, VPC, Cloud SQL, Cloud Storage, GKE, and more
Development
# Build UI
cd ui && npm install && npm run build
# Run Python tests (requires Graphviz)
python3 test_mcp.py
# Run Playwright UI tests
cd ui
npm run build
python create-test-harness.py
python create-test-harness-architecture.py
npm testFor complete testing documentation, see TESTING.md.
Continuous Integration
All tests run automatically on every pull request via GitHub Actions. See .github/workflows/test.yml for the complete CI configuration.
For complete CI/CD documentation, including release process and workflows, see CI_CD.md.
CI/CD
This repository includes comprehensive CI/CD workflows:
Tests (
.github/workflows/test.yml): Runs Python and Playwright tests on all PRs and pushes to mainRelease (
.github/workflows/release.yml): Automatically publishes to PyPI when a new version tag is pushedDependabot (
.github/dependabot.yml): Automatically updates dependencies weekly
Creating a Release
Update version in
cloud_diagram_mcp/__init__.pyUpdate
CHANGELOG.mdwith the new version and changesCommit the changes
Create and push a version tag:
git tag v2.1.0 git push origin v2.1.0The release workflow will automatically:
Build the package
Create a GitHub release with release notes
Publish to PyPI
Contributing
We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate cloud architecture diagrams, flowcharts, and sequence diagrams.
Discover cloud shapes and create, inspect, validate, patch, and review architecture diagrams.
Draw your app's architecture on a live canvas and flag the bottlenecks and security gaps.
Unified API to query AWS, GCP, Azure and generate Terraform/CLI execution kits for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables creation of infrastructure and architecture diagrams as code using the Python diagrams library, supporting 15+ cloud providers, 500+ node types, custom icons, and flowcharts with multiple output formats.52MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to visualize cloud architecture diagrams, generate and import Terraform HCL, and manage infrastructure resources directly from chat through the CloudForge platform.189 npmMIT
- AlicenseAqualityCmaintenanceAI-powered cloud architecture - describe infrastructure in natural language, get Terraform, cost estimates, and compliance reports1932MIT
- AlicenseNot gradedqualityDmaintenanceScans AWS environments and generates professional architecture diagrams showing VPC networking, compute, storage, and security resources.MIT