BloxBridge MCP
Enables AI agents to inspect and control a Roblox Studio place: read the Explorer hierarchy and instance properties, read/write Script/LocalScript/ModuleScript sources, search scripts, modify Lighting, insert catalog assets, read the Output console, and execute Luau with safe-mode protections and automatic Undo.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BloxBridge MCP show me my Explorer tree, then add a Script that prints Hello on start"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BloxBridge MCP menghubungkan Roblox Studio ke Gemini Web, ChatGPT, Claude Desktop, Claude Code, Cursor, Antigravity, Codex, dan n8n menggunakan satu server Python ringan (uv) dan satu file plugin Luau (plugin/BloxBridgeMCP.plugin.lua). AI dapat membaca hierarki Explorer, menulis Script/LocalScript/ModuleScript, mengubah properti & Lighting, menyisipkan asset catalog, membaca Output console, dan mengeksekusi Luau dengan perlindungan luau_safe_mode serta Undo Ctrl+Z (ChangeHistoryService).
Quickstart
Prasyarat: Python 3.10+, uv, Roblox Studio, dan cloudflared (hanya jika menghubungkan AI web remote seperti Gemini Web/ChatGPT).
# 1. Masuk ke folder proyek
cd bloxbridge-mcp
# 2. Verifikasi server + bridge round-trip tanpa membuka Roblox Studio
uv run --with "mcp>=1.26.0,<2" bloxbridge_mcp.py --self-test
# Output: BLOXBRIDGE_SELF_TEST_OK tools=15 safe_mode=True patterns=14 bridge_roundtrip=OKSelanjutnya:
Salin
plugin/BloxBridgeMCP.plugin.luake folder Plugins Roblox Studio, aktifkan Allow HTTP Requests, lalu klik tombol BloxBridge MCP di tab Plugins.Jalankan mode HTTP + Tunnel (
start.ps1/start.sh) untuk Gemini Web / ChatGPT / n8n, atau sambungkan langsung lewatstdiountuk Claude / Cursor / Antigravity / Codex.
Related MCP server: Roblox Studio MCP
Instalasi (Windows, macOS, Linux)
cloudflared hanya diperlukan untuk AI web remote (Gemini Web / ChatGPT). Untuk AI lokal (stdio), cukup install uv.
winget install --id astral-sh.uv -e
winget install --id Cloudflare.cloudflared -eSetelahwinget install selesai, tutup PowerShell lalu buka jendela PowerShell baru agar perintah uv dan cloudflared terbaca oleh Windows.
brew install uv
brew install cloudflared# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.local/bin/env"
# Install cloudflared (Debian/Ubuntu)
curl -fsSL https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -o /tmp/cloudflared.deb
sudo dpkg -i /tmp/cloudflared.debUntuk Arch Linux: sudo pacman -S uv cloudflared. (Catatan: Roblox Studio resmi berjalan di Windows dan macOS; di Linux jalankan server MCP ini secara lokal atau arahkan --studio-host ke mesin Studio.)
Pasang Plugin di Roblox Studio
Salin file
plugin/BloxBridgeMCP.plugin.luake folder Plugins lokal Roblox Studio:Windows:
%LOCALAPPDATA%\Roblox\Plugins\macOS:
~/Documents/Roblox/Plugins/(Atau di Roblox Studio: tab Plugins > Plugins Folder untuk membuka folder langsung.)
Buka place Anda di Roblox Studio.
Aktifkan akses HTTP: Home > Game Settings > Security > nyalakan Allow HTTP Requests > Save.
Buka tab Plugins > klik tombol BloxBridge MCP hingga aktif (Output akan menampilkan
[BloxBridge MCP] Connected polling loop to http://127.0.0.1:9886).
Menjalankan Server & Tunnel
Windows (start.ps1)
powershell -ExecutionPolicy Bypass -File start.ps1Gunakan-SecretPath untuk endpoint acak (/mcp-<hex>), -Provider ngrok untuk ngrok, atau -Provider local untuk HTTP lokal (127.0.0.1:9888/mcp) tanpa tunnel.
macOS & Linux (start.sh)
chmod +x start.sh
./start.sh
# Opsi lain: ./start.sh --secret-path | ./start.sh --provider ngrok | ./start.sh --provider localSalin URL https://<random-subdomain>.trycloudflare.com yang tampil di terminal dan biarkan terminal tetap terbuka selama sesi aktif.
Koneksi AI Client
A. Gemini Web (gemini.google.com)
Buka gemini.google.com > Setelan / Konektor > + Kustom (Server MCP).
Masukkan URL tunnel +
/mcpdi ujungnya (tanpa garis miring tambahan):https://contoh-random-kata.trycloudflare.com/mcp(Jika memakai
-SecretPath/--secret-path, gunakan/mcp-xxxxxxxxpersis seperti output terminal.)
B. ChatGPT, n8n, atau Remote MCP Client Lain
Gunakan URL yang sama (https://<domain-tunnel>/mcp) dengan transport Streamable HTTP.
C. Claude Code (CLI 1-Perintah)
claude mcp add bloxbridge -- uv run --with "mcp>=1.26.0,<2" /ABSOLUTE/PATH/TO/bloxbridge-mcp/bloxbridge_mcp.py --transport stdioD. Claude Desktop, Cursor, Antigravity, atau Codex (Lokal stdio)
Tidak butuh tunnel. Tambahkan ke konfigurasi MCP client Anda (ganti path absolut):
{
"mcpServers": {
"bloxbridge": {
"command": "uv",
"args": [
"run",
"--with",
"mcp>=1.26.0,<2",
"D:/Projects/bloxbridge-mcp/bloxbridge_mcp.py",
"--transport",
"stdio"
]
}
}
}Contoh Prompt & Workflow
Skenario | Contoh Prompt ke AI | Tools yang Terlibat |
Inspeksi & Audit Place | "Cek status Studio, tampilkan struktur |
|
Buat Arena & Lighting | "Buat lantai |
|
Authoring Script Aman | "Cek pola networking terbaik, lalu tulis |
|
Debugging Output | "Ambil 30 baris terakhir Output console Studio dan jelaskan penyebab error script yang muncul." |
|
Arsitektur
Karena plugin Luau di Roblox Studio hanya mendukung HTTP outbound (HttpService:RequestAsync) dan tidak dapat membuka server TCP masuk, bloxbridge_mcp.py menjalankan StudioBridge HTTP long-poll di 127.0.0.1:9886 (/poll, /result, /health) pada background thread sekaligus melayani MCP lewat stdio maupun Streamable HTTP /mcp (:9888).
Daftar 15 Tools
Explorer & Scene Inspection
Tool | Fungsi |
| Cek status koneksi plugin Studio, |
| Ambil hierarki Explorer dari |
| Baca properti ( |
| Cari instance berdasarkan substring nama dan/atau |
Scripts & Luau Execution
Tool | Fungsi |
| Baca |
| Buat atau perbarui |
| Cari teks/pola lintas seluruh script di dalam place |
| Jalankan Luau di Studio (dijaga |
Building, Lighting, Assets & Runtime
Tool | Fungsi |
| Buat |
| Batch-update properti ( |
| Hapus instance dengan Undo (memblokir penghapusan top-level services seperti |
| Atur |
| Muat asset catalog/creator berdasarkan |
| Ambil riwayat log Output Studio terbaru dari |
| Cari 14 aturan arsitektur & best practice Luau/Roblox secara lokal offline (tanpa membuka Studio) |
Opsi CLI & Environment Variables
bloxbridge_mcp.py
Flag | Default | Fungsi |
|
| Mode transport MCP ( |
|
| Port HTTP lokal saat |
|
| Endpoint path HTTP MCP |
|
| Gunakan path acak |
|
| Host StudioBridge HTTP long-poll |
|
| Port StudioBridge HTTP long-poll |
|
| Matikan validator |
| none | Rekam seluruh panggilan tool sesi ke file JSON |
|
| Jalankan verifikasi mandiri (tools, safe_mode, patterns, bridge round-trip) |
Environment Variables
Variable | Default | Fungsi |
|
| Override host StudioBridge |
|
| Override port StudioBridge |
|
| Path kustom database pola best-practice Luau/Roblox |
Keamanan, Privasi & Batasan
luau_safe_modeaktif default:vendor/luau_safe_mode.pymemblokirHttpService,DataStoreService,MemoryStoreService,MarketplaceService,TeleportService,getfenv/setfenv, nestedloadstring,PluginManager/ScriptEditorService, danWorkspace:ClearAllChildren()sebelum kode dikirim ke Studio.Undo-Safe: Semua operasi mutasi di plugin memakai
ChangeHistoryService:TryBeginRecording()/FinishRecording()sehingga perubahan AI dapat dibatalkan denganCtrl+Z.0 Telemetry: Tidak mengirim kode, place, atau log ke server eksternal mana pun.
Batasan:
luau_safe_modemenjaga jalurexecute_luaudari prompt injection, bukan OS sandbox penuh di sekitar proses Roblox Studio. Selain itu,Allow HTTP Requestsharus aktif agar plugin dapat terhubung ke127.0.0.1:9886.
Troubleshooting
Masalah | Penyebab & Solusi |
| Pastikan file |
| Aktifkan Home > Game Settings > Security > Allow HTTP Requests, lalu klik Save. |
| Validator |
Gemini Web gagal konek ke URL tunnel | Pastikan URL diawali |
Struktur Repositori
bloxbridge-mcp/
├── plugin/
│ └── BloxBridgeMCP.plugin.lua # Plugin Roblox Studio (HTTP long-poll :9886 + Undo)
├── bloxbridge_mcp.py # Server MCP utama (stdio + Streamable HTTP /mcp, 15 tools)
├── start.ps1 # Launcher Windows (Cloudflare / ngrok / local)
├── start.sh # Launcher macOS & Linux (Cloudflare / ngrok / local)
├── pyproject.toml # Metadata paket & dependensi (mcp>=1.26.0,<2)
├── vendor/
│ └── luau_safe_mode.py # Validator keamanan Luau untuk execute_luau
├── data/
│ └── roblox-patterns.json # 14 pola best-practice Luau & arsitektur Roblox (offline)
├── assets/readme/
│ ├── logo-dark.svg # Logo BloxBridge MCP (GitHub Dark Mode)
│ ├── logo-light.svg # Logo BloxBridge MCP (GitHub Light Mode)
│ ├── hero.svg # Header visual README (pure SVG)
│ └── architecture.svg # Diagram arsitektur 1-port dual-transport (pure SVG)
└── LICENSE # MIT LicenseLisensi
Didistribusikan di bawah lisensi MIT. Lihat LICENSE.
Available Tools
15 toolscreate_instanceC
Create a new Roblox Instance with optional properties (Position, Size, Color, Material, Anchored, etc.).
Inputs: class_name (required), name, properties, parent_path. Returns: result
delete_instanceA
Delete an instance by path (wrapped in Undo recording; blocks deleting top-level Roblox services).
Inputs: path (required). Returns: result
execute_luauB
Execute Luau code inside Roblox Studio. Guarded by luau_safe_mode unless server started with --unsafe.
Inputs: code (required). Returns: result
get_game_treeB
Return Explorer hierarchy starting at root_path (e.g. 'game', 'game.Workspace') up to max_depth.
Inputs: max_depth, root_path, class_filter. Returns: result
get_output_logA
Fetch recent Roblox Studio Output console entries from LogService:GetLogHistory.
Inputs: limit. Returns: result
get_studio_statusA
Check whether the Roblox Studio plugin is connected, plus PlaceName, PlaceId, and bridge URL.
Inputs: no named parameters. Returns: result
grep_scriptsC
Search Luau source text across all scripts under root_path.
Inputs: pattern (required), limit, root_path, case_sensitive. Returns: result
insert_assetB
Insert a Roblox catalog/creator asset by numeric asset_id into parent_path via InsertService:LoadAsset.
Inputs: asset_id (required), parent_path. Returns: result
inspect_instanceB
Inspect properties, attributes, CollectionService tags, and direct children of an instance path.
Inputs: path (required). Returns: result
query_roblox_patternsB
Search offline Roblox & Luau engineering best practices (networking, datastore, performance, architecture, physics, ui, luau, studio).
Inputs: query, topic. Returns: result
read_scriptA
Read the Luau Source of a Script, LocalScript, or ModuleScript at the given instance path.
Inputs: path (required). Returns: result
search_instancesA
Search instances by substring name query and/or exact ClassName under root_path.
Inputs: limit, query, root_path, class_name. Returns: result
set_lightingC
Update Roblox Lighting properties (ClockTime, Brightness, RGB Ambient/OutdoorAmbient, GlobalShadows, FogEnd).
Inputs: ambient, fog_end, brightness, clock_time, +2 more. Returns: result
set_propertiesC
Batch-update properties (Position, Size, Color, Material, Transparency, Anchored, CanCollide) on instances.
Inputs: paths (required), properties (required). Returns: result
write_scriptB
Create or update a Script, LocalScript, or ModuleScript under parent_path (wrapped in Undo recording).
Inputs: name (required), source (required), parent_path (required), script_class. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools target clearly distinct resources and actions (tree/hierarchy vs. targeted inspect vs. search vs. script read/write/grep), and descriptions make the intended use of each fairly clear. Minor overlap exists: write_script creates/updates Script instances that create_instance could also create, and set_lighting is a narrower form of set_properties, but neither is likely to cause serious misselection.
Every tool follows a consistent snake_case verb_noun pattern (inspect_instance, get_game_tree, read_script, write_script, create_instance, delete_instance, insert_asset, etc.). The set_/get_ prefixes are used uniformly, and no camelCase or vague verb-only names appear.
Fifteen tools is well within a reasonable scope for a Roblox Studio bridge, covering inspection, scripting, instance CRUD, lighting, assets, and diagnostics. Each tool maps to a distinct operation with no obvious filler.
The surface covers instance create/read/update/delete, script read/write/grep, code execution, log access, connection status, and asset insertion — a solid lifecycle for the domain. Gaps exist for reparenting/renaming instances, writing attributes or CollectionService tags (which inspect_instance can read but nothing writes), and playtest/undo controls, though execute_luau provides a workaround.
Maintenance
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceConnects Roblox Studio to AI coding editors via the Model Context Protocol, allowing AI agents to understand and interact with live Roblox Studio sessions through scene manipulation, scripting, and optional Roblox Open Cloud API integration.66MIT
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to Roblox Studio, enabling them to interact with instance hierarchy, edit Luau scripts, manage properties, and sync files over a local connection.28 npm2MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to control Roblox Studio by running Luau code, creating and editing instances, reading the scene tree, and managing scripts via an MCP server with a long-polling plugin bridge.MIT
- AlicenseAqualityDmaintenanceAn MCP server that bridges any MCP-capable AI host to Roblox Studio. The AI executes Lua live in Studio, reads output/errors, and iterates.3MIT