
mhyrr/sketchup-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
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つの構成要素で構成されています。
- Sketchup 拡張:Sketchup内にTCPサーバーを作成してコマンドを受信・実行するSketchup拡張
- 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:
- Sketchup Extension: A Sketchup extension that creates a TCP server within Sketchup to receive and execute commands
- 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
- Download or build the latest
.rbzfile - In Sketchup, go to Window > Extension Manager
- Click “Install Extension” and select the downloaded
.rbzfile - Restart Sketchup
Usage
Starting the Connection
- In Sketchup, go to Extensions > SketchupMCP > Start Server
- The server will start on the default port (9876)
- 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 sceneget_selected_components- Gets information about currently selected componentscreate_component- Create a new component with specified parametersdelete_component- Remove a component from the scenetransform_component- Move, rotate, or scale a componentset_material- Apply materials to componentsexport_scene- Export the current scene to various formatseval_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”
インストール
uvx sketchup-mcp設定
"mcpServers": {
"sketchup": {
"command": "uvx",
"args": [
"sketchup-mcp"
]
}
}