Autodesk Fusion 360 MCP 統合
Fusion MCP(モデル コンテキスト プロトコル)アプリケーションは、AI アシスタントが Autodesk Fusion 360 とプログラムで対話できるようにする統合システムです。この実装では、シンプルな API 呼び出しを通じてパラメトリック 3D モデルを作成し、会話型 AI と CAD ソフトウェア間のギャップを埋める方法を具体的に示します。
概要
Fusion 360 MCP統合により、AIアシスタントがFusion 360を3Dモデリングタスクに制御できるようになります。このプロジェクトは特に以下の用途に役立ちます。
AI支援CAD設計ワークフロー
パラメトリック3Dモデル生成
Fusion 360で反復的な設計タスクを自動化する
Fusion 360 へのプログラムインターフェースの作成
コンポーネント
統合は、次の 3 つの主要コンポーネントで構成されます。
1. LiveCube スクリプト ( LiveCube.py
およびLiveCube.manifest
)
次の機能を備えた Fusion 360 アドイン:
Fusion 360内でスクリプトとして実行
指定された寸法のパラメトリックキューブを作成します
コマンドを受信するためにポート18080でHTTPエンドポイントを公開する
シンプルなHTTP GETリクエストでトリガーできます
2. Fusion サーバー ( fusion_server.py
)
次の機能を備えた中間サーバー:
MCPとFusion 360の橋渡しとして機能します
ポート8000でMCPリクエストをリッスンします
MCP呼び出しをFusion 360が理解できる形式に変換します
LiveCubeスクリプトとの通信を処理します
3. MCP サーバー ( fusion_mcp.py
)
次の機能を備えたモデル コンテキスト プロトコル サーバー:
AIアシスタントが使用できるツールを提供する
クラウド自動化のためにAutodesk Platform Services(APS)と統合
パラメトリックキューブを作成するための
generate_cube
ツールを提供しますAPSへの安全なアクセスのためにOAuth認証を使用する
特徴
キューブ作成: 指定された寸法のパラメトリックキューブを生成します
Autodesk Platform Services の統合: 複雑な操作には APS Design Automation を使用します
シンプルなHTTPインターフェース:Fusion 360を制御するための使いやすいAPI
MCP標準準拠:MCP互換のAIアシスタントで動作
インストール
前提条件
Autodesk Fusion 360 (2023 以降)
Python 3.9+(pip付き)
API アクセスを持つ Autodesk Platform Services アカウント
MCP 対応 AI アシスタント (Windsurf 環境の Claude のような)
セットアップ手順
Pythonの依存関係をインストールします:
pip install -r requirements.txt環境変数の設定: Autodesk Platform Services の資格情報を使用して、
keys.env
ファイルを作成します。APS_CLIENT_ID=your_client_id APS_CLIENT_SECRET=your_client_secret FUSION_ACTIVITY_ID=your_activity_idFusion 360にLiveCubeスクリプトをインストールします。
Fusion 360を開く
スクリプトとアドインに移動します(Shift + S)
緑色の「+」ボタンをクリックし、「スクリプトを追加」を選択します。
このリポジトリ内の
LiveCube
フォルダを参照して選択しますスクリプトがスクリプトリストに表示されるはずです
使用法
サーバーの起動
Fusion サーバーを起動します。
python fusion_server.pyこれにより、http://localhost:8000でリッスンが開始されます。
LiveCube スクリプトを実行します:
Fusion 360では、スクリプトとアドインに移動します
LiveCubeを選択し、「実行」をクリックします
これにより、Fusion 360内のHTTPサーバーがポート18080で起動します。
MCP サーバーを起動します。
python fusion_mcp.pyこれにより、デフォルトで stdio トランスポートを使用して MCP サーバーが起動します。
AIアシスタントと併用する
MCP対応AIアシスタントをFusion MCPサーバーに接続するように設定します。例えば、Claude Desktopの場合は以下のようになります。
その後、AI はgenerate_cube
ツールを使用して Fusion 360 で立方体を作成できます。
直接APIアクセス
LiveCube スクリプトの HTTP エンドポイントと直接対話することもできます。
これにより、Fusion 360 でエッジの長さが 50 mm の立方体が作成されます。
開発者ノート
MCPサーバーはOAuth 2.0認証を使用してAutodesk Platform Services(APS)と通信します。
高度な使用例では、
fusion_mcp.py
変更して、キューブ作成以外のツールを追加します。fusion_server.py
と対応する Fusion 360 スクリプトに新しいハンドラーを追加することで、システム アーキテクチャを拡張して他の Fusion 360 操作をサポートできます。
ライセンス
マサチューセッツ工科大学
謝辞
Fusion 360 APIおよびプラットフォームサービスのためのAutodesk
AI ツールの相互運用性を実現するためのモデル コンテキスト プロトコル (MCP) 作成者 npx @modelcontextprotocol/server-everything
SSEサーバーを実行する
ストリーミング可能なHTTPサーバーを実行する
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
AI アシスタントがプログラムで Autodesk Fusion 360 と対話し、シンプルな API 呼び出しを通じてパラメトリック 3D モデルを作成できるようになります。
Related MCP Servers
- AsecurityAlicenseAqualityTransform your Make scenarios into callable tools for AI assistants. Leverage your existing automation workflows while enabling AI systems to trigger and interact with them seamlessly.Last updated -635136MIT License
- -securityAlicense-qualityThis project provides a robust integration between AI assistants and FreeCAD CAD software using the Model Context Protocol (MCP). It allows external applications to interact with FreeCAD through a standardized interface, offering multiple connection methods and specialized tools.Last updated -14MIT License
- AsecurityAlicenseAqualityAllows AI assistants to interact with Autodesk Revit through the MCP protocol, enabling the AI to create, modify, and delete elements in Revit projects.Last updated -15151MIT License
- -security-license-qualityEnables AI assistants like Claude to interact with Autodesk Construction Cloud Build platform for construction project management, including issues tracking, RFIs, submittals, and document management through natural language.Last updated -