ProjectsIndustrial automation

An MCP server for ABB controllers and RobotStudio

A server that lets an AI coding agent read, edit, build and run RAPID programs on ABB robot controllers and drive RobotStudio simulations, with explicit guards before anything touches a real robot.

CompletedJun to Jul 2026Page updated

Project facts
Controllers
ABB IRC5 and OmniCore, real and virtual
Tools exposed
139 in version 1.2.0
Channels
PC SDK, Robot Web Services, and an add-in running inside RobotStudio 2026
Safety
Anything that changes state on a real controller needs an explicit flag on that call
Built with
C#, .NET, ABB PC SDK, Robot Web Services, RobotStudio SDK, Model Context Protocol
When
Jun to Jul 2026
Status
Completed
Page updated
On this page

What it is

The Model Context Protocol lets an AI coding agent call tools. This server gives such an agent the tools a robot programmer uses with ABB equipment: find a controller, log on, read the RAPID program that is loaded, edit a module, build it and read the errors, run and stop execution, read and write signals, and take a backup. A second set of tools drives RobotStudio: stations, simulation control, collision checks, targets and paths, and screenshots.

Three ways in

No single ABB interface covers all of that, so the server combines three.

Channel Used for
PC SDK Discovery and logon, controller state, RAPID execution and data, I/O, the event log, files, backup and restore
Robot Web Services Reading and writing live module text, build feedback, and raw access to the REST interface
An add-in inside RobotStudio, reached over a local named pipe Stations, virtual controllers, simulation, collision, targets and paths, geometry

The three run on different .NET runtimes. The server and the PC SDK code target .NET Framework 4.8, while RobotStudio 2026 hosts add-ins on .NET 10. So the add-in runs inside RobotStudio as its own side of the bridge, and the two sides share one protocol contract.

Guards

  • Virtual controllers allow everything. Real controllers refuse any state-changing call (starting execution, writing signals or data, restart, restore, moving the program pointer) unless that call carries an explicit allow_real flag.
  • Mastership is taken for one operation and released afterwards, unless it is held on purpose.
  • Several RobotStudio windows. Each hosts its own bridge. With more than one open, the server lists them and refuses to guess which one a call is meant for, so an edit cannot land in the wrong station.
  • A long operation cannot hang the agent. Station operations are serialised per session, a second one gets a clear “busy” answer, and the status call stays responsive while RobotStudio’s main thread is blocked.

Engineering

  • Built in three and a half weeks: 21 commits from 10 June to 4 July 2026.
  • Unit tests, plus a verification script that exercises the tools against a live virtual controller.
  • A review of version 1.1.0 found 15 defects, which were fixed before version 1.2.0.

Limits

These come from ABB’s interfaces and are documented with the tools:

  • The PC SDK has no breakpoint interface. Stepping uses ABB’s execution modes instead.
  • Module text goes through Robot Web Services, because the PC SDK cannot read it.
  • Creating a new virtual controller system from a robot model is internal to RobotStudio. The server works from an existing system or a packed station.