Skip to main content
Glama
Roblox Studio MCP Server

Roblox Studio MCP Server

by boshyxd

Roblox Studio MCP 服务器

将 Claude 和 Gemini 等 AI 助手连接到 Roblox Studio

NPM Version


这是什么?

一个 MCP 服务器,让 AI 可以本地且安全地探索你的游戏结构、读取/编辑脚本并执行批量更改。

Related MCP server: XenozMCP

设置

  1. 将 Studio 插件 安装到你的插件文件夹中

  2. 在“体验设置” > “安全性”中启用 允许 HTTP 请求 (Allow HTTP Requests)

  3. 连接你的 AI:

Claude Code:

claude mcp add robloxstudio -- npx -y robloxstudio-mcp@latest

Codex CLI:

codex mcp add robloxstudio -- npx -y robloxstudio-mcp@latest

Gemini CLI:

gemini mcp add robloxstudio npx --trust -- -y robloxstudio-mcp@latest

准备就绪后,插件会显示“已连接 (Connected)”。

{
  "mcpServers": {
    "robloxstudio-mcp": {
      "command": "npx",
      "args": ["-y", "robloxstudio-mcp@latest"]
    }
  }
}

Windows 用户: 如果遇到问题,请使用 cmd:

{
  "mcpServers": {
    "robloxstudio-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "robloxstudio-mcp@latest"]
    }
  }
}

你能做什么?

询问诸如:“这个游戏的结构是什么?”、“查找带有已弃用 API 的脚本”、“在网格中创建 50 个测试 NPC”、“优化这段移动代码” 之类的问题。

robloxstudio-mcp-inspector

NPM Version

一个更轻量级的只读版本,仅公开检查工具。没有写入、没有脚本编辑、没有对象创建/删除。非常适合安全地浏览游戏结构、审查脚本和进行调试,而无需担心意外更改的风险。

31 个只读工具: get_file_tree, search_files, get_place_info, get_services, search_objects, get_instance_properties, get_instance_children, search_by_property, get_class_info, get_project_structure, mass_get_property, get_script_source, grep_scripts, get_attributes, get_tags, get_tagged, get_selection, get_playtest_output, get_connected_instances, get_descendants, compare_instances, get_output_log, export_build, list_library, search_materials, get_build, search_assets, get_asset_details, get_asset_thumbnail, preview_asset, capture_screenshot

设置 - 使用相同的插件,只需更换包名称:

Claude:

claude mcp add robloxstudio-inspector -- npx -y robloxstudio-mcp-inspector@latest

Codex:

codex mcp add robloxstudio-inspector -- npx -y robloxstudio-mcp-inspector@latest

Gemini:

gemini mcp add robloxstudio-inspector npx --trust -- -y robloxstudio-mcp-inspector@latest
{
  "mcpServers": {
    "robloxstudio-mcp-inspector": {
      "command": "npx",
      "args": ["-y", "robloxstudio-mcp-inspector@latest"]
    }
  }
}

Windows 用户: 如果遇到问题,请使用 cmd:

{
  "mcpServers": {
    "robloxstudio-mcp-inspector": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "robloxstudio-mcp-inspector@latest"]
    }
  }
}

报告问题 | DevForum | MIT 许可

Available Tools

24 tools
create_objectA

Create a new Roblox object instance (basic, without properties)

Inputs: className (required), parent (required), name.

create_object_with_propertiesB

Create a new Roblox object instance with initial properties

Inputs: className (required), parent (required), name, properties.

delete_objectB

Delete a Roblox object instance

Inputs: instancePath (required).

get_class_infoB

Get available properties/methods for Roblox classes

Inputs: className (required).

get_file_treeC

Get complete hierarchy of the Roblox Studio project with script types, models, and folders

Inputs: path.

get_instance_childrenC

Get child objects and their types

Inputs: instancePath (required).

get_instance_propertiesC

Get all properties of a specific instance

Inputs: instancePath (required).

get_place_infoA

Get place ID, name, and game settings

Inputs: no named parameters.

get_project_structureB

Get complete game hierarchy. IMPORTANT: Use maxDepth parameter (default: 3) to explore deeper levels of the hierarchy. Set higher values like 5-10 for comprehensive exploration

Inputs: maxDepth, path, scriptsOnly.

get_script_sourceC

Get the source code of a script object (LocalScript, Script, or ModuleScript)

Inputs: instancePath (required).

get_servicesC

Get available Roblox services and their children

Inputs: serviceName.

mass_create_objectsA

Create multiple objects at once (basic, without properties)

Inputs: objects (required).

mass_create_objects_with_propertiesB

Create multiple objects at once with initial properties

Inputs: objects (required).

mass_duplicateC

Perform multiple smart duplications at once

Inputs: duplications (required).

mass_get_propertyA

Get the same property from multiple instances at once

Inputs: paths (required), propertyName (required).

mass_set_propertyB

Set the same property on multiple instances at once

Inputs: paths (required), propertyName (required), propertyValue (required).

search_by_propertyC

Find objects with specific property values

Inputs: propertyName (required), propertyValue (required).

search_filesC

Find files by name, type, or content patterns

Inputs: query (required), searchType.

search_objectsB

Find instances by name, class, or properties

Inputs: query (required), propertyName, searchType.

set_calculated_propertyC

Set properties using mathematical formulas and variables

Inputs: formula (required), paths (required), propertyName (required), variables.

set_propertyC

Set a property on any Roblox instance

Inputs: instancePath (required), propertyName (required), propertyValue (required).

set_relative_propertyB

Modify properties relative to their current values

Inputs: operation (required), paths (required), propertyName (required), value (required), +1 more.

set_script_sourceA

Safely set the source code of a script object without using loadstring (Studio only)

Inputs: instancePath (required), source (required).

smart_duplicateC

Smart duplication with automatic naming, positioning, and property variations

Inputs: count (required), instancePath (required), options.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 24 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between 'create_object' and 'create_object_with_properties', and between 'mass_create_objects' and 'mass_create_objects_with_properties', which could cause confusion. However, descriptions clarify the differences, and other tools like 'search_objects' vs 'search_by_property' are well-differentiated.

    Naming Consistency5/5

    Tool names follow a consistent snake_case pattern with clear verb_noun structures (e.g., 'create_object', 'get_instance_properties', 'set_script_source'). There are no deviations in naming conventions, making the set predictable and easy to parse.

    Tool Count3/5

    With 24 tools, the count is on the higher side for a single domain, which may feel heavy and could overwhelm agents. While the tools cover many aspects of Roblox Studio, some could potentially be consolidated (e.g., the multiple 'mass_' tools) to reduce complexity.

    Completeness5/5

    The tool set provides comprehensive coverage for Roblox Studio operations, including CRUD for objects (create, delete, get, set), property management, scripting, searching, and project hierarchy exploration. No obvious gaps are present; agents can perform full lifecycle management and complex workflows.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to interact with Roblox Studio via a token-efficient MCP server, live two-way script sync, and zero-friction plugin setup.
      -