Skip to main content
Glama

mcp-tools

An MCP server for working on a Roblox game from an AI assistant (Claude Code and other MCP clients), next to Roblox's own Studio MCP. It covers what that one can't: keeping Rojo running and connected without anyone clicking Connect, uploading models, images, sounds and video as assets without touching Studio (or importing them through Studio's own importer), and letting the assistant check its work through Rojo's and Studio's logs and a screenshot of Studio. Windows only.

Tool

What it does

rojo_start(project, port=34872)

Serves a Rojo project in a process that keeps running after the assistant's session ends. Does nothing if it's already being served; refuses if another project is on the port.

rojo_status(project, port)

Is a server for that project answering, and did rojo_start start it?

rojo_stop(port)

Stops the server rojo_start started (never one it didn't start).

rojo_logs(port, lines=50)

The end of that server's output: where Rojo reports files it can't sync.

rojo_sync_check(project, port)

Is Studio running the scripts on disk? Returns Luau to run in Studio that lists every script whose source differs from its file (length and checksum), plus whether Rojo is up or crashed.

rojo_build_plugin()

Builds a Rojo plugin that connects by itself in Edit mode (below), from the installed Rojo's own version.

rojo_install_plugin(configure_settings=True)

Installs that plugin (backing up the old one) and, with Studio closed, turns on Rojo's Auto Reconnect and "Unlisted PlaceId" confirmation.

studio_windows()

The open Studio windows (one per open place), with each one's pid and log file.

upload_assets(paths, tos_check, creator="")

After you confirm in a dialog, uploads models (FBX / GLB / GLTF / RBXM / OBJ), images, sounds and video as Roblox assets through Open Cloud, a few at a time, and returns their asset ids. No Studio window, focus or mouse.

studio_import(paths, window="", allow_input=True)

Imports meshes (FBX / OBJ / GLB / GLTF), images, sounds and video through Studio's importer, as a person would: files and/or whole folders, one after another.

studio_logs(lines=50, pattern="", since_minutes=0, window="")

The end of a Studio window's log (Output window and Studio's own messages), filtered by a regex and/or age.

studio_screenshot(window="")

A screenshot of a Studio window, returned as an image, even if it's behind other windows.

serve_files(paths, minutes=10)

URLs for local files on 127.0.0.1, for tools that take URLs (the Roblox Studio MCP's upload_image).

receive_files(folder, minutes=10)

A URL a Studio script can PUT files to (base64 bodies fine), written under folder: snapshots of place data, for example. Studio's HttpService needs 127.0.0.1 on the Assistant's HTTP allowlist.

Each Studio tool works on one Studio window. With several open (one per place), pass window: a place name, part of the window title, or a pid from studio_windows. With just one open it can be left out.

Install

Needs Windows, uv, Roblox Studio, and for the Rojo tools rojo (e.g. through aftman or rokit) and git.

Claude Code:

claude mcp add mcp-tools --scope user -- uvx --from git+https://github.com/gavinostler/mcp-tools mcp-tools

Other MCP clients (Claude Desktop, Cursor, ...):

{
  "mcpServers": {
    "mcp-tools": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/gavinostler/mcp-tools", "mcp-tools"]
    }
  }
}

For upload_assets, add an Open Cloud API key (create.roblox.com > Open Cloud > API Keys, with the Assets API's read and write permissions):

claude mcp add mcp-tools --scope user -e ROBLOX_API_KEY=<key> -- uvx --from git+https://github.com/gavinostler/mcp-tools mcp-tools

(or "env": {"ROBLOX_API_KEY": "<key>"} in the JSON above). Assets go to the key's owner; ROBLOX_CREATOR (a user id or group:<id>) or the tool's creator changes that.

Working files (pid files, server logs, the plugin build) go in %LOCALAPPDATA%\mcp-tools.

Related MCP server: Roblox Studio MCP Server (Posuceius Fork)

Rojo that stays up and connects by itself

rojo_start launches rojo serve through WMI (Win32_Process.Create), so the server isn't in the assistant's process tree and survives its session ending (assistants' background commands are usually killed after a while, and the sync with them).

Stock Rojo has no Edit-mode auto-connect: "Auto Reconnect" only tries once, when the plugin loads. The patch this builds (src/mcp_tools/autoconnect.patch) adds a loop: every 5 seconds in Edit mode, if Auto Reconnect is on and nothing is connected, it connects to a server on the configured host/port, but only if that server's project lists the open place in servePlaceIds. Disconnect or Abort pauses it until you next connect by hand. The build uses the installed CLI's version tag of rojo-rbx/rojo, so plugin and server always match, and stops with an error if a newer Rojo no longer takes the patch. Tested on 7.7.1.

Once: rojo_build_plugin, close Studio, rojo_install_plugin, then add your place to the project:

"servePlaceIds": [123456789],

(If Studio was open during rojo_install_plugin, set Auto Reconnect on and Confirmation Behavior to "Unlisted PlaceId" in Rojo's settings yourself; Studio rewrites its settings when it closes.)

Uploading assets

Every upload is published to your account and moderated by Roblox, a model's textures included. Text, links or watermarks in an image (even an artist's credit in a texture's corner) can get the account banned. Check every image before uploading.

The assistant has to prove each upload doesn't break Roblox's Terms of Use: tos_check names every file and texture and says what was checked in it, and is refused if one is missing. Then a dialog shows the files, the textures and that check, and uploads only if you confirm. A client that can't show the dialog can't upload.

upload_assets sends each file to Open Cloud's Assets API and waits for Roblox to process it, so nothing happens in Studio: put the results in a place with the Roblox Studio MCP's insert_asset. paths is a list of files and/or folders (every supported file directly inside). A folder with a mesh in it leaves out its images, since they're the mesh's textures. One failed upload doesn't stop the rest; each file gets its asset id or its error.

  • OBJ is converted to GLB (its MTL textures embedded), split into files under 20 MB, and comes back with Luau that puts all of it in one Model.

  • 20 MB per file (video excepted). Audio counts against your monthly upload limit.

  • Models arrive as packages.

  • Images upload as Decals, and a Decal's id isn't an image id. In Studio, InsertService:LoadAsset(id):FindFirstChildWhichIsA("Decal", true).Texture is the image id.

It also works without the server: python -m mcp_tools.assets <file or folder>... [--creator ID] lists what it will upload and asks for y at the terminal.

Studio import

studio_import drives Studio's UI with Windows UI Automation: File > Import, the file dialog, then Import in the Import Preview, leaving your importer settings as they are (so "Upload to Roblox" etc. behave as when you import by hand). It takes everything in the dialog's "All Supported Files": meshes (.fbx .obj .gltf .glb), images (.bmp .gif .jpeg .jpg .png .tga), audio (.ogg .mp3 .flac .wav) and video (.mp4 .mov). A mesh always gets the Import Preview; if another kind of file gets none within 15 seconds of the file dialog closing, the tool takes it that Studio sent it straight to its Import Queue and returns. Returning means the importer accepted the file; Studio's Import Queue finishes it a few seconds later, so check it arrived (with the Studio MCP) and look at studio_logs before using it.

Bulk import. paths is a list of files and/or folders (a folder means every supported file directly inside it). Everything is checked before Studio is touched, then imported one at a time (about 15-20 seconds each, with a pause between), reporting progress to clients that ask for it. It stops at the first failure and says which files were imported and which weren't tried.

Your mouse and keyboard. The menu and file dialog go through UI Automation, and Import is clicked by posting mouse messages to the Import Preview, so the real pointer doesn't move. If Studio ignores that click (nothing happens within 5 seconds), it clicks with the real mouse; with allow_input=False it cancels that import and fails instead. A menu left open by an earlier import is closed the same way, with a real Esc only as the fallback. The result says how Import was clicked. Studio's window (then the Import Preview) does still come to the front, since File > Import works on the active window.

Limits, because Studio draws the inside of the Import Preview itself (invisible to UI Automation):

  • The Import button is found by its position from the window's bottom-right corner and clicked only once that pixel is blue (enabled). If a Studio update moves it, the tool times out rather than clicking anything else: update IMPORT_BTN_FROM_BR in studio_import.py.

  • It can't read importer warnings: with the button enabled it imports anyway.

  • The Studio window must be in Edit mode (check before calling: it doesn't) and visible on screen.

  • File > Import works on the place in Studio's active window, so the tool brings the chosen window to the front first, and fails if Windows won't let it. If the file dialog or Import Preview still turns out to belong to another place's window, it cancels it and fails rather than importing into the wrong place.

  • Leave a few seconds between separate studio_import calls (a bulk import pauses by itself).

It also works without the server: python -m mcp_tools.studio_import <file or folder>... [--window W] [--no-input].

Checking the result

  • rojo_logs reads serve-<port>.log, which rojo_start writes (and starts over each time). When edits stop reaching Studio, this is where Rojo says which file it couldn't read.

  • studio_logs reads the log of the chosen Studio window from %LOCALAPPDATA%\Roblox\logs: the one that window's process has open, or else the one created when it started. With Studio closed it reads the most recently written log instead. It's noisy, so pass a pattern (case-insensitive regex, e.g. error|warn|fail) and/or since_minutes. Times are UTC. After studio_import, look here for what the Import Queue said.

  • studio_screenshot captures Studio with PrintWindow, so it works with Studio behind other windows and leaves the focus alone. If that comes back blank, it brings Studio to the front and copies it off the screen instead. The image is a JPEG at most 1568 px on its long side. It also works without the server: python -m mcp_tools.studio_screenshot [out.jpg] [window].

Licence

MIT (see LICENSE), except src/mcp_tools/autoconnect.patch, which modifies Rojo's plugin source and is under Rojo's licence, the Mozilla Public License 2.0.

Available Tools

6 tools
rojo_build_pluginA

Build the auto-connect Rojo plugin: the installed Rojo CLI's own version (from GitHub) plus a patch that, in Edit mode with Auto Reconnect on, connects every few seconds to a server whose project lists the open place in servePlaceIds. Needs git and rojo on this machine.

Inputs: no named parameters. Returns: result

rojo_install_pluginA

Install the plugin rojo_build_plugin built as Studio's Rojo plugin (the old one is backed up to %LOCALAPPDATA%\Roblox\PluginBackups). With Studio closed it also turns on Rojo's Auto Reconnect and sets Confirmation Behavior to "Unlisted PlaceId", so listed places connect without a click. Studio picks the plugin up when it next opens. The project needs "servePlaceIds": [] for auto-connect to happen.

Inputs: configure_settings. Returns: result

rojo_startA

Serve a Rojo project (rojo serve) in a background process that keeps running after this session ends. project: the project's folder or its .project.json. Does nothing if that project is already being served on the port; fails if another project is.

Inputs: project (required), port. Returns: result

rojo_statusA

Is a Rojo server for this project answering on the port (and did rojo_start start it)?

Inputs: project (required), port. Returns: result

rojo_stopA

Stop the Rojo server rojo_start started on this port (never one it didn't start).

Inputs: port. Returns: result

studio_importA

Import a model file (FBX, OBJ, GLB or GLTF) through Roblox Studio's own 3D Importer, as a person would (File > Import, then Import), leaving the importer's settings as they are. Needs exactly one Studio window, in Edit mode (not playtesting), visible on screen; it takes the mouse and keyboard for about 15 s. Returning means the importer accepted the file: Studio's Import Queue finishes it a few seconds later, so check the model arrived before using it. Leave a few seconds between imports.

Inputs: path (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct operation: server lifecycle (start/status/stop), plugin build, plugin install, and Studio import. The only closely related pair, build_plugin vs. install_plugin, is explicitly separated in the descriptions, and the start/status/stop trio has clear non-overlapping semantics.

    Naming Consistency5/5

    All names use snake_case with a consistent domain prefix and readable operation naming: rojo_start, rojo_status, rojo_stop, rojo_build_plugin, rojo_install_plugin, studio_import. The pattern is predictable, and rojo_status is a conventional command-style exception rather than a real inconsistency.

    Tool Count5/5

    Six tools is a well-scoped set for the apparent Rojo/Studio workflow, with each tool earning its place. Nothing feels padded, and the surface is not so thin that basic lifecycle operations are missing.

    Completeness4/5

    The core lifecycle is covered: start/status/stop the Rojo server, build/install the plugin, and import a model into Studio. Minor gaps exist around plugin status/uninstall, server logs, and common Rojo operations like a one-shot place build, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers