Codex and Unity MCP: setup and cube creation tutorial

Learn to connect Codex to Unity through Unity MCP, install the required Python and uv tools, start the server, and test cube creation.

Player not loading? Watch on YouTube

This tutorial walks through connecting Codex to the Unity editor with Unity MCP. The speaker introduces the workflow with a red cube they say was created through Codex, then covers project creation, package installation and a command-line test. It is a coding assistant setup for controlling Unity through an MCP server; the transcript does not establish that the model runs locally or works offline.

The setup begins with a new Unity project. The presenter adds a GitHub URL through Unity's package installation interface, then opens the MCP for Unity setup window. The supplied metadata links to CoplayDev's unity-mcp repository. The setup identifies Python and uv as requirements, but gives no specific versions or hardware requirements.

For Codex, the description supplies the command npm install -g @openai/codex. The presenter selects Codex in the Unity MCP setup, installs skills, configures the connection and starts the server. They then launch Codex in a command prompt, sign in through ChatGPT and proceed through sandbox setup.

The final test asks Codex to create a cube in the scene using Unity MCP. The speaker reports that the connection works and returns to Unity to show the result. The walkthrough demonstrates a basic editor action, rather than a broader test of game development tasks. Its closing model reference is unclear in the transcript, so it does not establish a reliable model name or version.