
mhyrr/sketchup-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
mhyrr/sketchup-mcp — это кандидат на сервер MCP, импортированный из https://github.com/mhyrr/sketchup-mcp.
Обзор
mhyrr/sketchup-mcp — это кандидат на сервер MCP, импортированный из https://github.com/mhyrr/sketchup-mcp.
Обзор (машинный перевод)
SketchupMCP соединяет Sketchup с Claude AI через протокол Model Context Protocol (MCP), позволяя Claude напрямую взаимодействовать со SketchUp и управлять ним. Эта интеграция позволяет осуществлять 3D-моделирование с подсказками, создание сцен и манипуляцию в Sketchup.
Огромное спасибо Blender MCP за вдохновение и структуру.
Особенности
- Двусторонняя связь: Подключите Claude AI к Sketchup через TCP-сокет.
- Управление компонентами: Создание, модификация, удаление и преобразование компонентов в Sketchup
- Контроль материалов: Наносить и изменять материалы и цвета
- Осмотр сцены: Получите подробную информацию о текущей сцене Sketchup
- Обработка выбора: Получайте и манипулируйте выбранными компонентами
- Оценка кода Ruby: Выполнять произвольный код Ruby напрямую в SketchUp для продвинутых операций
Компоненты
Система состоит из двух основных компонентов:
- Sketchup Extension: Расширение Sketchup, которое создаёт TCP-сервер внутри Sketchup для получения и выполнения команд
- MCP Server (
sketchup_mcp/server.py): Python-сервер, реализующий протокол Model Context Protocol и подключающийся к расширению Sketchup
Установка
Упаковка Python
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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"
]
}
}