lainbridge
v1.0.1
Published
Claude Code bridge for Roblox Studio — read, edit, and build inside Studio through 30+ MCP tools
Downloads
175
Maintainers
Readme
lainbridge
lets claude code build stuff directly in roblox studio. it reads your game, edits scripts, creates instances and UI, runs lua, takes screenshots — 30+ tools. everything is undoable with ctrl+z.
you need
- node.js (click the big green LTS button, install it)
- roblox studio
- claude code
install
- install node.js if you don't have it (click the big green LTS button)
- download LainbridgeSetup.exe and run it
- in your project folder, add the tools to claude code:
claude mcp add lainbridge -- npx -y lainbridge@latest
how to use
- double-click "Lainbridge" on your desktop (starts the bridge — leave it open)
- open studio, go to Home > Game Settings > Security, turn on "Allow HTTP Requests"
- click Connect in the Lainbridge panel in studio
- open claude code — the tools are ready
every time after that
- double-click "Lainbridge" on your desktop
- open studio, click Connect in the lainbridge panel
- open claude code — it just works
what can it do
just tell claude what you want. some examples:
- "add a sprint system to my game"
- "fix the gun not doing damage"
- "build a shop UI with 3 tabs"
- "make the NPC walk between waypoints"
- "show me a screenshot of the game"
- "find all scripts that use RemoteEvents"
claude reads your game state, understands how your scripts connect, makes the changes, and verifies they work.
tools
reading — get_context, read_script, get_instance, get_status, get_errors, get_console
analysis — analyze_system, get_script_deps, search_scripts
creating — create_script, create_instance, create_ui, batch_create
editing — edit_surgical, edit_lines, edit_regex, edit_script, set_properties
execution — run_lua, run_in_playtest, execute_command
visual — screenshot, capture_viewport
troubleshooting
"commands aren't working" — make sure the bridge window is open and studio shows "Connected" in the lainbridge panel.
"Allow HTTP Requests" — you need to enable this in studio every time you open a new place. Home > Game Settings > Security.
"tools not showing up in claude code" — make sure you ran claude mcp add lainbridge -- npx -y lainbridge@latest in your project folder.
"node is not recognized" — install node.js from https://nodejs.org and restart your terminal.
how it works
claude code <-> mcp server <-> bridge <-> studio plugin <-> roblox studiothe bridge keeps a copy of your game state in memory so reads are instant. edits go through the plugin which wraps everything in studio's undo system.
multiple studio instances
run bridges on different ports:
lainbridge start 9091
lainbridge start 9092use the switch_port tool in claude code to swap between them.
license
MIT
