codex3d
Enables natural language creation and refinement of Blender scenes through structured MCP tools, with persistent object identity, visual validation, and reversible edits.
README
Codex3D
Create and refine Blender scenes in ordinary language, with structured tools, persistent identity, visual validation, and reversible edits.
Codex3D is a local-first creative 3D agent for designers and first-time Blender users. Codex turns a user's intent into allowlisted MCP tools; a localhost bridge executes those actions on Blender's main thread, then returns scene inspection and render evidence for the next feedback turn.

Unofficial Codex-inspired concept demo. Codex3D is not endorsed by OpenAI and does not reproduce an official logo.
Why It Is Different
- Structured, inspectable execution. No arbitrary Python,
eval,exec, shell MCP tool, or model-writtenbpyscript. - Persistent identity and safe recovery. Blender objects carry stable UUIDs; snapshots are session-bound, fingerprinted, and restored with an automatic safety snapshot.
- Visual delivery gates. Render validation checks framing, visibility, unwanted objects, luminance, overexposure, active camera, and animation metadata before delivery.
60-Second Quick Start
Supported reference setup: macOS arm64, Blender 5.1.1, Python 3.10+ (validated on 3.13.9), Codex CLI 0.135.0, and optional Homebrew FFmpeg 8.1.2.
python scripts/build_blender_extension.py
In Blender, use Edit -> Preferences -> Extensions -> Install from Disk, select the ZIP in dist/, enable Codex3D, open the 3D View sidebar, and click Connect. Export the displayed one-time token only in the terminal that launches the MCP adapter:
export CODEX3D_BRIDGE_HOST=127.0.0.1
export CODEX3D_BRIDGE_PORT=9876
export CODEX3D_BRIDGE_TOKEN='your-panel-token'
export PYTHONPATH=packages/protocol:apps/api:apps/mcp
python -m codex3d_mcp
See Blender add-on installation and Codex MCP setup for verified commands and troubleshooting.
Judge Path
Judges do not need to rebuild the connector source:
- Install
codex3d-blender-extension-0.1.0.zipfrom the release bundle. - Connect the Blender sidebar on
127.0.0.1. - Configure the local STDIO MCP command from
docs/codex_mcp.md. - Ask:
Inspect the scene, create a small glowing six-orbit emblem, render a preview, then make a snapshot before changing it. - For a no-Blender smoke path, run:
PYTHONPATH=packages/protocol:apps/api:connectors/blender_addon \
python examples/hackathon_sprint_01_demo.py
Expected smoke result: 31 planned actions, 31 successes, and 16 inspected fake-backend objects.
Three-Minute Demo
- Start with an isolated blank Blender scene and describe the intended kinetic emblem.
- Watch Codex call structured MCP tools while geometry appears progressively.
- Give an aesthetic follow-up; inspect and rerender.
- Reject a deliberately bad edit and restore the accepted snapshot.
- Deliver the validated PNG, H.264 MP4, and versioned
.blendcheckpoint.
The recording script and fallback plan are in DEMO_SCRIPT.md.
Architecture
flowchart LR
U["Natural-language user"] --> C["Codex / GPT-5.6"]
C --> M["STDIO MCP adapter"]
M --> S["Authenticated localhost bridge"]
S --> Q["Blender main-thread queue"]
Q --> B["Structured bpy backend"]
B --> V["Inspection, render validation, snapshot/restore"]
V --> C
The MCP and API layers never import bpy. The socket thread never mutates Blender. All live scene access is pumped through bpy.app.timers on Blender's main thread.
Codex and GPT-5.6
The primary build task is 019f7749-0bc7-7733-9d9a-17a37e273539. Local Codex session records show gpt-5.6-sol applied repeatedly during the core implementation period beginning July 18, 2026. Codex accelerated protocol design, bridge/main-thread boundaries, MCP schemas, test generation, isolated Blender automation, failure diagnosis, and approval-safe restore/save design.
Human decisions remained explicit: Blender-first modular architecture; allowlisted Actions instead of arbitrary Python; localhost-only HMAC transport; stable UUIDs; artifact-root path confinement; reversible snapshots; and synthetic-test claims that do not overstate human usability.
The required /feedback result is still pending and is not the same as the task ID above. Run /feedback in that primary build task before submission.
Evidence
- Default suite: 153 passed, 3 skipped.
- Unchanged nine-turn synthetic novice test: SYNTHETIC_PASS 100/100.
- Real Blender: snapshot/restore, render, H.264 MP4, stable UUID, and GUI Timeline acceptance passed.
- Synthetic testing proves repeatable multi-turn execution, not human comprehension, trust, or satisfaction.
Security Model
- Bridge binds only to
127.0.0.1and authenticates with a one-time HMAC token. - Tokens are excluded from logs, responses, release assets, and Git.
- Artifact writes are confined to an explicit root; traversal and overwrite are rejected.
- Restore is limited to registered session snapshots and creates a safety snapshot first.
- The extension exposes structured actions only, never arbitrary Python or shell execution.
See SECURITY.md for the threat boundary and reporting guidance.
Tests
python -m pytest
python -m compileall apps packages connectors examples scripts tests
Real Blender and long-running synthetic tests are opt-in through their documented environment flags. The default test run does not launch Blender.
Known Limits
- The full nine-turn synthetic creative flow takes about 17.5 minutes.
- Broad mutation batches may require approval; granular structured tools are the validated path.
- There is no Web UI.
- Stable UUID support exists, but full Scene IR reconciliation and long-term history do not.
- The tested platform is macOS arm64 with Blender 5.1.1; other platforms are not yet verified.
License
MIT. See LICENSE and THIRD_PARTY_NOTICES.md.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。