MS

mhyrr/sketchup-mcp

Developer tools

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

523 stars 93 forks 品質 51 トレンド 23

mhyrr/sketchup-mcpは、https://github.com/mhyrr/sketchup-mcp.からインポートされたMCPサーバー候補です。

概要

mhyrr/sketchup-mcpは、https://github.com/mhyrr/sketchup-mcp.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

SketchupMCPはModel Context Protocol(MCP)を通じてSketchupとClaude AIを接続し、Claudeが直接Sketchupとやり取り・制御できるようにします。この統合により、Sketchupでのプロンプト支援3Dモデリング、シーン作成、操作が可能になります。

インスピレーションと構成を提供してくれたBlender MCPに大きな感謝を。

特徴

  • 双方向通信:TCPソケット接続を通じてClaude AIとSketchupを接続
  • コンポーネント操作:Sketchupでコンポーネントの作成、修正、削除、変換
  • 素材管理:素材や色の適用・変更
  • シーン検査:現在のSketchupシーンの詳細情報
  • 選択処理:選択されたコンポーネントを取得し操作する
  • Rubyコード評価:高度な操作のために任意のRubyコードをSketchUpで直接実行

構成要素

システムは主に2つの構成要素で構成されています。

  1. Sketchup 拡張:Sketchup内にTCPサーバーを作成してコマンドを受信・実行するSketchup拡張
  2. MCPサーバー(sketchup_mcp/server.py):モデルコンテキストプロトコルを実装し、Sketchup拡張に接続するPythonサーバー

設置

パイソンパッケージング

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

README

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

SketchupMCP - Sketchup Model Context Protocol Integration

SketchupMCP connects Sketchup to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Sketchup. This integration enables prompt-assisted 3D modeling, scene creation, and manipulation in Sketchup.

Big Shoutout to Blender MCP for the inspiration and structure.

Features

  • Two-way communication: Connect Claude AI to Sketchup through a TCP socket connection
  • Component manipulation: Create, modify, delete, and transform components in Sketchup
  • Material control: Apply and modify materials and colors
  • Scene inspection: Get detailed information about the current Sketchup scene
  • Selection handling: Get and manipulate selected components
  • Ruby code evaluation: Execute arbitrary Ruby code directly in SketchUp for advanced operations

Components

The system consists of two main components:

  1. Sketchup Extension: A Sketchup extension that creates a TCP server within Sketchup to receive and execute commands
  2. MCP Server (sketchup_mcp/server.py): A Python server that implements the Model Context Protocol and connects to the Sketchup extension

Installation

Python Packaging

We’re using uv so you’ll need to brew install uv

Sketchup Extension

  1. Download or build the latest .rbz file
  2. In Sketchup, go to Window > Extension Manager
  3. Click “Install Extension” and select the downloaded .rbz file
  4. Restart Sketchup

Usage

Starting the Connection

  1. In Sketchup, go to Extensions > SketchupMCP > Start Server
  2. The server will start on the default port (9876)
  3. Make sure the MCP server is running in your terminal

Using with Claude

Configure Claude to use the MCP server by adding the following to your Claude configuration:

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

This will pull the latest from PyPI

Once connected, Claude can interact with Sketchup using the following capabilities:

Tools

  • get_scene_info - Gets information about the current Sketchup scene
  • get_selected_components - Gets information about currently selected components
  • create_component - Create a new component with specified parameters
  • delete_component - Remove a component from the scene
  • transform_component - Move, rotate, or scale a component
  • set_material - Apply materials to components
  • export_scene - Export the current scene to various formats
  • eval_ruby - Execute arbitrary Ruby code in SketchUp for advanced operations

Example Commands

Here are some examples of what you can ask Claude to do:

  • “Create a simple house model with a roof and windows”
  • “Select all components and get their information”
  • “Make the selected component red”
GitHub で README 全文を見る

インストール

uvx sketchup-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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