mcp-robotstudio
v0.2.0ABB Robot Web Services client (RWS 1.0 IRC5/RW6 Digest, RWS 2.0 OmniCore/RW7-8 Basic over TLS) and stdio MCP server for ABB RobotStudio
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_controller_state Get Controller State
Reads controller system info, motor state, operating mode, RAPID execution state and tasks (dialect: auto).
list_modules List RAPID Modules
Lists loaded RAPID modules for a task (RWS 1.0: /rw/rapid/modules?task=..., RWS 2.0: /rw/rapid/tasks/<t>/modules).
| Parameter | Type | Description |
|---|---|---|
task | string | RAPID task name (default: client task, e.g. T_ROB1) |
read_rapid_symbol Read RAPID Symbol
Reads a RAPID variable/constant/persistent symbol value.
| Parameter | Type | Description |
|---|---|---|
module * | string | RAPID module name (e.g. BASE) |
symbol * | string | RAPID symbol name (e.g. tool0) |
task | string | RAPID task name (default: T_ROB1) |
list_signals List I/O Signals
Lists controller I/O signals via /rw/iosystem/signals with optional substring filter and item limit.
| Parameter | Type | Description |
|---|---|---|
filter | string | Case-insensitive substring filter on signal name |
limit | integer | Maximum signals to return (default: 100) |
read_signal Read I/O Signal
Reads a single I/O signal state and value from /rw/iosystem/signals/<name>.
| Parameter | Type | Description |
|---|---|---|
name * | string | I/O signal name (e.g. DRV1TESTE2) |
get_event_log Get Controller Event Log
Reads recent controller event log entries from /rw/elog/<domain>.
| Parameter | Type | Description |
|---|---|---|
domain | integer | Event log domain (default: 0 = Common) |
limit | integer | Number of entries (default: 10) |
get_joints Get Robot Joints
Reads current joint angles (rax_1..rax_6 and external axes) from RWS motionsystem.
| Parameter | Type | Description |
|---|---|---|
mechunit | string | Mechanical unit name (default: ROB_1) |
get_tcp Get Robot TCP
Reads current Cartesian TCP robtarget (x, y, z, quaternion, configuration) from RWS motionsystem.
| Parameter | Type | Description |
|---|---|---|
mechunit | string | Mechanical unit name (default: ROB_1) |
tool | string | Tool name (default: tool0) |
wobj | string | Work object name (default: wobj0) |
get_program_pointer Get Program Pointer
Reads /rw/rapid/tasks/<task>/pcp: module, routine and line/column of the program pointer (PP) and motion pointer (MP). With PP not set RW6 returns error -1073442809.
| Parameter | Type | Description |
|---|---|---|
task | string |
get_speed_ratio Get Speed Ratio
Reads /rw/panel/speedratio (0..100 %) and the cycle-time penalty factor 100/ratio.
get_user_privileges Get UAS Privileges
Reads the logged-in RWS user (/users), remote mastership privilege (/users/rmmp) and UAS grants (/users/grants). Missing endpoints are reported, never guessed.
read_module_source Read Live Module Source
Extracts the module text from controller RAM: action=save to TEMP (never HOME), downloads it via fileservice and deletes the temporary file.
| Parameter | Type | Description |
|---|---|---|
module * | string | |
task | string |
diff_module_with_golden Diff Live Module vs Golden Master
Line-by-line diff (LCS) between the live module in controller RAM and a Golden Master .mod (path or content).
| Parameter | Type | Description |
|---|---|---|
module * | string | |
goldenContent | string | |
goldenPath | string | Local path to the Golden Master .mod |
ignoreWhitespace | boolean | |
task | string |
validate_rapid_offline Validate RAPID Offline
Offline RAPID checks: identifiers, unclosed MODULE/PROC/TRAP/IF/FOR/WHILE, non-unit quaternions, StorePath without StopMove, CONNECT without IDelete and (optional) IRB 120 reach of robtargets and Offs.
| Parameter | Type | Description |
|---|---|---|
checkReach | boolean | |
content | string | |
path | string | |
tool | string | tooldata or pose literal, e.g. [TRUE,[[31.8,0,229.6],[0.9455,0,0.3256,0]],...] |
capture_forensic_blackbox Capture Forensic Black Box
Atomic snapshot at a stop: PCP + code around the PP line + I/O + last elog events + TCP + joints + speed ratio, cross-checked against known incidents. Returns JSON and Markdown.
| Parameter | Type | Description |
|---|---|---|
contextLines | integer | |
signalFilter | string | |
task | string |
probe_reach_kinematics Probe Reach (offline IK)
Evaluates reachability of a target and its Offs without moving the robot (offline IK of the IRB 120, same purpose as CalcJointT). Optionally sweeps tool tilt around X/Y to find a reachable orientation.
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
z * | number | |
euler | array | Euler ZYX [z,y,x] in deg (OrientZYX order) |
offsets | array | Offs to test, e.g. [[0,0,30],[0,0,-15]] |
q | array | Quaternion [q1,q2,q3,q4] (RAPID order w,x,y,z) |
tiltSweepDeg | array | Tilt angles to try around X and Y, e.g. [0,10,20,30] |
tool | string |
audit_rspag_package Audit .rspag Package
Audits a Pack&Go: system.guid/template.guid per controller (anti 0x800706BA), backup taken from a folder copy, personal data (C:\Users\<name>, e-mail, blocklist), PNG metadata chunks and CRC.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
blocklist | array |