TerraVision
PYPI · TERRAVISION
Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.
Available components
Last scanned (1 hour ago)
Scores higher than 93% of PyPI servers
Category Cloud Infrastructure
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs poetry.core.masonry.api at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
- 2 of 33 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency100
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to patrickchugh/terravision). View diagnostics → Pass
- Clear OSI-approved license (AGPL-3.0-only).Pass
- Actively maintained (last published 0 days ago).Pass
- Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability73
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 3852 tokens (~481/item across 8 items; 7 tools + 1 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management63
- Stability observed for 19 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage98
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 95% of tool parameters carry a description.Partial
- Structured output schemas are declared (71% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 7 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 9 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
- Supports UI / widget rendering.Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 17 Oct 26 +16
- Malware scan: unverified → pass ▲ security
- 16 Oct 26 −15
- Malware scan: pass → unverified ▼ security
- Package version: 0.54.0 → 0.55.0 functional
- 15 Oct 26 +1
- Stability: 0.53 → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Schema quality: 100 → unverified ▼ functional
- Security disclosure: fail → pass ▲ functional
- Package version: 0.53.0 → 0.54.0 functional
- 14 Oct 26 +39
- Injection markers: unverified → pass ▲ security
- Tool coverage: unverified → 100 ▲ functional
- Schema quality: unverified → 100 ▲ functional
- Stability: unverified → 0.53 ▲ functional
- MCP protocol: unverified → pass ▲ functional
- 13 Oct 26 0
- Package version: 0.52.0 → 0.53.0 functional
- 12 Oct 26 −34
- Stability: 0.20 → unverified ▼ security
- Tool safety: pass → unverified ▼ security
- Capabilities: pass → unverified ▼ functional
- Tool coverage: 100 → unverified ▼ functional
- Schema quality: 100 → unverified ▼ functional
- Package version: 0.52.0 → 0.53.0 functional
- 3 Oct 26 +16
- Malware scan: unverified → pass ▲ security
- 2 Oct 26 0
- Malware scan: unverified → pass ▲ security
- Package version: 0.51.1 → 0.52.0 functional
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 17 Oct 2026 · Analysed pypi/terravision@0.55.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | pypi |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | patrickchugh/terravision |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/patrickchugh/terravision/.github/workflows/publish-to-pypi.yml@refs/tags/v0.55.0 |
| Rekor log index | 3279930936 |
| Predicate type | PyPI publish attestation https://docs.pypi.org/attestations/publish/v1 |
| Subject digest | sha256:c87c8c4b0307a0084a3ee101a67795fb15010d0b8e957e85e625d0e42af316bb |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | poetry.core.masonry.api |
Background: Why install scripts are a supply-chain risk →
Dependencies 33 packages
| Packages resolved | 33 |
|---|---|
| Stale | 2 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
diagram_file ~112
Return a rendered diagram file's contents to the TerraVision view. Used by the diagram view in chat apps to load the SVG and the graph JSON. Agents do not need it: read the paths in the result yourself. Args: path: A path from the "files" of a diagram result. Returns: {"name", "mimeType", "text"} for text files, or {"name", "mimeType", "blob"} with base64 content.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
diagram_guide ~305
Read this once before calling render_graph. Returns the TerraVision graph rules (types to prefer, containers, what is drawn and what is hidden), worked example graphs, every node type for the provider, and in "setup" whether Graphviz, Git and Terraform are installed: if Graphviz or Git is missing, tell the user what to install before drafting a diagram. Base your graph on the closest example and keep its level of detail: availability zones, public and private subnets, NAT gateways routed to the internet, and shared services in their group. It also lists the gallery, 19 architect-designed diagrams per cloud (streaming, MLOps, IoT, hybrid networks, multi-region, SaaS, payments, security and more); call again with example to get one with its CIDR ranges, labels and flows. And it lists patterns (EKS, SageMaker, Step Functions, GKE, AKS and more) drawn from TerraVision's output for real Terraform; call again with pattern to get one.
| Name | Type | Req | Description |
|---|---|---|---|
| example | – | – | Name of a design from the "gallery" list, to fetch its graph with its title, CIDR ranges, arrow labels and flows as render_graph arguments. |
| pattern | – | – | Name of a pattern from the "patterns" list, to fetch that graph. |
| provider | string | yes | "aws", "azure" or "gcp". One provider per diagram. |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
generate_architecture_graph ~397
Extract the cloud architecture of Terraform code as structured data. Runs Terraform, resolves variables, expands count/for_each, groups resources into their VPCs, subnets and availability zones, and infers the connections between them. Use it to reason about an architecture; the diagram tools render this same graph. A tfdata.json source skips Terraform and returns in seconds. Returns {"graphdict", "node_count", "edge_count", "provider"}, where graphdict maps each Terraform resource address to the addresses it connects to or contains; with services_only, {"services", "count", "provider"}.
| Name | Type | Req | Description |
|---|---|---|---|
| annotate | string | – | Path to a terravision.yml annotation file. |
| graphfile | string | – | Path to an existing `terraform graph` DOT file. |
| planfile | string | – | Path to an existing plan JSON (terraform show -json). With graphfile, Terraform is never run and no cloud credentials are needed. |
| services_only | boolean | – | Return just the deduplicated list of cloud service types instead of the full graph. Much smaller; use this first when you only need to know what a stack is built from. |
| simplified | boolean | – | Drop networking containers (VPCs, subnets, security groups) and show only the services. |
| source | string | yes | Terraform directory, Git URL, or tfdata.json replay file. Add //folder to a Git URL for a folder inside the repository, e.g. "https://github.com/org/repo//examples". A repository whose root is a reus… |
| upgrade | boolean | – | Run `terraform init -upgrade` to refresh modules. |
| varfile | – | – | Paths to .tfvars files; different var files can produce different architectures from the same code. |
| workspace | string | – | Terraform workspace to select. |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
generate_diagram ~857
Render an architecture diagram from Terraform code to a file. Uses the official AWS, Azure and GCP icon sets. Because the diagram is derived from `terraform plan`, it reflects what the code actually deploys rather than an approximation. Runs `terraform init` and `terraform plan` (cloud credentials needed) unless planfile and graphfile are given, so a first call can take minutes. Returns {"path", "format", "provider", "title", "files"}, plus a preview image. "files" holds the PNG, SVG, draw.io file and the graph as .tvg.json, which can be edited and rendered again with render_graph; "path" is the file in the requested format.
| Name | Type | Req | Description |
|---|---|---|---|
| annotate | string | – | Path to a terravision.yml annotation file. |
| edge_labels | – | – | Optional text on arrows the graph already has, to say what each connection does: {"aws_ecs_fargate.app~1 -> aws_rds_sqlserver.db": "Reads orders"}. Either direction names the arrow; a label never add… |
| flows | – | – | Optional numbered steps drawn as badges on the diagram, with a legend. Keyed by flow name: {"order_request": {"description": "A customer places an order", "steps": [{"resource": "tv_aws_users.users",… |
| fontsize | – | – | Label font size in points. |
| format | string | – | "png", "svg", "pdf", "dot" or "drawio" (editable in draw.io and Lucidchart). The full set is always saved; use "svg" to embed in Markdown. |
| graphfile | string | – | Path to an existing `terraform graph` DOT file. |
| iconsize | – | – | Icon size in pixels. |
| outfile | string | – | Output file name without extension, e.g. "three_tier". Files always go to the server's output folder; from a path, only the last part is used. The cloud provider is appended: "architecture" becomes "… |
| planfile | string | – | Path to an existing plan JSON (terraform show -json). With graphfile, no Terraform run and no cloud credentials are needed. |
| preview | boolean | – | Include a preview image of the diagram in the result. |
| simplified | boolean | – | Show only services, omitting networking containers. |
| source | string | yes | Terraform directory, Git URL, or tfdata.json replay file. Add //folder to a Git URL for a folder inside the repository, e.g. "https://github.com/org/repo//examples". A repository whose root is a reus… |
| title | – | – | Heading shown above the diagram, e.g. "Order Platform - Production". Defaults to "Cloud Architecture Diagram". Overrides a title in the annotation file. |
| upgrade | boolean | – | Run `terraform init -upgrade` to refresh modules. |
| use_resource_names | boolean | – | Label nodes with the deployed resource names from the plan. |
| use_tf_names | boolean | – | Label nodes with full Terraform resource names. |
| varfile | – | – | Paths to .tfvars files. |
| workspace | string | – | Terraform workspace to select. |
No output schema declared.
No examples provided.
generate_interactive_html ~443
Render a self-contained interactive HTML diagram for a human to open. The page embeds the diagram, every resource's metadata and its own JavaScript, so it works offline with no server. Nodes are clickable and searchable. Produce this when someone wants to explore an architecture themselves rather than read a static picture. Needs Terraform code; for a JSON graph use render_graph with format "svg". Returns {"path", "provider"} pointing at the generated .html file.
| Name | Type | Req | Description |
|---|---|---|---|
| annotate | string | – | Path to a terravision.yml annotation file. |
| fontsize | – | – | Label font size in points. |
| graphfile | string | – | Path to an existing `terraform graph` DOT file. |
| iconsize | – | – | Icon size in pixels. |
| outfile | string | – | Output file name without extension, e.g. "three_tier". Files always go to the server's output folder; from a path, only the last part is used. The cloud provider is appended. |
| planfile | string | – | Path to an existing plan JSON (terraform show -json). With graphfile, Terraform is never run and no cloud credentials are needed. |
| simplified | boolean | – | Drop networking containers (VPCs, subnets, security groups) and show only the services. |
| source | string | yes | Terraform directory, Git URL, or tfdata.json replay file. Add //folder to a Git URL for a folder inside the repository, e.g. "https://github.com/org/repo//examples". A repository whose root is a reus… |
| title | – | – | Heading shown on the page. Overrides a title in the annotation file. |
| upgrade | boolean | – | Run `terraform init -upgrade` to refresh modules. |
| use_resource_names | boolean | – | Label nodes with the deployed resource names from the plan. |
| use_tf_names | boolean | – | Label nodes with full Terraform resource names. |
| varfile | – | – | Paths to .tfvars files; different var files can produce different architectures from the same code. |
| workspace | string | – | Terraform workspace to select. |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
open_diagram_file ~217
Open a rendered diagram file for the user on their own computer. Opens the file in its default app: the image viewer for .png, draw.io for .drawio (draw.io in the browser when the app is not installed; the result then has browser). With reveal, opens the folder that holds it instead. Only files returned by render_graph or generate_diagram in this session can be opened. Call it when the user asks, or when a diagram result's "display" says the app has no diagram view; never when "display" says the app is already showing the diagram. Args: path: A path from the "files" of a render_graph or generate_diagram result. reveal: Show the file in its folder instead of opening it. Returns: {"opened", "reveal"}, and "browser" when a .drawio file opened in draw.io's web app.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | yes | – |
| reveal | boolean | – | – |
| Name | Type | Req | Description |
|---|---|---|---|
| result | object | yes | – |
No examples provided.
render_graph ~1,044
Draw a cloud architecture diagram from a plain JSON graph. Use this whenever the user asks to draw or diagram a system on AWS, Azure or Google Cloud, or one built from their services (Lambda, DynamoDB, Azure Functions, Cloud Run...), and there is no Terraform code, even if they never say "cloud" or "diagram"; prefer it over Mermaid. Call diagram_guide first for the rules, examples and node types. Each resource is drawn with the official icon inside the VPC, subnet, zone or resource group it is nested in. Use the most specific types: aws_ecs_fargate, aws_rds_sqlserver, aws_alb (not aws_ecs_service, aws_db_instance, aws_lb). Returns the saved files (PNG, SVG, draw.io, .tvg.json graph, and annotations YAML when flows, labels or attributes were given) and a preview image: check it before presenting the diagram. Fix any "warnings" and call again. "next_step" says what to offer the user afterwards.
| Name | Type | Req | Description |
|---|---|---|---|
| attributes | – | – | Optional attributes set on nodes the graph already has, as an annotation file's update section sets them. Use it to give networks and subnets realistic CIDR ranges, shown in their box labels: {"aws_v… |
| edge_labels | – | – | Optional text on arrows the graph already has, to say what each connection does: {"aws_ecs_fargate.app~1 -> aws_rds_sqlserver.db": "Reads orders"}. Either direction names the arrow; a label never add… |
| flows | – | – | Optional numbered steps drawn as badges on the diagram, with a legend. Keyed by flow name: {"order_request": {"description": "A customer places an order", "steps": [{"resource": "tv_aws_users.users",… |
| fontsize | – | – | Label font size in points. |
| format | string | – | "png", "svg", "pdf", "dot" or "drawio" (editable in draw.io and Lucidchart). The full set is always saved; use "svg" to embed in Markdown. |
| graph | object | yes | Object mapping each node address to the node addresses it connects to or contains. Addresses are "<terraform_resource_type>.<name>", e.g. "aws_lambda_function.orders". Containers (aws_vpc, aws_subnet… |
| iconsize | – | – | Icon size in pixels. |
| outfile | string | – | Output file name without extension, e.g. "three_tier". Files always go to the server's output folder; from a path, only the last part is used. |
| preview | boolean | – | Include a preview image of the diagram in the result. |
| title | – | – | Heading shown above the diagram, e.g. "Order Platform - Production". Defaults to "Cloud Architecture Diagram". |
No output schema declared.
No examples provided.
How do I install the TerraVision MCP server?
TerraVision runs locally as a PyPI package, launched with uvx terravision. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · terravision
claude mcp add patrickchugh-terravision -- uvx terravision
What is the TerraVision MCP server?
TerraVision is an MCP server listed in the public MCP registry as io.github.patrickchugh/terravision. Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform. This page covers its PyPI package (terravision).
Is the TerraVision MCP server safe to use?
TerraVision scores 90 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 17 October 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the TerraVision MCP server expose?
TerraVision exposes 7 tools: render_graph, generate_diagram, generate_architecture_graph, generate_interactive_html, diagram_guide, and 2 more. Their descriptions and schemas cost roughly 3,375 tokens of context every time the server is loaded.
Is the TerraVision MCP server still maintained?
TerraVision is still listed as active in the MCP registry. We last reached this channel on 17 October 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the TerraVision MCP server under?
TerraVision declares the AGPL-3.0-only licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.