Indice: Why Use MCP with Blender?
Codex + Blender MCP: A Practical Guide to Controlling Blender with AI
Working in Blender with AI becomes much more interesting when the assistant does more than simply write Python code. It can also inspect the scene, check what it has created, capture viewport screenshots, and iterate on the model.
This is the goal of Blender Codex MCP: connecting Codex to an open Blender session using the Model Context Protocol, with a local add-on running inside Blender and an MCP server launched by Codex.
In practice:
- Blender runs a local add-on.
- The add-on opens a bridge on localhost:9876.
- Codex starts an MCP server.
- The MCP server forwards commands to Blender.
- Codex can inspect, modify, capture, and prepare the scene for export.
The project is available on GitHub:
https://github.com/webita/blender-codex-mcp
If you would like to implement similar workflows in your company, Webita provides AI consulting, automation, and operational integration services:
Webita services: digitalization, AI, and automation
Why Use MCP with Blender?
An AI model can already write Blender Python scripts. The problem is that, without feedback, it is working almost blindly.
With an MCP bridge, the workflow becomes far more effective:
- Codex reads the scene.
- Codex modifies an object or creates new geometry.
- Codex captures a screenshot of the viewport.
- The user visually checks the result.
- Codex adjusts the camera, materials, lighting, or export settings.
This approach is particularly suitable for:
- Technical mockups
- Product scenes
- Models for web configurators
- Preparing .glb files
- Repetitive Blender automations
- Workflows requiring progressive visual review
The same principle also applies beyond Blender. Many companies can reduce repetitive work by connecting AI and automation to tools they already use every day, such as CRMs, websites, ticketing systems, spreadsheets, e-commerce platforms, and internal applications.
This is the type of solution Webita develops through its Webita AI service.
What Is MCP?
MCP, or Model Context Protocol, is an open standard for connecting AI applications to external systems, tools, data sources, and workflows.
The official documentation describes it as a standard for connecting AI applications to external tools and systems in a consistent way:
Model Context Protocol documentation
In this case, the external system is Blender.
What Does Blender Codex MCP Do?
Blender Codex MCP provides Codex with tools such as:
- get_scene_info: reads the objects, materials, and current state of the scene
- get_object_info: inspects an individual object
- get_viewport_screenshot: captures a screenshot of the viewport
- execute_blender_code: runs Python code inside Blender
- blender_health_check: checks whether Blender is reachable
- sync_camera_to_viewport: copies the current viewport view to the active camera
- export_glb: exports the scene or selected objects as a .glb file
It does not replace Blender. It makes Blender controllable through Codex.
Requirements
Before you begin, you will need:
- Blender installed
- Codex desktop or a Codex runtime compatible with MCP
- uv installed
- Python 3.10 or later
- The blender-codex-mcp repository
uv is a fast Python package and project manager. In this project, it is used to start the MCP server:
Installation
Clone the repository:
Then open Blender and install the add-on:
- Open Blender.
- Go to Edit > Preferences > Add-ons.
- Click Install…
- Select addon.py from the repository.
- Enable Interface: Blender Codex MCP.
- Press N inside the viewport.
- Open the BlenderCodexMCP tab.
- Click Connect to MCP server.
By default, Blender listens on:
Configuring Codex
Add the following configuration to ~/.codex/config.toml:
Replace /absolute/path/to/blender-codex-mcp with the actual path to the repository.
Restart Codex after updating the configuration.
First Test
With Blender open and the add-on connected, you can ask Codex:
Inspect the open Blender scene and take a viewport screenshot.
If everything has been configured correctly, Codex should be able to read the scene and use the MCP tools exposed by the server.
Recommended Workflow
The best way to work is not to ask Codex to rebuild the entire scene in a single step.
A better process is:
- Inspect the scene.
- Make a small, verifiable change.
- Capture a viewport screenshot.
- Adjust the camera, scale, materials, or lighting.
- Perform the final export.
Examples of useful prompts:
Inspect the scene and tell me which objects are present.
Create a clean product-view camera and add soft studio lighting.
Center the selected model and place it on the ground plane.
Export the selected model as a GLB file for web embedding.
GLB Export and WordPress
The .glb format is one of the most practical options for publishing a 3D model on the web. It is compact, lightweight, and fully compatible with modern WebGL viewers.
A simple and effective workflow consists of a few essential steps.
Start by preparing the model in Blender. Optimize the scene by removing unnecessary elements and keeping the geometry clean. The model should then be correctly centered relative to the scene origin to ensure consistent positioning when displayed online.
Next, apply lightweight, optimized materials. Avoid excessively large textures that could slow down loading times on the web. It is also useful to configure an appropriate camera and lighting setup to generate an effective preview and present the model at its best.
Once optimization is complete, export the file in .glb format so that it is ready for use on the web.
Finally, upload the model to WordPress and display it through a WebGL viewer. This allows users to interact with the 3D object directly in their browser, without installing additional plugins or software.
A convenient solution for WordPress and Elementor is the <model-viewer> component:
Example HTML:
The repository also includes a dedicated guide:
If your goal is to integrate 3D models, configurators, automations, or dynamic content into a business website, you can also explore Webita’s website and AI services:
Webita: web agency, SEO, development, and automation
Codex Plugins: What Does That Really Mean?
A natural question is:
Can it be installed as a Codex plugin with one click?
At present, there is no official public marketplace for third-party Codex plugins. The repository also includes a local Codex plugin scaffold, which may be useful for future or experimental workflows, but it should not currently be presented as the primary installation method.
In short:
- MCP server: the actual engine
- Blender add-on: the bridge running inside Blender
- Plugin scaffold: a future or local foundation for plugin packaging
Security
The execute_blender_code tool can execute Python code inside Blender.
This is powerful, but it requires caution:
- Save your .blend file before making significant changes.
- Work in small steps.
- Check the results frequently using screenshots.
- Only use repositories and scripts that you trust.
References
- Blender Codex MCP repository
- Webita AI
- Webita digital services
- Free introductory AI course
- Model Context Protocol
- Blender Python API
- uv documentation
- model-viewer
Blender Codex MCP is more than a simple experiment: it is a practical way to make Blender more accessible to AI-assisted workflows.
For professionals working with technical models, configurators, product scenes, or 3D content for websites, it introduces a practical and concrete workflow.
If you would like to evaluate an AI automation project, a website integration, or a custom workflow, you can start with Webita AI.
Repository: https://github.com/webita/blender-codex-mcp
Frequently Asked Questions
What is Blender Codex MCP?
Blender Codex MCP is an open-source project that connects Codex to Blender through the Model Context Protocol. It allows Codex to inspect a Blender scene, execute Python code, capture viewport screenshots, and prepare models for web export in formats such as .glb.
Does Blender need to remain open?
Yes. Blender must remain open because the MCP server communicates with an add-on installed inside Blender. If Blender is closed, Codex can no longer read or modify the scene.
Do I need to install an add-on in Blender?
Yes. The project includes an addon.py file, which can be installed in Blender by going to Edit > Preferences > Add-ons > Install. Once enabled, the add-on opens a local bridge on localhost:9876.
What is MCP?
MCP stands for Model Context Protocol. It is a standard that allows AI applications to connect to external tools, data, and workflows. In this case, it is used to connect Codex to Blender.
Can I install it as a Codex plugin with one click?
Not at the moment. There is currently no official public marketplace for third-party Codex plugins. The recommended way to use the project is to download the repository from GitHub, install the Blender add-on, and configure the MCP server in Codex.
Allora a cosa serve lo scaffold plugin Codex incluso nella repo?
Serve come base sperimentale per futuri workflow plugin/locali. Il motore reale del progetto resta il server MCP; lo scaffold plugin documenta come potrebbe essere impacchettato in futuro quando il supporto plugin sara piu aperto.
What is the Codex plugin scaffold included in the repository for?
It provides an experimental foundation for future plugin and local workflows. The MCP server remains the project’s actual engine. The plugin scaffold shows how the project could be packaged in the future, once plugin support becomes more open.
Can Codex actually see what is happening in Blender?
Codex can read scene information and capture viewport screenshots through the MCP tools. This enables a more reliable workflow: make a change, capture a screenshot, review the result, and make corrections.