Guides
Connect OpenAI Codex to Roblox Studio over MCP
Connect Codex CLI or the ChatGPT desktop app to Roblox Studio: enable the MCP server, install Roblox's official plugin, verify and troubleshoot.
3 min read

Quick answer
How do you connect Codex to Roblox Studio?
Turn on Studio's built-in MCP server, then either switch on Codex in Studio's quick connect, or install Roblox's official Roblox Studio plugin in Codex CLI with codex plugin marketplace add Roblox/roblox-studio-agent-plugin. Check it with codex mcp list, which should show Roblox_Studio.
What you need
- Roblox Studio on macOS or Windows, signed in, with a place open
- Codex CLI or the ChatGPT desktop app
- Studio's MCP server switched on
Studio's MCP server runs on your computer, so the web and mobile versions of ChatGPT can't connect to it. They can still help you plan and write Luau (Roblox Studio plugin).
Step 1: Turn on Studio's MCP server
In Studio: Assistant ⟩ … ⟩ Manage MCP Servers (or Settings ⟩ MCP Servers in newer versions) ⟩ Enable Studio as MCP server (Studio MCP).
Step 2: Connect Codex
Option A: the official plugin (Codex CLI)
- Run
codex plugin marketplace add Roblox/roblox-studio-agent-plugin. - Open
/plugins, install Roblox Studio, and start a new thread with/new. - In Studio's MCP Servers pane, under Quick Connect, turn on ChatGPT (codex), then open a new Codex thread.
Option B: quick connect only
In Studio's MCP Servers pane, expand Quick connect and turn on Codex CLI.
Option C: manual config
Add a Roblox_Studio server that runs the local command: /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP on macOS, or cmd.exe /c %LOCALAPPDATA%\Roblox\mcp.bat on Windows. It's a stdio server, not a URL.
ChatGPT desktop app: open Plugins, find Roblox Studio, install it, and start a new chat.

Step 3: Check it works
- Run
codex mcp list. It should showRoblox_Studio. - Ask: "list my open Roblox Studio windows." Codex should name your place.
What Codex can then do
Through Studio's tools it can read, search and edit scripts, inspect the game tree, run Luau, start and stop playtests, read console output, take screenshots and call Roblox's generation tools (Studio MCP).
Before you ask for big changes
The plugin README warns that the assistant "changes your place directly" and that not every change can be undone from Studio. Save or publish a version first. For code, consider keeping scripts in Git with Rojo or script sync. See MCP vs Rojo.
Not connecting?
Restart Studio and Codex, confirm the command path exists, and check your JSON if you configured it by hand. More fixes in MCP not connecting.
Models for your game
Codex writes and edits code and can call Roblox's mesh generation. For models in your own style, from your sketches, Vi3W generates textured, retopologised meshes exported as GLB, FBX or OBJ for the Studio Importer. Make models in Vi3W.
Last reviewed

