
cuneytozseker/mcp4d
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
MCP4D Native C++ Cinema 4D plugin that connects Claude Code to Cinema4D via MCP (Model Context Protocol)
Обзор
A native C++ Cinema 4D plugin that connects Claude Code to Cinema 4D via the Model Context Protocol. Read the scene, build geometry, execute Python, cast rays, capture the viewport, all from your terminal. Claude Code gains full access to Cinema 4D through 15 native commands: The execute_python relay is the escape hatch. Anything that doesn't have a dedicated native command can be done through C4D's Python API. Native commands exist where Python is unreliable (booleans, CSTO) or where C++ is significantly better (scene traversal, raycasting, viewport capture). An interactive viewport tool () that lets you click and drag on any polygon surface to define a rectangle. The rect data is shared with MCP -- draw interactively in the viewport, then read it programmatically from Claude Code. Used for placing imported meshes, selecting polygon regions, and defining areas of interest on surfaces. The plugin ships with a recipe system in SKILLS.
README
Показан фрагмент оригинального README. Открыть оригинал.
MCP4D – Cinema 4D MCP server for Claude Code
A native C++ Cinema 4D plugin that connects Claude Code to Cinema 4D via the Model Context Protocol. Read the scene, build geometry, execute Python, cast rays, capture the viewport, all from your terminal.
Claude Code CLI
└── Python MCP Server (stdio, thin adapter)
└── TCP localhost:5555
└── C4D C++ Plugin (.xdl64)
What It Does
Claude Code gains full access to Cinema 4D through 15 native commands:
| Category | Commands |
|---|---|
| Scene | ping, get_scene_info, get_object_info, list_materials |
| Python | execute_python – run arbitrary code in C4D’s Python VM |
| Raycasting | raycast – screen-to-world hit testing |
| Surface Rect | define_surface_rect, get_surface_rect, clear_surface_rect |
| Native Ops | boolean, current_state_to_object, select_polys_at_rect |
| Import | import_mesh – OBJ, FBX, GLB, STL, USD |
| Viewport | capture_viewport – PNG snapshot with camera data |
The execute_python relay is the escape hatch. Anything that doesn’t have a dedicated native command can be done through C4D’s Python API. Native commands exist where Python is unreliable (booleans, CSTO) or where C++ is significantly better (scene traversal, raycasting, viewport capture).
Surface Rectangle Tool
An interactive viewport tool (Extensions > Surface Rectangle) that lets you click and drag on any polygon surface to define a rectangle. The rect data is shared with MCP – draw interactively in the viewport, then read it programmatically from Claude Code.
Used for placing imported meshes, selecting polygon regions, and defining areas of interest on surfaces.
Recipes and Skills
The plugin ships with a recipe system in SKILLS.md that gives Claude Code ready-made workflows for common scene types. When you describe what you want (e.g. “dark moody product shot” or “exploded technical view”), Claude matches your description to a recipe and follows it step by step.
Current recipes include:
- clean-product-hero – white studio, dramatic lighting, beauty shot setup
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →