Roblox Studio MCP Server
Enables AI tools to read the Roblox Studio game tree, edit scripts, insert models, and run playtests via the Studio MCP interface.
README
RobloxUI CLI
Scaffold a Roblox project and connect it to Roblox Studio in minutes. robloxui init creates a Roblox-TS or Luau/Wally project pre-wired with Rojo, a mise-pinned toolchain, a minimal player spawn, and the Roblox Studio MCP server for AI tools. Marketplace components (robloxui.pencicta.com) can be added later with robloxui add.
Quick start
npx robloxui init
Answer the prompts (project name, flavor, theme), then:
cd my-game
npm run dev # compiles and syncs into Studio
In Roblox Studio: open game.rbxl in the project folder → Rojo plugin → Connect → press Play.
That's it — a playable place with a spawn and an empty client mount, ready for UI.
robloxui init
Scaffold an empty Roblox-TS or Luau/Wally project with a minimal player spawn, pre-wired for RobloxUI components, toolchain, and Studio connection.
robloxui init --name my-game --flavor roblox-ts --yes
robloxui init --name . --flavor luau-wally --yes # scaffold in cwd
robloxui init --name my-game --flavor roblox-ts --yes --theme # include the theme
| Option | Description |
|---|---|
-y, --yes |
Non-interactive (requires --name + --flavor) |
--name <dir> |
Project folder name, or . for current dir |
--flavor <f> |
roblox-ts or luau-wally |
--skip-install |
Skip dependency install / theme setup |
--no-bootstrap |
Do not install missing mise automatically |
--theme |
Include the RobloxUI theme in the scaffold |
--no-theme |
Scaffold without the theme |
Creates: Rojo config, mise.toml toolchain pins, the standard DataModel services (Lighting, ServerStorage, SoundService, StarterGui, StarterPack, StarterCharacterScripts), a minimal player spawn, empty client mount, src/shared + src/server folders, and a game.rbxl place file. The RobloxUI theme is opt-in: pass --theme (or answer the prompt) to also wire the canonical robloxui/theme tokens. Init bootstraps mise with the official installer when needed.
Existing projects are inspected without replacing custom Rojo mappings. Non-interactive mode refuses ambiguous flavor or target input.
Connect to Roblox Studio
One-time setup
- Run
npx robloxui init— mise and pinned tools are bootstrapped automatically - Install the Rojo Studio plugin (Roblox Studio → Plugins → search "Rojo")
Roblox-TS workflow
Run one command in your project:
npm run dev # compiles and syncs into Studio
| File | Role |
|---|---|
rojo.json |
Maps out/client → StarterPlayerScripts, npm packages → ReplicatedStorage |
src/client/ |
Your TypeScript source |
out/client/ |
Compiled Luau (created by npm run watch) |
In Studio: open game.rbxl → Rojo plugin → Connect → press Play.
Luau / Wally workflow
npm run dev # installs/syncs the Wally project into Studio
| File | Role |
|---|---|
default.project.json |
Rojo project file for Wally layouts |
wally.toml |
Project metadata for Wally (theme ships bundled, no dependency) |
Packages/RuiTheme/ |
Vendored theme (created by init / robloxui add) |
src/client/init.client.luau |
Client bootstrap |
For your own (non-RobloxUI) Wally packages, add them to wally.toml and run
wally install — the RobloxUI theme itself ships bundled and needs no dependency.
Studio MCP (AI tools)
Init can wire the Roblox Studio MCP server into your AI tool (opencode.json,
.mcp.json, .cursor/mcp.json, or .vscode/mcp.json). Enable it once in Studio:
Assistant → ⋯ → Manage MCP Servers → Enable Studio as MCP server — then your
agent can read the game tree, edit scripts, insert models, and run playtests.
Prerequisites
- Node.js ≥ 20.12 (required by the CLI test/build toolchain)
- mise is bootstrapped with the official installer when it is not on PATH
- Rojo CLI + Rojo Studio plugin
- Wally — Luau projects only
When bootstrap is disabled, run mise install in the project to install the pinned tools.
Everything else
The sections below cover the marketplace workflow — installing components, authentication, browsing the catalog, and troubleshooting. Skip them until you need more than the scaffold.
Authentication
Run robloxui login once. Two flows:
robloxui login # browser device flow (recommended)
robloxui login --token <key> # manual API key (CI / headless)
The browser flow prints a short code — open the URL, approve, done. Your token is saved to ~/.config/robloxui/config.json (Linux/macOS) or %APPDATA%\robloxui\config.json (Windows).
CI / headless machines: generate a key at Dashboard → Developer, then paste it.
robloxui whoami # check who you're logged in as
robloxui logout # remove saved token
Limits — Free users get 2 downloads/day. Pro subscribers get unlimited everything. See https://robloxui.pencipta.com/pricing.
robloxui add <slug...>
Install one or more components.
robloxui add primary-button
robloxui add button card dialog --yes # non-interactive (CI)
robloxui add button --theme # also install the theme package
| Option | Description |
|---|---|
-y, --yes |
Accept all defaults |
--force |
Overwrite existing files |
--path <dir> |
Override install directory |
--theme |
Also install the RobloxUI theme package |
--no-theme |
Skip the theme package |
The CLI will:
- Preflight slug, authentication, target, flavor, package manager, and tools before network or writes
- Detect your project type (
rojo.json→ Roblox-TS,wally.toml→ Luau) - Prompt for install path (default:
src/client/ui/components/) and whether to install the theme - Fetch the component source + metadata from the API
- Stage and validate all files; conflicts stop by default (
--forceis explicit) - Write source and, when requested, install the theme transactionally
robloxui list / robloxui search
robloxui list # browse all components
robloxui search dialog # search by name/description
robloxui list --framework tsx # filter by framework
robloxui list --category buttons --limit 20
| Option | Description |
|---|---|
--framework <f> |
tsx, luau, or both |
--category <name> |
Filter by category |
--limit <n> |
Max results (default 30, max 100) |
robloxui info <slug>
robloxui info primary-button
Prints: framework, category, dependencies, theme tokens, usage example, and the exact robloxui add command.
Project detection
| Detected | Theme install method (only with --theme or prompt) |
|---|---|
rojo.json |
npm install robloxui (ships the robloxui/theme subpath) |
wally.toml |
Vendors bundled RuiTheme into Packages/ |
| Neither | Manual project type selection |
The theme is never installed automatically: non-interactive runs skip it, interactive runs ask. Components run standalone because they embed their own design tokens.
Troubleshooting
Every CLI failure prints a recovery hint (retry + manual command + preserved paths). Common fixes:
| Problem | Fix |
|---|---|
login fails with "invalid_token" |
Token expired or revoked. Run robloxui login again |
add says "daily limit reached" |
Free tier: 2/day. Upgrade to Pro: https://robloxui.pencipta.com/pricing |
add says "Pro component" |
Requires a Pro subscription. Run robloxui info <slug> to check |
| Pro component returns no source | Sign in first (robloxui login) — Pro access is tied to your account |
| Rojo won't connect | Ensure npm run dev is running in the project root |
| Nothing in Play mode (Roblox-TS) | Keep npm run dev running so out/client/ is compiled and synced |
RuiTheme not found (Luau) |
You opted into the theme but it is missing: re-run npx robloxui add <slug> --theme (or npm install robloxui for Roblox-TS) |
| Want the canonical theme later | npm install robloxui (Roblox-TS) or re-run add with --theme (Luau vendors Packages/RuiTheme/) |
| UI doesn't appear | Press Play, not Edit — scripts run under StarterPlayerScripts |
Links
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。