RQ

russell-qca/sketchup-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

32 stars 12 forks 品質 58 トレンド 0

モデルコンテキストプロトコル(MCP)を介してClaudeをSketchUpに接続します.

概要

モデルコンテキストプロトコル(MCP)を介してClaudeをSketchUpに接続します。 プラグインはモジュール構造になっています。 デプロイメントスクリプトを使用する: スクリプトは - SketchUp プラグインディレクトリを自動的に検索 - 必要なすべてのファイルをコピー (メインプラグイン + lib/モジュール) - 必要なディレクトリ構造を作成する - SketchUp が実行されている場合警告 SketchUpを再起動します。 SketchUp が読み込まれるサーバー。 SketchUp Ruby Console を開きます。 これらのスタートアップメッセージが表示されます。 モデルの詳細は JSON 応答を参照してください。 - Python 3.10 + - uv (推奨) または pip サーバは stdio で起動して通信します。 Ctrl + C を押して停止します.

概要(AI 翻訳)

モデルコンテキストプロトコル(MCP)を介してClaudeをSketchUpに接続します。

アーキテクチャ

お問い合わせ

インストール

パート1 — SketchUp Ruby プラグインをインストールする

自動インストール(推奨)

プラグインはモジュール構造になっています。 デプロイメントスクリプトを使用する:

スクリプトは:

  • SketchUpプラグインディレクトリを自動的に検索
  • 必要なすべてのファイルをコピー(メインプラグイン+ lib/モジュール)
  • 必要なディレクトリ構造を作成する
  • SketchUpが実行されている場合警告

マニュアルインストール

手動取付けを好む場合:

プラグインフォルダの場所:

| OS | パス | お問い合わせ | プライバシーポリシー | | ウィンドウズ | [[T1] |

これらのファイルをコピー:

サーバーを開始

SketchUpを再起動します。 SketchUp のロード時に、ポート 8080** で自動起動します。

使用することもできます: -Plugins → MCP Server → 起動サーバー

  • プラグイン → MCP サーバー → ストップ サーバー
  • プラグイン → MCP サーバー → 再起動 Server
認証

SketchUp Ruby Console を開きます。 これらのスタートアップメッセージが表示されます。

接続をテストして下さい:

モデルの詳細は JSON 応答を参照してください。

お問い合わせ

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

SketchUp MCP Server

Connect Claude to SketchUp via the Model Context Protocol (MCP).

Architecture

Claude Desktop (MCP client)
        ↕  stdio (MCP protocol)
sketchup-mcp  (Python MCP server)
        ↕  HTTP REST  localhost:8080
sketchup_mcp_server.rb  (Ruby WEBrick plugin inside SketchUp)
        ↕  SketchUp Ruby API
 SketchUp Model

Installation

Part 1 — Install the SketchUp Ruby Plugin

The plugin now has a modular structure. Use the deployment script:

cd sketchup-mcp/sketchup_plugin
./deploy.sh

The script will:

  • Find your SketchUp Plugins directory automatically
  • Copy all necessary files (main plugin + lib/ modules)
  • Create the required directory structure
  • Warn if SketchUp is running

Manual Installation

If you prefer manual installation:

Plugins folder location:

OS Path
macOS ~/Library/Application Support/SketchUp /SketchUp/Plugins/
Windows %APPDATA%\SketchUp\SketchUp \SketchUp\Plugins\

Copy these files:

PLUGINS="~/Library/Application Support/SketchUp 2024/SketchUp/Plugins"

cp sketchup_plugin/sketchup_mcp_server.rb "$PLUGINS/"
mkdir -p "$PLUGINS/lib/construction"
cp sketchup_plugin/lib/construction.rb "$PLUGINS/lib/"
cp sketchup_plugin/lib/construction/roof_truss.rb "$PLUGINS/lib/construction/"

Start the Server

Restart SketchUp. The server auto-starts on port 8080 when SketchUp loads.

You can also use:

  • Plugins → MCP Server → Start Server
  • Plugins → MCP Server → Stop Server
  • Plugins → MCP Server → Restart Server

Verify

Open the SketchUp Ruby Console. You should see these startup messages:

====== LOADING SKETCHUP MCP PLUGIN ======
====== REQUIRES COMPLETE ======
====== CONSTRUCTION MODULES LOADED ======
====== SKETCHUP MCP SERVER STARTED ======

Test the connection:

require 'net/http'
Net::HTTP.get(URI('http://localhost:8080/model/info'))

You should see a JSON response with your model’s details.


Part 2 — Install the Python MCP Server

Prerequisites

  • Python 3.10+
  • uv (recommended) or pip
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone or navigate to this repository
cd sketchup-mcp

# Install the package and dependencies
uv pip install -e .

# The CLI command 'sketchup-mcp' is now available

Install with pip

cd sketchup-mcp
pip install -e .

Test it standalone

# With SketchUp running and plugin loaded:
sketchup-mcp

The server will start and communicate via stdio. Press Ctrl+C to stop.


Part 3 — Connect to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "sketchup": {
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "sketchup": { "command": "sketchup-mcp" } } }