AWS Diagram — Claude Code MCP server: Python-driven diagrams
AWS Diagram — a server that turns Python code into AWS, sequence, flow, and class diagrams using the diagrams package. Fits when schemas should live in the repo next to the code.
Apache-2.0 ★ 9,939 updated 2026-10-23
Open on GitHubWhat AWS Diagram does
AWS Diagram takes Python written in the diagrams DSL and renders it as a picture. Four kinds are supported: AWS infrastructure, sequence, flow, and class. You describe the layout in code, the agent runs it, and the server produces the diagram.
Python plus the diagrams package are required. The server is open source, Apache-2.0, maintained by awslabs in awslabs/mcp alongside other AWS MCP servers. No Python on the machine means no diagrams.
It connects to Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, Cline, Zed, and Gemini CLI. For architecture docs or code review, code-generated schemas replace dragging boxes around.
What it helps with
- Draw an AWS architecture from Python code
- Generate a sequence diagram for service interactions
- Produce a flow diagram without a visual editor
- Describe classes and relations in a class diagram
- Version diagrams alongside the project code
Example prompts for the agent
- Describe the AWS architecture in Python and render the diagram
- Build a sequence diagram: order, payment, delivery
- Create a flow diagram for the user signup process
How to install AWS Diagram
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about AWS Diagram
What does AWS Diagram do?
It renders four diagram types — AWS, sequence, flow, and class — from Python code written in the diagrams DSL. The schema is code, the server draws it.
What do I need to run AWS Diagram?
Python and the diagrams package. The server is Apache-2.0, source in awslabs/mcp.
Which platforms does AWS Diagram support?
Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, and Gemini CLI.