
通过"模型背景协议"(MCP)连接Roblox Studio与AI编码编辑器,在您Roblox Studio的环境下实现AI辅助游戏开发.
概览
通过"模型背景协议"(MCP)连接Roblox Studio与AI编码编辑器(如Cursor,Windsurf,Claude等),在您Roblox Studio环境下实现AI辅助游戏开发. 该项目由两个主要部分组成: 1. 本地运行的 FastAPI 服务器。 它暴露出Roblox Studio动作作为工具凌驾于MCP之上(使用Server-Sent Events - SSE). 如果配置的话,它可以选择与Roblox Open Cloud API交互. 2. Roblox Studio插件(roblox mcp plugin/src/Plugin.server.lua)在工作室内部运行. 它为本地的 Python 服务器对命令进行投票,在 Studio 语境中执行它们(管理实例,读取属性,执行 Luau),并将结果和 Studio 日志发送回服务器. 这使得一个通过MCP连接的AI代理能够理解并和您直播的Roblox Studio会话互动. * *在工作室场景中直接创建,删除,克隆,移动,规模,和设置对象(部分,模型,脚本等)的属性(包括主部分).
概述(AI 翻译)
通过"模型背景协议"(MCP)连接Roblox Studio与AI编码编辑器(如Cursor,Windsurf,Claude等),在您Roblox Studio环境下实现AI辅助游戏开发.
□ 概览
该项目由两个主要部分组成:
- **Python MCP 服务器:**一个在当地运行的FastAPI服务器. 它暴露出Roblox Studio动作作为工具凌驾于MCP之上(使用Server-Sent Events - SSE). 如果配置的话,它可以选择与Roblox Open Cloud API交互.
- **Lua Companion插件:**一个在工作室内部运行的Roblox工作室插件([T0]). 它为本地的 Python 服务器对命令进行投票,在 Studio 语境中执行它们(管理实例,读取属性,执行 Luau),并将结果和 Studio 日志发送回服务器.
这使得一个通过MCP连接的AI代理能够理解并和您直播的Roblox Studio会话互动.
□ 特性
- Live Studio 互动:
- 场景操纵:** 在工作室场景中直接创建,删除,复制,移动,缩放和设置对象的属性(包括主部分).
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Vibe Blocks MCP for Roblox Studio
Connects Roblox Studio to AI coding editors (like Cursor, Windsurf, Claude, etc) via the Model Context Protocol (MCP), enabling AI-assisted game development within your Roblox Studio environment.
Overview
This project consists of two main parts:
- Python MCP Server: A FastAPI server that runs locally. It exposes Roblox Studio actions as tools over MCP (using Server-Sent Events - SSE). It can optionally interact with Roblox Open Cloud APIs if configured.
- Lua Companion Plugin: A Roblox Studio plugin (
roblox_mcp_plugin/src/Plugin.server.lua) that runs inside Studio. It polls the local Python server for commands, executes them in the Studio context (manipulating instances, reading properties, executing Luau), and sends results and Studio logs back to the server.
This allows an AI agent connected via MCP to understand and interact with your live Roblox Studio session.
Features
- Live Studio Interaction:
- Scene Manipulation: Create, delete, clone, move, scale, and set properties (including PrimaryPart) of objects (Parts, Models, Scripts, etc.) directly in the Studio scene.
- Scene Inspection: Get object properties, list children, find instances by class or name within Studio.
- Scripting: Create, edit, and delete Scripts/LocalScripts. Execute arbitrary Luau code directly within the Studio environment and capture output/errors.
- Environment: Set properties on Lighting or Terrain services.
- Animation: Play animations on Humanoids/AnimationControllers.
- NPCs: Spawn NPCs by cloning existing templates or inserting from Asset IDs.
- Modify Children: Apply property changes to multiple children of an object based on filters.
- Studio Logs: Retrieve recent logs from the Studio Output window.
- Roblox Open Cloud Integration (Optional - Requires API Key):
- Luau Execution (Cloud): Run Luau code in a separate cloud environment (useful for tasks not requiring live Studio access).
- DataStores: List stores, get, set, and delete key-value entries in standard DataStores.
- Assets: Upload new assets (Models, Images, Audio) from local files.
- Publishing: Publish the currently saved or published version of a place.
- (Planned): Get asset details, list user assets.
Setup
1. Prerequisites:
- Python >= 3.10
uvpackage manager (Install uv). This is highly recommended for faster dependency management.- Roblox Studio
- (Optional) A Roblox API Key for Open Cloud features. Get one from Roblox Creator Dashboard > Credentials. You’ll need permissions for the APIs you intend to use (DataStore, Asset Upload, Publishing, Luau Execution etc.).
- (Optional) Your Roblox Universe ID and the target Place ID (needed for Open Cloud features).
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →