
TerraVision MCP Server: Draw Cloud Architecture Diagrams with Claude
Lets Claude, ChatGPT and Cursor draw AWS, Azure and Google Cloud architecture diagrams from a description or from Terraform code.
TerraVision lets Claude, ChatGPT or Cursor draw cloud architecture diagrams with the official AWS, Azure and Google Cloud icons. You can describe a system in words and get a diagram, or point it at Terraform code or a Git repository and get a diagram of what that code builds. It is a community project by Patrick Chugh and runs on your own machine.
It needs Graphviz and Git installed, plus Terraform to draw from Terraform code. Files are saved in the output folder, which is the current folder unless you set one.
Good for
- Cloud engineers who want a diagram of their Terraform without drawing it
- Architects sketching a system from a description
- Teams who want diagrams that match the real code
- Claude Desktop and ChatGPT desktop users, where the diagram shows in the chat
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install TerraVision MCP
Claude Code
- 1
Copy this prompt.
Add the TerraVision MCP server to Claude Code. Run this command: claude plugin marketplace add patrickchugh/terravision && claude plugin install terravision-cloud-diagrams@terravision Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires uv, Graphviz, Git.
Read-only mode: There is no read-only mode. Diagram tools write files to the output folder.
Install Graphviz and Git first, plus uv (it runs the server) and Terraform if you want to draw from Terraform code. The command starts the mcp mode of the terravision package from PyPI and writes files to the folder you launch it from. Add --output-dir <folder> to the end to choose where diagrams go. The README documents Claude Desktop, Claude Code, ChatGPT desktop, Codex CLI and Antigravity, and says VS Code with Copilot, Cursor and other clients run the same uvx command; the exact config for each client is in the project's setup guide.
From the project README. Source.
Tools
Loads the drawing rules and example designs before the assistant draws
Gives the assistant the rules, node types and example designs for one cloud (AWS, Azure or Google Cloud), and reports whether Graphviz, Git and Terraform are installed. It is meant to run once before the first drawing.
Try: “What example architectures can you draw for AWS?”
Read ·
diagram_guideDraws a cloud architecture diagram from a description, with no Terraform code
Draws a diagram with official AWS, Azure or Google Cloud icons from a graph the assistant builds from your description. It saves PNG, SVG and draw.io files and a graph file in the output folder, and returns a preview. Its description tells the assistant to prefer it over Mermaid when you ask for a cloud diagram.
Try: “Draw a diagram of a web app on AWS: ALB, two ECS Fargate tasks and an RDS database in private subnets.”
Write ·
render_graphDraws a diagram from existing Terraform code or a Git URL
Reads Terraform from a folder, a Git URL (optionally one folder inside it) or a saved graph file and draws the architecture with the official icons. It runs Terraform to work out resources, and saves image and draw.io files in the output folder.
Try: “Draw the architecture of the Terraform in ./infra.”
Runs code ·
generate_diagramExtracts the architecture of Terraform code as data
Runs Terraform on your code, groups resources into VPCs, subnets and zones, infers how they connect, and returns the result as data instead of a picture. A services-only option returns just the list of cloud service types.
Try: “List the cloud services used by the Terraform in ./infra.”
Runs code ·
generate_architecture_graphCreates a clickable web page of the architecture
Builds one HTML file from Terraform code with clickable, searchable nodes and each resource's details. It works offline once created.
Try: “Make an interactive HTML diagram of the Terraform in ./infra.”
Runs code ·
generate_interactive_htmlOpens a diagram it drew in your image viewer or draw.io
Opens a diagram file from this session in its default app, or opens the folder that holds it. A draw.io file opens in draw.io on the web if the app is not installed. It only opens files the drawing tools returned.
Try: “Open the diagram you just drew.”
Runs code ·
open_diagram_fileUsed by the assistant behind the scenes
Passes a diagram file to the chat app's built-in viewer
A helper for the diagram viewer inside chat apps such as Claude Desktop. It returns a saved diagram file's contents. The assistant does not need to call it.
Try: “(Used by the app, not by you.)”
Files ·
diagram_file
Read from the source code
Permissions
high risk · 5 things to watch
High risk
It runs Terraform on code you point it at and writes diagram files to your disk. Point it only at Terraform you trust, and set an output folder you are happy for it to fill.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It runs Terraform on the code you give it, with your cloud credentials
generate_diagram runs terraform init and terraform plan on a folder or a Git URL, and plan needs your cloud credentials. Running Terraform downloads and executes module and provider code, so only point it at code you trust. A saved plan file plus a graph file skips the Terraform run and needs no credentials. files.pythonhosted.org
It writes files to your disk
Diagrams, graph files and HTML pages go to the output folder, which is the folder you launch from unless you set --output-dir. files.pythonhosted.org
It can open files on your computer
The open tool launches the default app for a diagram it drew in this session. It only opens files that the drawing tools returned. files.pythonhosted.org
Tool text tells the assistant to prefer it
The draw tool says to use it whenever you ask for a cloud diagram and to prefer it over Mermaid. Tell your assistant if you want a different format. files.pythonhosted.org
The license is AGPL-3.0
The package is GNU AGPL v3, so changes you distribute or offer as a network service must be shared under the same terms. github.com
Security advisories
No published security advisories as of Nov 1, 2026.
Technical details
| Turning on read-only | No read-only switch. The diagram tools write files to the output folder. |
|---|---|
| Talks to | Terraform downloads providers and modules when it runs. Git URLs you give it. draw.io on the web (app.diagrams.net), only if you open a .drawio file and the app is missing |
| Sign-in and keys | No account or API key. Drawing from Terraform code may need the cloud credentials that Terraform itself uses, unless you pass an existing plan or graph file. |
Questions
Is the TerraVision MCP server official?
No. It is a community project by Patrick Chugh. It is not made by AWS, Microsoft, Google or HashiCorp, although it uses their official icons.
Do I need Terraform?
Only to draw from Terraform code. Drawing from a description does not need it. Graphviz and Git are needed in both cases.
Do I need cloud credentials?
Not for drawing from a description. For Terraform code, the tool docs say a saved plan plus graph file needs no Terraform run and no cloud credentials, which implies a normal run may.
Is it free?
Yes. The package is AGPL-3.0 and needs no account or API key.
How do I add it to Claude Desktop?
Download the .mcpb file from the latest GitHub release and open it, as the Claude Desktop tab in the install box says. Claude Desktop brings its own runtime, so you do not need uv there.
Where do my diagrams go?
To the folder the server starts in, unless you add an output folder option. The Claude Code plugin saves them in a diagrams folder in your project.
Which cloud providers does it draw?
AWS, Azure and Google Cloud. One diagram covers one provider.
What can it read besides Terraform?
A Git URL, with an optional folder inside it, or a saved tfdata.json graph file.
Information
updated Nov 2, 2026
- Publisher
- Community
- Package
terravision- Registry
- PyPI
- Transport
- stdio
- Version
- 0.56.1
- License
- AGPL-3.0
- Last commit
- Oct 31, 2026
- Open issues
- 19
- Listed in
- Official MCP registry
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 2Hide
- TerraVision on PyPI (0.56.1 README) · pypi.org
- terravision 0.56.1 source: modules/mcp_server.py · files.pythonhosted.org