In short
With a personal Google account, install Antigravity (the app, the IDE or the agy command line). In Roblox Studio, open Assistant, click … > Manage MCP Servers, turn on Enable Studio as MCP server, then switch on Antigravity under Quick connect, or add Roblox's JSON to ~/.gemini/config/mcp_config.json yourself. Restart Antigravity, check the server with /mcp, and start with a request that only reads.
- Gemini CLI is still on Roblox's list, but Google's notice says it was replaced by Antigravity CLI on 18 June 2026 for unpaid and Google One users. Google says it stays accessible with paid Gemini API keys and organization licenses.
- The Gemini app in a browser or on a phone is not on Roblox's list, and we found no Google documentation for adding a local MCP server to it.
- Both Google clients ask before an MCP tool runs unless you change that. Keep it that way for tools that edit, run code or save, and save a version of your place first.
On this page
Which Gemini can connect to Roblox Studio
Studio's MCP server is a local process on your computer that talks to a client over stdio, so the client has to run on the same computer and be able to start a local command. This is how Google's products line up against that, as of 13 November 2026.
| Client | Reaches Studio? | Notes |
|---|---|---|
| Antigravity (App, IDE or CLI) | Yes | Antigravity is on Roblox's quick connect list. Roblox does not say which of the three it means. Google says the global MCP file is used by the CLI and the IDE. |
| Gemini CLI | Yes, if you still have access | On Roblox's list. Google replaced it with Antigravity CLI on 18 June 2026 for unpaid and Google One users. See Gemini CLI below. |
| Gemini app on the web or a phone | Not documented | Not on Roblox's list. We found no Google page that describes adding a local MCP server to it. |
| A Gemini API key in Studio Assistant | Yes, a different route | No MCP involved. Roblox's Assistant accepts a Google Gemini API key and runs a Gemini model inside Studio. See below. |
What happened to Gemini CLI
Google's blog post of 19 May 2026 says it is moving its coding tools into Google Antigravity. From 18 June 2026, Gemini CLI stopped serving requests for Google AI Pro and Ultra subscribers and for free individual use. The Gemini CLI documentation now opens with a notice that it was replaced by Antigravity CLI on that date for unpaid tier and Google One users.
- Still served: Google says Gemini CLI remains accessible through paid Gemini API keys and Gemini Enterprise Agent Platform API keys, and that organizations with a Gemini Code Assist Standard or Enterprise license keep their access.
- Everyone else: use Antigravity. Google's install page says a personal Google Account on a Free, Pro or Ultra plan can sign in. It does not describe the Free plan's limits on that page.
- Not the same feature for feature: Google's post says there is no one-to-one feature parity at the start.
Roblox's quick connect list still shows both names. If you have a personal Google account and no paid API key, pick Antigravity.
Step 1: Turn on the MCP server in Studio
- Open Roblox Studio and open the place you want to work on. Install any Studio update first.
- Click Assistant to open the Assistant window.
- Click … and choose Manage MCP Servers.
- Turn on Enable Studio as MCP server.
Keep the panel open for the next step. If the Assistant button is missing, see how to open the Assistant panel.
Step 2: Connect Antigravity
Install and sign in
Antigravity comes as a desktop app, an IDE and a command line named agy. The app and IDE downloads are at antigravity.google/download. These are the CLI install commands Google's quickstart gave on 13 November 2026.
curl -fsSL https://antigravity.google/cli/install.sh | bash
irm https://antigravity.google/cli/install.ps1 | iex
Run agy --version to check the install, then run agy in a project folder. It signs you in through a browser. On first run it asks you to confirm workspace trust for the folder.
Quick connect
- In Studio's Manage MCP Servers panel, expand the Quick connect drop-down. It lists the supported clients installed on your computer.
- Turn on Antigravity. If it is missing, install Antigravity and restart Studio.
- Restart Antigravity. Roblox says a client needs a restart to apply the change.
Roblox does not say which file quick connect writes or which Antigravity product it targets. After the restart, check that the server appears where you work, using the steps under Check the connection. If it does not, add it by hand.
Manual setup with mcp_config.json
Antigravity keeps MCP servers in their own file, not in a settings file. Google documents two locations: ~/.gemini/config/mcp_config.json for all projects, used by the CLI and the IDE, and .agents/mcp_config.json inside a workspace for that workspace only. The file holds an mcpServers object keyed by server name, and a local server needs a command with optional args. That is the shape of Roblox's own configuration, so it goes in as it is.
{
"mcpServers": {
"Roblox_Studio": {
"command": "cmd.exe",
"args": [
"/c",
"%LOCALAPPDATA%\\Roblox\\mcp.bat"
]
}
}
}
{
"mcpServers": {
"Roblox_Studio": {
"command": "/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP"
}
}
}
Google writes the global path with ~ and does not spell out the Windows folder. You do not have to guess it: each Antigravity product can open or show the file.
- Antigravity IDE: click … at the top of the agent side panel, select MCP Servers, then Manage MCP Servers, then View raw config, and edit
mcp_config.json. - Antigravity App: click Customizations in the sidebar, then Installed, and scroll to MCP Servers. Copy Config File Path in the section header gives you the file's location. The Add MCP Server button there adds servers from a list; Google's page does not describe entering a custom local command in that screen.
- Antigravity CLI: edit the file, then type
/mcpto open the MCP manager, where you can see status, reload the configuration and read connection logs.
Coming from Gemini CLI
Gemini CLI declared MCP servers inside ~/.gemini/settings.json. Antigravity reads mcp_config.json instead. Google's migration page says agy detects an old profile on first launch and shows a checklist of what to convert. A local Studio entry copies across unchanged, because command and args are the same in both.
Step 3: Check the connection
- In Antigravity CLI, type
/mcp. In the IDE, open … > MCP Servers. In the App, open Customizations > Installed > MCP Servers. The Studio server should be listed. - In Studio, open Assistant > … > Manage MCP Servers. A green indicator under Enable Studio as MCP server shows the number of connected clients.
- Send a first request that cannot change anything.
Use the Roblox Studio MCP tools. Call list_roblox_studios and tell me which place you are connected to, then list what is in Workspace. Do not change anything.
On a fresh Baseplate, Roblox's coding harness guide expects the answer to describe the default Camera, Terrain, Baseplate and SpawnLocation. Antigravity asks before it calls the tool. Approve it, and check that the answer names the place you have open.
Antigravity loads MCP tools lazily by default: it keeps each server's tool list on disk and calls tools through a general call_mcp_tool step. We have not seen how its approval prompt words a Studio call, so read the request rather than expecting the Studio tool name at the top.
Step 4: Keep Gemini asking before it changes your place
Roblox's warning is short: MCP clients can read and modify content in your open places, so connect only clients you trust. The Studio tools include multi_edit (edits and creates scripts), execute_luau (runs code), start_stop_play (starts a playtest), insert_asset, upload_image, the generate_ tools and save_place, which saves the open place without a dialog.
Google's permissions page says MCP tools default to Ask: a tool call you have not configured prompts for approval. That holds until you add a rule that allows it. Rules use the pattern mcp(server/tool) for one tool, mcp(server/*) for a whole server and mcp(*) for every MCP tool, in three lists where deny beats ask and ask beats allow.
For the CLI, the rules live in ~/.gemini/antigravity-cli/settings.json under permissions. This example was written for this guide. It lets Antigravity read without asking and pins the tools that change things to ask, so a later broad allow rule cannot switch them off. Replace Roblox_Studio with the server name /mcp shows.
{
"permissions": {
"allow": [
"mcp(Roblox_Studio/list_roblox_studios)",
"mcp(Roblox_Studio/search_game_tree)",
"mcp(Roblox_Studio/inspect_instance)",
"mcp(Roblox_Studio/script_read)",
"mcp(Roblox_Studio/script_grep)",
"mcp(Roblox_Studio/get_console_output)"
],
"ask": [
"mcp(Roblox_Studio/multi_edit)",
"mcp(Roblox_Studio/execute_luau)",
"mcp(Roblox_Studio/start_stop_play)",
"mcp(Roblox_Studio/save_place)"
],
"deny": [
"mcp(Roblox_Studio/insert_asset)",
"mcp(Roblox_Studio/upload_image)"
]
}
}
- Do not allow the whole server.
mcp(Roblox_Studio/*)in the allow list lets every Studio tool run without a prompt, including the ones that run code and save. - The App has presets instead of a file. Google lists Request Review, Default, Auto and Turbo, set in the App's settings. The permissions page gives no file path for the App.
- Modes are about files and commands. In the CLI, Shift+Tab cycles
auto,plan,defaultandaccept-edits. Google describesautoin terms of workspace edits and sandboxed commands. It does not sayautochanges the Ask default for MCP tools, and we have not tested it, so watch the first few Studio calls. - You can also hide tools. A server entry in
mcp_config.jsonacceptsdisabledTools, a list of tool names the agent does not get at all.
Save a version before each session
Roblox's MCP page does not say whether a client's edits land in Studio's undo history. Before Gemini changes anything, use File > Save to Roblox with Notes so there is a named version to return to, and work in a test copy rather than your live game. The Studio MCP guide shows how to restore a version. One client can reach every open Studio window, so close the places you do not want touched.
Gemini CLI: if you still have access
This section is for people with a paid Gemini API key or an organization license, the groups Google says Gemini CLI still serves. Google's notice also says Gemini CLI is not optimized for its newest model and points to Antigravity for that.
Quick connect or settings.json
In Studio's Manage MCP Servers panel, turn on Gemini CLI under Quick connect and restart Gemini CLI. To add the server yourself, Gemini CLI reads mcpServers from ~/.gemini/settings.json for your user, or .gemini/settings.json in a project. Roblox's JSON fits that key as it is. If the file has other settings, add the mcpServers key next to them.
{
"mcpServers": {
"robloxstudio": {
"command": "/Applications/RobloxStudio.app/Contents/MacOS/StudioMCP"
}
}
}
{
"mcpServers": {
"robloxstudio": {
"command": "cmd.exe",
"args": ["/c", "%LOCALAPPDATA%\\Roblox\\mcp.bat"]
}
}
}
The name here is robloxstudio, not Roblox's Roblox_Studio, on purpose. Gemini CLI names each tool mcp_{serverName}_{toolName}, and its documentation warns against underscores in server names because its policy parser splits names on underscores. The name is only a label, so any name without an underscore works. If quick connect created an entry with an underscore and you write policy rules, check they match.
On macOS you can add the server with one command instead. The default scope is the current project, so -s user makes it available everywhere.
gemini mcp add -s user robloxstudio /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP
Check and approve
gemini mcp listin a terminal shows each server and its status. It also shows connection errors. A stdio server shows as disconnected in a folder you have not trusted.- Inside a session,
/mcplists the servers, their status and their tools. - Gemini CLI asks before each MCP tool call unless the server has
"trust": true. The prompt lets you allow once, always allow that tool, always allow that server, or cancel. Leavetrustoff for Studio, and do not choose always allow for the server. - To remove tools from the agent's reach, add
"excludeTools": ["insert_asset", "upload_image", "save_place"]to the server entry.includeToolsis the allowlist form, andexcludeToolswins if a tool is in both.
A Gemini model inside Studio, without MCP
If all you want is a Gemini model answering inside Studio, there is a shorter route. Roblox's announcement says Assistant accepts API keys from Anthropic, OpenAI and Google Gemini. Open Assistant, click … > Manage API Keys, choose the provider, paste the key and pick the model in the Model drop-down. Google creates Gemini API keys in Google AI Studio. You type in Studio's Assistant panel, and Assistant does the work with the model you chose.
For the other clients Roblox lists, see the Studio MCP setup guide, Claude Code, OpenAI Codex and Cursor.
Troubleshooting Gemini and Studio
Roblox's own checklist has three items: restart both Studio and the client, check that the command or binary path exists, and check the JSON syntax. These are the cases specific to Google's clients.
Gemini CLI stopped answering, or refuses to sign in
Google replaced Gemini CLI with Antigravity CLI on 18 June 2026 for unpaid and Google One users, and stopped serving their requests. Install Antigravity and connect that instead. Gemini CLI keeps working only with a paid Gemini API key or an organization license, according to Google.
Antigravity or Gemini CLI is not in the Quick connect list
The list shows only supported clients installed on your computer. Install the client, then restart Studio. If it still does not appear, add the server by hand with the JSON in Step 2.
I turned on quick connect but the server is not in Antigravity
Roblox does not say which file its switch writes. Open the MCP configuration from inside Antigravity (IDE: … > MCP Servers > Manage MCP Servers > View raw config; App: Copy Config File Path) and add the Roblox_Studio entry there, then restart.
The server is listed but will not connect
Check that the file exists: %LOCALAPPDATA%\Roblox\mcp.bat on Windows, /Applications/RobloxStudio.app/Contents/MacOS/StudioMCP on macOS. Open your place, make sure Enable Studio as MCP server is on, then restart the client. In Antigravity CLI, /mcp shows connection logs. In Gemini CLI, run gemini mcp list, and remember that a stdio server stays disconnected in an untrusted folder.
My old Gemini CLI servers are missing in Antigravity
Antigravity does not read mcpServers from ~/.gemini/settings.json. Move the entries to ~/.gemini/config/mcp_config.json, or accept the conversion checklist agy shows on first launch. For remote servers Google says the URL key changes to serverUrl; a local Studio entry needs no change.
A long task times out
Antigravity allows 300 seconds to connect and list tools and 180 seconds for each tool call by default. A positive timeoutSeconds on the server entry replaces both. Gemini CLI uses timeout in milliseconds, with a default of 600,000.
Gemini changed the wrong place
With several Studio windows open, every tool call names its target with a studio_id. Ask it to call list_roblox_studios and name the place you mean, close the windows you are not using, and restore the changed place from Version History.
Or skip the MCP setup: RoCode
RoCode (RoCode.app) is a different route, and it is not an MCP product. It is an independent AI agent for Roblox Studio: you describe a change in a web chat at rocode.app, and a free RoCode plugin from the Creator Store carries out the steps in the place you have open. There is no config file, command line or MCP server to set up. You allow the plugin's HTTP and Script Injection permissions in Studio. The plugin then connects by itself when Studio is signed in to the same Roblox account you use on RoCode; otherwise you pair the chat and the plugin once with the 8-character code shown in the plugin panel.
The trade-offs, stated plainly. RoCode runs its own choice of third-party models through OpenRouter under their own names: GPT-6 Luna on every plan, GLM 5.3 Flash and Claude Sonnet 5.5 from Pro, Claude Opus 5.5 from Studio and GPT-6 Astra from Ultra. With plugin 3.9 or newer it can run a short playtest and read the errors, and with plugin 3.9.11 or newer control a test character to check the game works. It does not run code directly or generate meshes, both of which the Studio MCP tools can do. The free Starter plan includes 1 credit a day. For how it compares with other tools, see Roblox AI tools compared.
My CoinPickup script gives coins twice when a player touches a coin. Find the cause and fix it.
- Finds the script with Search Scripts and reads it with Read Script
- Fixes the code in place with Edit Script, in the Studio window that is connected
- Compile-checks the script inside Studio with Check Script before it finishes. That is a compile check, not a type check or a playtest
- Sends its changes in batches, and each batch is an undo point in Studio's own history
RoCode checks only what it chose to test, so press Play yourself and collect a few coins to confirm the fix. The prompt is an example written by us; the steps use the real tool names. How the plugin and pairing work. RoCode is an independent product, not affiliated with, endorsed by or sponsored by Roblox Corporation.
Questions
Can Gemini connect to Roblox Studio?
Yes, through a Google client that runs on your computer. Roblox lists Antigravity and Gemini CLI as quick connect clients for the MCP server built into Studio. Turn on Enable Studio as MCP server under Assistant > … > Manage MCP Servers, switch on your client under Quick connect, and restart it.
Does Gemini CLI still work with Roblox Studio?
Only if Google still serves your account. Google replaced Gemini CLI with Antigravity CLI on 18 June 2026 for unpaid and Google One users. It says Gemini CLI remains accessible with paid Gemini API keys and for organizations with a Gemini Code Assist license. Roblox's list still shows Gemini CLI (checked 13 November 2026).
Is Gemini free to use with Roblox Studio?
Roblox's MCP page mentions no charge for the Studio server. Google's Antigravity install page says a personal Google Account on a Free plan can sign in, but that page does not describe the Free plan's limits, so check Google's plans page before you count on it.
Can the Gemini app or website connect to Roblox Studio?
Not that we could find. The Gemini app is not on Roblox's quick connect list, and we found no Google documentation for adding a local MCP server to it. Studio's server is a local process, so it needs a client on the same computer, such as Antigravity.
Where do I put the Roblox Studio MCP config for Gemini?
For Antigravity, in ~/.gemini/config/mcp_config.json, or .agents/mcp_config.json inside one workspace. For Gemini CLI, under mcpServers in ~/.gemini/settings.json. Both take the mcpServers entry Roblox documents.
Can I use a Gemini API key in Roblox Studio instead?
Yes, as a separate route with no MCP. Roblox says Assistant accepts a Google Gemini API key under … > Manage API Keys, and you then pick the model in Assistant's Model drop-down.
Sources and further reading
- Roblox Creator Docs: Connect to the Roblox Studio MCP server. enabling the server, Antigravity and Gemini CLI on the quick connect list, the JSON configurations, the tools and troubleshooting
- Roblox Creator Docs: Build with a coding harness. the first read-only check in Workspace
- Roblox Developer Forum: Studio MCP Server Updates and External LLM Support for Assistant. a Google Gemini API key in Assistant
- Google Developers Blog: Transitioning Gemini CLI to Antigravity CLI. who lost Gemini CLI access on 18 June 2026 and who keeps it
- Google Antigravity Docs: MCP. config file locations, the mcpServers format, App, IDE and CLI steps, timeouts and the Ask default
- Google Antigravity Docs: Permissions. modes, the mcp(server/tool) patterns and the allow, ask and deny lists
- Google Antigravity Docs: Get started. install commands, agy, first run and modes
- Google Antigravity Docs: Authenticate. sign-in with a personal Google Account on a Free, Pro or Ultra plan
- Google Antigravity Docs: Migrating from Gemini CLI. MCP servers move from settings.json to mcp_config.json
- Gemini CLI Docs: MCP servers. the replacement notice, settings.json, trust, tool filters, gemini mcp commands and the underscore warning