MCP-Claude-AI Server
Allows AI assistants to control and manipulate 3D scenes in Cinema 4D, including creating objects, modifying transforms, adding cameras, lights, materials, and performing renderings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP-Claude-AI Servercreate a red cube at the origin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-Claude-AI Server
MCP-Claude-AI Server connects Cinema 4D to Claude via the Model Context Protocol, enabling prompt-assisted 3D scene manipulation from an AI assistant.
Table of Contents
Components
Prerequisites
Installation
Setup
Usage
Testing
Troubleshooting and Debugging
Project File Structure
Tool Commands
Compatibility and Roadmap
Recent Fixes
Related MCP server: Blender MCP Server
Components
C4D Plugin: A socket server that runs inside Cinema 4D, listens for commands from the MCP server, and executes them in the Cinema 4D environment. Delivered as
mcp_server_plugin.pyp.MCP Server: A Python server (FastMCP) that implements the MCP protocol and exposes tools that send JSON commands over TCP to the Cinema 4D plugin. Connection is configurable via
C4D_HOSTandC4D_PORT(default: 127.0.0.1:5555).
Prerequisites
Cinema 4D (R2024+ recommended)
Python 3.9 or higher (for the MCP server)
Installation
Clone the Repository
Clone the repository and enter the project directory:
git clone <repository-url>
cd cinema4d-mcpInstall the MCP Server Package
From the project root:
pip install -e .Or with uv:
uv syncMake the Wrapper Script Executable (Unix-like systems)
chmod +x bin/cinema4d-mcp-wrapperSetup
Cinema 4D Plugin Setup
Copy the plugin: Copy
c4d_plugin/mcp_server_plugin.pypinto Cinema 4D’s plugin folder:macOS:
~/Library/Preferences/Maxon/Maxon Cinema 4D/plugins/Windows:
%APPDATA%\Maxon\Maxon Cinema 4D\plugins\
Start the socket server in C4D:
Open Cinema 4D.
Go to Extensions > Socket Server Plugin.
In the Socket Server Control dialog, click Start Server.
Claude Desktop (or Cursor) Configuration
Edit the MCP client config so it runs the Cinema 4D MCP server.
Development (run from project):
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonOr in Claude Desktop: Settings > Developer > Edit Config.
Add an MCP server entry, for example:
"mcpServers": {
"cinema4d": {
"command": "python3",
"args": ["/path/to/cinema4d-mcp/main.py"]
}
}Replace /path/to/cinema4d-mcp with the actual path to this project.
Installed package (published / wrapper):
"mcpServers": {
"cinema4d": {
"command": "cinema4d-mcp-wrapper",
"args": []
}
}Restart Claude Desktop (or your MCP host) after changing the config.
Usage
Start the Cinema 4D Socket Server in C4D (see Setup).
Start your MCP client (e.g. Claude Desktop or Cursor) with the cinema4d server configured.
Use the tool commands listed below to interact with Cinema 4D through the assistant.
Testing
Command Line
Run the server directly to confirm it starts and connects to Cinema 4D:
python main.pyOr from the installed package:
cinema4d-mcp-wrapperExpected: startup logs and a message indicating connection to the Cinema 4D socket (or a clear failure if C4D is not running or the plugin is not started).
MCP Test Harness
The repo includes a small test harness for predefined command sequences.
Test command file:
tests/mcp_test_harness.jsonl— JSONL file where each line is one MCP command with parameters.GUI test runner:
tests/mcp_test_harness_gui.py— Tkinter GUI to load a JSONL file and run commands in order.
Run the GUI:
python tests/mcp_test_harness_gui.pyYou can select a JSONL file, run the sequence, and inspect responses from Cinema 4D. Useful for testing new commands, verifying the plugin after changes, and reproducing scenes for debugging.
Troubleshooting and Debugging
Logs: Check MCP client logs (e.g. Claude Desktop:
~/Library/Logs/Claude/mcp*.logon macOS, or the equivalent on Windows). Usetail -fon the relevant log to watch output while reproducing an issue.Cinema 4D: After opening the MCP client, verify that Cinema 4D’s console or Socket Server UI shows an incoming connection.
Wrapper: Run the server by hand to see errors:
cinema4d-mcp-wrapperMissing mcp module: If the client reports that the
mcpmodule is not found, install it (and the project) in the same Python used by the config:pip install mcp pip install -e .Advanced debugging: Use the MCP Inspector (from the modelcontextprotocol organization) to run and inspect the server, for example:
npx @modelcontextprotocol/inspector uv --directory /path/to/cinema4d-mcp run cinema4d-mcpReplace
/path/to/cinema4d-mcpwith your project path.
Project File Structure
cinema4d-mcp/
├── .gitignore
├── .python-version
├── LICENSE
├── README.md
├── main.py
├── pyproject.toml
├── setup.py
├── uv.lock
├── bin/
│ └── cinema4d-mcp-wrapper
├── c4d_plugin/
│ └── mcp_server_plugin.pyp
├── src/
│ └── cinema4d_mcp/
│ ├── __init__.py
│ ├── config.py
│ ├── server.py
│ └── utils.py
└── tests/
├── test_server.py
├── mcp_test_harness.jsonl
└── mcp_test_harness_gui.pymain.py: Script entry point; adds paths and calls packagemain().src/cinema4d_mcp/server.py: FastMCP app, tool definitions, and TCP communication with the C4D plugin.src/cinema4d_mcp/config.py:C4D_HOSTandC4D_PORTfrom environment.bin/cinema4d-mcp-wrapper: Shell script that finds a Python withmcpand runscinema4d_mcpas a module.
Tool Commands
General Scene and Execution
get_scene_info: Summary of the active Cinema 4D scene.list_objects: List scene objects with hierarchy.group_objects: Group selected objects under a new null.execute_python: Run custom Python code inside Cinema 4D.save_scene: Save the current project to disk.load_scene: Load a.c4dfile.set_keyframe: Set a keyframe on an object property (position, rotation, etc.).
Object Creation and Modification
add_primitive: Add a primitive (cube, sphere, cone, etc.).modify_object: Change transform or attributes of an existing object.create_abstract_shape: Create an organic, non-standard abstract shape.
Cameras and Animation
create_camera: Add a camera.animate_camera: Animate a camera along a path (linear or spline).
Lighting and Materials
create_light: Add a light (omni, spot, etc.).create_material: Create a standard Cinema 4D material.apply_material: Apply a material to an object.apply_shader: Generate and apply a stylized or procedural shader.
Redshift
validate_redshift_materials: Check Redshift material setup and connections. Redshift materials are not fully implemented.
MoGraph and Fields
create_mograph_cloner: Add a MoGraph Cloner (linear, radial, grid, etc.).add_effector: Add a MoGraph Effector (e.g. Random, Plain).apply_mograph_fields: Add and link a MoGraph Field to objects.
Dynamics and Physics
create_soft_body: Add a Soft Body tag.apply_dynamics: Apply Rigid or Soft Body physics.
Rendering and Preview
render_frame: Render a frame and save to disk. May fail at large resolutions (MemoryError: Bitmap Init failed).render_preview: Quick preview render; returns base64 image for the AI.snapshot_scene: Capture scene summary (objects plus preview image).
Compatibility and Roadmap
Cinema 4D Version | Python Version | Status | Notes |
R21 / S22 | Python 2.7 | Not supported | Legacy API and Python version |
R23 | Python 3.7 | Not planned | Not tested |
S24 / R25 / S26 | Python 3.9 | Possible TBD | Needs testing and fallbacks |
2023.0 / 2023.1 | Python 3.9 | In progress | Fallback support for core features |
2023.2 | Python 3.10 | In progress | Aligns with testing base |
2024.0 | Python 3.11 | Supported | Verified |
2025.0+ | Python 3.11 | Fully supported | Primary development target |
Goals:
Short term: Compatibility with C4D 2023.1+ (Python 3.9 and 3.10).
Mid term: Conditional handling for missing MoGraph and Field APIs.
Long term: Optional legacy plugin for R23–S26 if needed.
Recent Fixes
Context awareness: Object tracking uses GUIDs. Commands that create objects return context (guid, actual_name, etc.); later commands use these GUIDs to find objects reliably.
Object finding:
find_object_by_nameupdated to handle GUIDs (numeric string format), fix recursion issues, and behave correctly whendoc.SearchObjectfails.GUID handling: Handlers for
apply_material,create_mograph_cloner,add_effector,apply_mograph_fields,set_keyframe, andgroup_objectsdetect GUIDs in parameters (object_name, target, target_name, list items) and resolve them correctly.create_mograph_cloner: AttributeError for missing MoGraph parameters (e.g. MG_LINEAR_PERSTEP) addressed with getattr fallbacks; fixed logic so the correct object is used for cloning.
Rendering: TypeError in
render_framearounddoc.ExecutePassesfixed.snapshot_sceneuses the correct base64 render path. Largerender_framestill subject to memory limits.Registration: AttributeError for
c4d.NilGuidfixed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/minopeef/MCP-Claude-AI'
If you have feedback or need assistance with the MCP directory API, please join our Discord server