BearNetworkChain/SketchUp-MCP
Built by Metorial, the integration platform for agentic AI.
BearNetworkChain/SketchUp-MCP
Server Summary
Create, modify, delete, and transform components
Apply and modify materials and colors
Retrieve current scene details
Process selected components
Execute Ruby code directly within Sketchup
SketchupMCP 透過模型上下文協議(MCP)將 Sketchup 連接到 Claude AI,使 Claude 能夠直接與 Sketchup 互動和控制。這項整合允許使用提示輔助 3D 建模、場景創建和操作 Sketchup。
特別感謝 mhyrr/sketchup-mcp 提供的架構。 我們對其原生版本(mhyrr/sketchup-mcp)進行了繁體中文化及部份功能優化與調整。
該系統由兩個主要組件組成:
sketchup_mcp/server.py
):實作模型上下文協議並連接到 Sketchup 擴展的 Python 伺服器.rbz
檔案.rbz
檔案我們使用 uv
來管理 Python 環境,因此需要先安裝 uv
:
pip install uv
要使用 Smithery 安裝 Sketchup MCP:
npx -y @smithery/cli install @BearNetwork-BRNKC/SketchUp-MCP --client claude
.rbz
檔案.rbz
檔案在 Claude 配置中加入以下內容,以使用 MCP 伺服器:
"mcpServers": {
"sketchup": {
"command": "uvx",
"args": [
"sketchup-mcp"
]
}
}
這將自動從 PyPI 下載最新版本。
成功連接後,Claude 將能夠透過以下功能與 Sketchup 互動:
get_scene_info
- 獲取當前 Sketchup 場景資訊get_selected_components
- 獲取當前選取的組件資訊create_component
- 創建新組件並指定參數delete_component
- 從場景中刪除組件transform_component
- 移動、旋轉或縮放組件set_material
- 為組件應用材質export_scene
- 將當前場景匯出為多種格式eval_ruby
- 在 Sketchup 中執行任意 Ruby 代碼以進行高級操作以下是一些可以要求 Claude 執行的操作示例:
該系統使用基於 TCP 套接字的簡單 JSON 協議:
type
和可選的 params
status
及 result
或 message
MIT 授權許可證