Substance Designer MCPのロゴ

Substance Designer MCP

コミュニティ
matthieuhuguet

The first MCP (Model Context Protocol) integration for Adobe Substance 3D Designer. Control SD from Claude, Cursor, or any MCP client.

公開者matthieuhuguet
リポジトリsubstance-designer-mcp
言語Python
フォーク
12
スター
59
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Substance Designer MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには59件のスターと12件のフォークがあります。

Substance Designer MCP

The first MCP (Model Context Protocol) integration for Adobe Substance 3D Designer.

Control Substance Designer from any MCP-compatible AI client (Claude Code, Claude Desktop, Cursor) — create graphs, build nodes, connect them, set parameters, generate full PBR material graphs from a single prompt.


What it does

  • Natural language → SD graph: "Create a cracked concrete material" → 44-node PBR graph with height, normal, roughness, AO, baseColor, metallic outputs
  • 79 built-in material recipes: pro-grade materials using the same node architecture as professional SD artists
  • 16 MCP tools: get scene info, create/delete graphs, create nodes, connect nodes, set parameters, build full materials in one call
  • Library node support: Clouds, Cells, Perlin Noise, Polygon, Edge Detect, Flood Fill, Multi-Directional Warp, etc.
  • Thread-safe: All SD API calls dispatched to Qt main thread via Signal/Slot queued connection

Architecture

AI Client (Claude / Cursor)
        │  stdio (MCP protocol)
        ▼
sd_mcp_bridge.py  (FastMCP server, Python 3.12)
        │  TCP localhost:9881 (length-prefix framing)
        ▼
SD Plugin __init__.py  (Python 3.11, runs inside SD)
        │  sd.api
        ▼
Adobe Substance 3D Designer 15.x

The bridge and plugin communicate with a simple length-prefix framing protocol: [4-byte big-endian length][JSON payload]. Each command uses a fresh TCP socket — no persistent connection, no stale state.


Requirements

  • Adobe Substance 3D Designer 15.x (tested on 15.0.3)
  • Python 3.12+ for the bridge (managed via uv)
  • uv package manager: pip install uv or winget install astral-sh.uv
  • An MCP-compatible client: Claude Code, Claude Desktop, or Cursor

Installation

Step 1 — Install the SD Plugin

Copy the plugin/ folder contents to your SD user scripts directory:

Windows:

%USERPROFILE%\Documents\Adobe\Adobe Substance 3D Designer\python\sduserplugins\sd_mcp_plugin\

The directory must contain:

sd_mcp_plugin/
├── __init__.py    ← main plugin (TCP listener, all MCP tools)
└── recipes.py     ← 79 material recipes

SD auto-loads all plugins from sduserplugins/ on startup. No additional configuration needed.

Step 2 — Install the Bridge Server

bash
cd server/
uv sync   # installs mcp[cli] into .venv

Or with pip:

bash
pip install "mcp[cli]>=1.4.1"

Step 3 — Configure Your MCP Client

Claude Code (~/.claude/settings.json):

json
{
  "mcpServers": {
    "substance_designer": {
      "command": "C:\\Users\\YOUR_USERNAME\\.local\\bin\\uv.exe",
      "args": [
        "run",
        "--directory",
        "C:\\PATH\\TO\\substance-designer-mcp\\server",
        "python",
        "sd_mcp_bridge.py",
        "--port",
        "9881"
      ]
    }
  }
}

See config/ folder for Claude Desktop and Cursor examples.

Step 4 — Start SD before your AI client

SD must be running before the MCP bridge starts. The plugin binds TCP port 9881 on SD startup. If SD is not running when Claude/Cursor launches, the bridge will fail to connect.


Usage

Once connected, you can ask your AI client to:

Build a weathered steel material with surface oxidation
Create a cliff heightmap with high detail and disorder
Make a new graph called MyRock, add a clouds node and a slope blur, connect them
List all available material recipes

Available MCP Tools

ToolDescription
get_scene_infoList all open packages and graphs
create_graphCreate a new compositing graph
get_graph_infoGet all nodes and connections in a graph
list_node_definitionsSearch available node types
create_nodeCreate an atomic node (blend, levels, blur, etc.)
create_instance_nodeCreate a library node (Clouds, Cells, Perlin, etc.)
create_output_nodeCreate a PBR output (baseColor, normal, height, etc.)
connect_nodesConnect two nodes via their ports
disconnect_nodesRemove a connection
set_parameterSet a node parameter
get_node_infoGet ports and parameters of a node
delete_nodeDelete a node
move_nodeReposition a node
duplicate_nodeDuplicate an atomic node
delete_graphDelete a graph from a package
open_graphOpen a graph in the SD editor
save_packageSave the package to disk
execute_sd_codeExecute arbitrary Python in SD's context
build_material_graphBuild a full PBR material in one call
build_heightmap_graphBuild a heightmap-only graph in one call
list_recipesList all 79 available material recipes
get_recipe_infoGet details about a specific recipe
apply_recipeApply a recipe to an existing graph

Material Recipes

python
build_material_graph(graph_name="MySteel", recipe_name="pro_steel")
# → 37-node PBR graph: height + normal + roughness + AO + baseColor + metallic

build_heightmap_graph(graph_name="CliffHM", style="cliff", detail_level=3, scale=5.0, disorder=0.5)
# → 9-node heightmap graph

Pro recipes (37–44 nodes, professional architecture): pro_granite, pro_limestone, pro_sandstone, pro_basalt, pro_slate, pro_steel, pro_iron, pro_copper, pro_concrete, pro_concrete_aged, pro_concrete_smooth

Core materials: steel, iron, copper, gold, silver, aluminum, brass, granite, marble, sandstone, limestone, slate, basalt, wood, wood_oak, moss, bone, leather, fabric_cotton, fabric_silk, fabric_wool, fabric_denim, fabric_burlap, sand, mud, gravel, clay, soil, ice, snow, frost, water, diamond, ruby, sapphire, emerald, amethyst, concrete, brick, lava, asphalt, plaster, tile, painted_metal, carbon_fiber, terracotta, obsidian, ...

Heightmap styles: cliff, rock, sand, cracked, mud, mountain, cobblestone, terrain


Critical Rules (SD 15.x)

These are hard constraints of the SD 15.x API — violating them hangs or crashes SD:

  • ONE tool call at a time — never parallel calls to SD tools
  • SDUsage.sNew() hangs SD 15 permanently — removed from plugin
  • newNode(unknown_definition) hangs SD 15 permanently — plugin validates before calling
  • arrange_nodes() destroys all connections — use move_node() instead
  • Library node outputs are never "unique_filter_output" — always call get_node_info first
  • directionalwarp warp-map port = "inputintensity" (NOT inputgradient)
  • Wrong port ID in connect_nodes = crash — plugin validates before calling SD

Known Library Node Ports (SD 15.0.3)

NodeOutputKey Inputs
clouds_2outputscale, disorder
cells_1outputscale, disorder
perlin_noiseoutputscale, disorder
polygon_2outputSides, Scale, Gradient
gradient_linear_1Simple_GradientTiling, rotation
gradient_axialoutputpoint_1, point_2
slope_blur_grayscale_2Slope_BlurSamples, Source, Effect
blur_hq_grayscaleBlur_HQIntensity, Source
non_uniform_blur_grayscaleNon_Uniform_BlurIntensity, Anisotropy, Source
edge_detectoutputedge_width, tolerance, input
flood_filloutputmask
flood_fill_to_gradient_2outputangle, input, angle_input
flood_fill_to_grayscaleoutputluminance_random, input
multi_directional_warp_grayscaleoutputintensity, directions, input, intensity_input
highpass_grayscaleHighpassRadius, Source
histogram_scanOutputPosition, Contrast, Input_1
invert_grayscaleInvert_GrayscaleSource
crystal_1outputscale, disorder

Troubleshooting

Bridge can't connect to SD:

  • Make sure SD is running and fully loaded before launching your AI client
  • Check SD logs: %LOCALAPPDATA%\Adobe\Adobe Substance 3D Designer\log.txt (look for [SD-MCP])
  • Verify the plugin is in the correct sduserplugins directory

SD hangs after a command:

  • A bad node definition was likely used. Restart SD.
  • The plugin validates node definitions before calling SD, but library nodes need correct pkg:// URLs.

Wrong port:

  • Plugin listens on 9881 by default. Bridge must use --port 9881.

Plugin not loading:

  • Delete __pycache__/ in the plugin directory and restart SD.

License

MIT License — see LICENSE


Author

Built by matthieuhuguet / ZenRay — first MCP integration for Substance Designer.

Pro recipe architecture based on deep analysis of professional Substance Designer node graph patterns: clouds_2 → slope_blur → edge_detect → flood_fill → multi_directional_warp → directionalwarp chains.


Contributing

PRs welcome. Key areas for improvement:

  • More material recipes
  • Color graph support (currently height/grayscale focused)
  • Windows + macOS path handling for plugin install
  • Auto-install script for the SD plugin

インストール

TypingMind
{
  "mcpServers": {
    "substance-designer-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "{{config.SERVER_PATH}}",
        "python",
        "sd_mcp_bridge.py",
        "--port",
        "9881"
      ],
      "env": {
        "SERVER_PATH": "<SERVER_PATH>"
      }
    }
  }
}

Substance Designer MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Substance Designer MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Substance Designer MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Substance Designer MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "substance-designer-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてSubstance Designer MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Substance Designer MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Substance Designer MCPを使ってこのタスクを手伝ってもらえますか?
Substance Designer MCP
はい、読みました。
Substance Designer MCPで調べた結果をお伝えします。

よくある質問

Substance Designer MCP MCPサーバーは何に使いますか?

Substance Designer MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでSubstance Designer MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでSubstance Designer MCPを利用できます。

TypingMindでSubstance Designer MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Substance Designer MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Substance Designer MCP MCPをTypingMindに接続するにはどうすればよいですか?

Substance Designer MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでSubstance Designer MCP MCPのどのようなツールを利用できますか?

Substance Designer MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Substance Designer MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Substance Designer MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇