プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

TerraVision

作者:patrickchughバージョン 0.56.1i★ –iパソコンで動く
レジストリ名io.github.patrickchugh/terravision

インストール

概要

作者による説明(英語の原文)

Draw cloud architecture diagrams with official AWS, Azure and GCP icons from a prompt or Terraform.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 開発者ツール

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • レジストリには、入力が必要なキーは載っていません。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "terravision": {
      "command": "uvx",
      "args": [
        "terravision",
        "mcp"
      ]
    }
  }
}

ターミナルでこれを実行します

claude mcp add terravision -- uvx terravision mcp

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "terravision": {
      "command": "uvx",
      "args": [
        "terravision",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "terravision": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "terravision",
        "mcp"
      ]
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント patrickchugh で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの1387件のうち0%よりスターが多い
  • このカテゴリのほかの1387件のうち85%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの1387件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

TerraVisionは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.56.1)がレジストリに届いたのは6 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitHub

作者:github

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

パソコンでもクラウドでも★ 34,245MIT3 日前更新
インストール

Desktop Commander

作者:wonderwhy-er

MCP server for terminal commands, file operations, and process management

パソコンで動く★ 10,225MIT15 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

TerraVision

TerraVision is an AI-powered CLI tool that converts Terraform code into Professional Cloud Architecture Diagrams and solves the problem of keeping the most important document in cloud projects, the architecture diagram, up to date. With high velocity releases the norm now, code is the new source of truth so machine generated architecture diagrams are more accurate than relying on the freestyle diagram drawn by the cloud architect that probably doesn't match the reality of what is actually deployed in the cloud anymore.

TerraVision securely runs 100% Client Side without any dependency or access to your Cloud environment, dynamically parses your conditionally created resources and variables and generates an automatic visual of your architecture. TerraVision is designed to be a 'Docs as Code' (DaC) tool that can be included in your CI/CD pipeline to update architecture diagrams after your build/test/release pipeline phases and supplement other document generators like readthedocs.io alongside it.

Status

Supported Cloud Providers

  • ✅ AWS (Full support with 200+ services)
  • 🔄 Google Cloud Platform (Partial Support)
  • 🔄 Microsoft Azure (Partial Support)

Turn this...

into this...

⚠️ Alpha Software Notice

This software is still in alpha testing and code is shared on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Use at your own risk.

Benefits of terravision

  1. Cost
  • Save Visio/Drawing software licenses - terravision is free and open source
  • Doesn't require any cost incurring cloud resources to be spun up, it works instantly from your local machine
  • Regularly updating diagrams aligning, connecting dots and laying out icons is not the best use of your architect staff costs
  1. Accelerate and Automate
  • Use TF variable files as inputs to create multiple variant diagrams from the same TF code
  • Doesn't require infrastructure to exist to document it. Terravision works off your terraform plan not your remote statefile
  • Automate creation of architecture diagrams by running terravision as part of CI/CD pipelines
  • YAML based Diagrams as code allows you to Annotate generated diagrams with additional custom labels and resources e.g. unmanaged resources or external systems not captured in TF code
  1. Consistency across organisation
  • Auto downloads your organisational / external modules to ensure the latest view of downstream Terraform modules
  • Consistent design of architecture diagrams using industry standard icons and AWS/GCP/Azure approved style across teams
  1. Accurate Visibility
  • Real time state of diagram shows current infrastructure that matches exactly what is deployed in production today
  • Helps in third party architecture reviews, auditing, monitoring, reporting and debugging of the stack in a visual way
  • Custom Diagram code and output images can be put into source/version control for better maintainability and discoverability
  1. Security
  • Don't need to give access to your AWS account, credentials or CLI to draw diagram
  • Doesn't create intrusive cloud resources e.g. scanning instances or metadata tables which enterprises would need to approve
  • All source code stays in your local environment, diagrams are generated on your machines without calling out to external APIs
  • Only metatdata is sent to LLM models with only minimal aggregate data saved in external files, not any sensitive code or runtime environment values

CI/CD Pipeline Integration

TerraVision seamlessly integrates into your CI/CD pipeline to automatically keep architecture diagrams synchronized with your infrastructure code:

graph TD

A[Developer Commits Terraform Code] --> B[Git Push] B --> C[CI/CD Pipeline Triggered] C --> D[Build Stage] D --> E[Test Stage] E --> F[Terraform Plan] F --> G[🎨 TerraVision Generate Diagrams] G --> H[Deploy Stage] H --> I[Update Docs] I --> J[Publish to Confluence/ReadTheDocs]

style G fill:#ff9900,stroke:#232f3e,stroke-width:3px,color:#fff style A fill:#4a90e2,stroke:#2e5c8a,stroke-width:2px,color:#fff style J fill:#36b37e,stroke:#1f7a54,stroke-width:2px,color:#fff

Installation and Usage

System Requirements

  • Python 3.10+
  • Terraform 1.x
  • Git
  • Graphviz
  • Ollama (Optional - only required if using --aibackend ollama)

1. Install External Dependencies

Required Dependencies
  1. Graphviz - https://graphviz.org/download/
   # macOS

brew install graphviz

Ubuntu/Debian

sudo apt-get install graphviz

Windows

Download from https://graphviz.org/download/

  1. Git - https://git-scm.com/downloads
   # Most systems have git pre-installed

git --version

  1. Terraform - https://developer.hashicorp.com/terraform/downloads
   # Verify installation

terraform version

Must be v1.0.0 or higher

2. Install TerraVision

Method 1: Quick Install in MacOS/Linux (For Casual Users - will install packages globally)
# Clone the repository

git clone https://github.com/patrickchugh/terravision.git cd terravision

Install Python dependencies

pip install -r requirements.txt

Make script executable in Linux

chmod +x terravision.py

Create symbolic link without extension (Unix/Linux/macOS)

ln -s $(pwd)/terravision.py $(pwd)/terravision

Add to PATH

export PATH=$PATH:$(pwd)

For Windows:

# Clone the repository

git clone https://github.com/patrickchugh/terravision.git cd terravision

Install Python dependencies

pip install -r requirements.txt

Create batch file wrapper

echo @python "%~dp0terravision.py" %* > terravision.bat

Add current directory to PATH or copy terravision.bat to a directory in PATH

copy terravision.bat C:\Windows\System32\

Method 2: Poetry Install (Recommended for Developers and Power Users)
# MacOS or Linux users - Install Poetry if not already installed

curl -sSL https://install.python-poetry.org | python3 -

For Windows Users

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

Clone and install with Poetry

git clone https://github.com/patrickchugh/terravision.git cd terravision poetry install

Activate virtual environment

source $(poetry env info --path)/bin/activate

Create symbolic link without extension

ln -s $(pwd)/terravision.py $(pwd)/terravision

Add current terravision directory to PATH

export PATH=$PATH:$(pwd)

Basic Usage

Generate Architecture Diagram
# Basic usage - analyze current directory

terravision draw

Specify source directory

terravision draw --source ~/src/my-terraform-code

Use specific Terraform workspace

terravision draw --source ~/src/my-terraform-code --workspace production

Use variable files

terravision draw --source ~/src/my-terraform-code --varfile prod.tfvars

Generate different formats

terravision draw --source ~/src/my-terraform-code --format svg terravision draw --source ~/src/my-terraform-code --format pdf

Show diagram after generation

terravision draw --source ~/src/my-terraform-code --show

Use AI backend for diagram refinement (default: bedrock)

terravision draw --source ~/src/my-terraform-code --aibackend bedrock terravision draw --source ~/src/my-terraform-code --aibackend ollama

Remote Git Repository Support
# Analyze Git repository

terravision draw --source https://github.com/your-repo/terraform-examples.git

Analyze specific subfolder in Git repo

terravision draw --source https://github.com/your-repo/terraform-examples.git//aws/vpc

Export Graph Data
# Export resource relationships as JSON

terravision graphdata --source ~/src/my-terraform-code

Show only unique services used

terravision graphdata --source ~/src/my-terraform-code --show_services

Export to custom filename

terravision graphdata --source ~/src/my-terraform-code --outfile my-resources.json

Advanced Features

Use with annotations
# Add your own custom annotations such as labels, resources or new connections

terravision draw --source https://github.com/your-repo/terraform-examples.git --annotate ./custom-annotations.yml

Working with Pre-generated JSON from previous terravision run (faster)
# Export and reuse graph data

terravision graphdata --source ~/src/terraform --outfile graph.json

Use previously exported JSON data (just the graph dict)

terravision draw --source ./graph.json terravision draw --source ./graph.json --format svg

Reprocess and replay from previous debug (for troubleshooting without calling slow terraform init/plan/analayse again)

terravision draw --source /your_source_files --debug # createas a tfdata.json in current folder terravision draw --source tfdata.json

Debug Mode
# Enable debug output for troubleshooting and which will dump all state info into tfdata.json

terravision draw --source ~/src/my-terraform-code --debug

AI-Powered Diagram Refinement

TerraVision can use AI models to automatically refine and improve your architecture diagrams by fixing resource groupings, adding missing connections, and ensuring proper AWS architectural conventions.

Supported AI Backends
AWS Bedrock (Default)

Uses AWS Bedrock API via API Gateway for cloud-based AI refinement.

# Use Bedrock backend (default)

terravision draw --source ~/src/my-terraform-code --aibackend bedrock

Configuration: Edit modules/cloud_config.py to set your Bedrock API endpoint:

BEDROCK_API_ENDPOINT = "https://your-api-id.execute-api.us-east-1.amazonaws.com/prod/chat"
Ollama (Local)

Uses a local Ollama server for privacy-focused, offline AI refinement.

# Use Ollama backend

terravision draw --source ~/src/my-terraform-code --aibackend ollama

Setup:

  1. Install Ollama from https://ollama.ai/download
  2. Start Ollama server and pull a model:
   # Start Ollama (runs automatically on macOS/Linux after install)

ollama serve

Pull the llama3 model

ollama pull llama3

Set model to stay loaded longer (optional, prevents premature unloading)

Default timeout is 5 minutes, extend to 1 hour:

export OLLAMA_KEEP_ALIVE=1h

3. Edit `modules/cloud_config.py` to set your Ollama server (default is localhost):
   OLLAMA_HOST = "http://localhost:11434"
AI Refinement Prompts

The AI models use specialized prompts defined in modules/cloud_config.py:

  • AWS_REFINEMENT_PROMPT: Guides the AI to fix resource groupings, connections, and ensure AWS best practices
  • AWS_DOCUMENTATION_PROMPT: Generates architecture summaries and documentation
Setting Up AWS Bedrock Backend

TerraVision includes Terraform code to deploy a serverless AWS Bedrock proxy with API Gateway:

# Navigate to the Terraform directory

cd ai-backend-terraform

Configure your settings

cp terraform.tfvars.example terraform.tfvars

Edit terraform.tfvars with your settings

Deploy the infrastructure

terraform init terraform apply

Get your API endpoint

terraform output api_endpoint

Infrastructure Components:

  • API Gateway: REST API with streaming support for real-time responses
  • Lambda Function: Node.js 20.x function with response streaming
  • DynamoDB: Rate limiting and usage tracking
  • CloudWatch: Monitoring, logging, and cost alerts
  • IAM Roles: Least-privilege access for Lambda to invoke Bedrock

Terraform Variables:

variable "bedrock_mod

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く