AWS Logo
Menu
Create Architecture Diagrams using Amazon Q CLI + MCP

Create Architecture Diagrams using Amazon Q CLI + MCP

Tired of spending hours creating AWS architecture diagrams? I’ve built an AI agent using Amazon Q CLI + MCP that automates this process—just give it a prompt, and voilà! Your diagram is ready in seconds.

Published May 25, 2025

How It Works?

🔹 Amazon Q CLI: The generative AI assistant that understands your prompts and generates accurate AWS architecture layouts.
🔹 MCP Server: Ensures seamless execution, scalability, and integration with AWS services.
No more dragging icons, aligning lines, or wasting time—just describe your architecture, and let the AI do the heavy lifting!
 

Linux (Ubuntu)

  1. Launch EC2 Instance and follow below steps
sudo apt-get update
sudo apt install libfuse2
  1. Install the deb file for Amazon Q
curl --proto '=https' --tlsv1.2 -sSf https://desktop-release.q.us-east-1.amazonaws.com/latest/amazon-q.deb -o amazon-q.deb
sudo apt install -y ./amazon-q.deb
3. Login into Amazon Q developer by creating a BuilderID here followed by command
q login
Select login method · Use for Free with Builder ID
once you have logged in, just fire command
q

Setup MCP Server

Exit from Amazon Q CLI -
Now let's power up your Amazon Q CLI with MCP Servers.
You need uv to install and Run MCP Servers
sudo snap install astral-uv --classic
Now create a file called mcp.json in ~/.aws/amazonq and
add this
You are all set now!
Give prompt
Enter below to allow action

 

Comments