OPC UA to Dashboard in 16 Minutes: Claude Builds a KEPServerEX Application in MIStudio, Unedited

This is a 16-minute director's cut, recorded in one take with no editing, of Claude (Anthropic), running in Claude Desktop, driving ErgoTech MIStudio through MIStudio's built-in MCP server. Claude starts from a MIStudio project with no applications in it and a KEPServerEX server it knows nothing about, and builds a live dashboard with database logging in about 10 minutes. The result is an ordinary MIStudio project of standard components, not generated code.

Video, 16:03.

What the video shows

Kepware is running the SimOPC project. Beforehand, the engineer opens a MIStudio project, adds an HSQLDB database driver and a target (no applications yet), and makes it live to reach the OPC data. Then:

  1. The prompt. The engineer tells Claude where the server is and asks it to build an application and decide what data is worth showing on the screen. Everything Claude does goes through the MCP server, with no side channel.
  2. Connects and observes. Claude creates an application, adds an OPC device server for the KEPServerEX connection, and watches the live tags for 30 seconds to work out what the data is: sine waves, ramps, random signals, a message spelled out one word at a time, and tags that never move.
  3. Recommends. It reports 28 read-only live tags in five groups, drops the ones that never move, and recommends what to trend on screen and what to save to the database. The engineer accepts and asks for a screen that shows the data, stores it to the database and reads it back into a historical display.
  4. Builds the application. Claude adds the OPC servers, connects them to the database with a trigger that saves every second, and creates the larger screen that was asked for. Along the way it makes design decisions as an engineer might, replacing an XY plot that only showed one trend with a different trend chart.
  5. Reviews the result. Claude reports the application complete and suggests hovering over the charts to see series names, since it did not add legends.
  6. The engineer takes over. The engineer shows how the project can be changed by hand: changing the background for a dark window, moving components, or adding another OPC UA client, browsing the server for tags Claude left out and wiring them to the database or screen in the logic diagram, the same way Claude did.

The finished application

  • Live trends: Sine1 to Sine5, and RandomXaxis/Yaxis.
  • Gauges: four, for Ramp_Float, RampXL1, RampXL2 and Random1, each scaled to its measured range.
  • Message panels: User1 and User4 in large text, and User2 blinking.
  • Device Health: four LEDs wired to Kepware's own device-error tags. The engineer did not suggest this; Claude added it.
  • Logging and read-back: the tags are logged once a second to HSQLDB, and the "Read Back from Database" chart shows Ramp3's sawtooth coming back out of the table.

In total: 22 OPC UA tags and 49 logic nodes on one 1920×1080 page, with no scripts.

How the AI agent works in MIStudio

There are no scripts and no generated code. Every element on the screen is a component from the MIStudio design editor's palette that the engineer could have placed by hand, wired in the logic editor the way an engineer would. The project can be opened, changed, extended and deployed like any other MIStudio project, and the engineer owns the result.

Chapters

  1. 0:00 Starting point: SimOPC and a new MIStudio project
  2. 0:44 The prompt and the MCP server
  3. 1:50 Watching the tags for 30 seconds
  4. 2:48 Claude's recommendations
  5. 3:14 Building the screen and database logging
  6. 8:49 Design decisions along the way
  7. 13:19 The finished application
  8. 13:53 Editing it as an engineer

Frequently asked questions

What is MIStudio?

MIStudio is an industrial automation, SCADA/HMI, DataOps and application engineering platform that enables engineers and LLMs to build, inspect and maintain industrial applications using proven software components.

How does Claude control MIStudio?

Claude runs in Claude Desktop and drives MIStudio through MIStudio's built-in MCP (Model Context Protocol) server. All of its changes go through that server, with no side channel.

How long did the build take?

About 10 minutes, shown in one unedited take.

Where is the data logged?

To an HSQLDB database, once a second. A chart on the page reads the logged data back to confirm it was stored.

KEPServerEX and Kepware are trademarks of PTC Inc. Claude is a trademark of Anthropic. MIStudio is a trademark of ErgoTech.

Transcript

Show the transcript (from YouTube's captions, lightly corrected)

0:10 I want to demonstrate how easily and quickly we can build an application against an OPC server today. I've chosen the Kepware SimOPC project because I feel that's fairly widely known. And so far all I've done is I've built an MIStudio application. I've opened an MIStudio application. I've put in a database driver here. I'm going to use the HSQLDB. Um, added a target, but there are no applications. I'm going to make this live so that I can get access to my OPC data.

0:44 Then I'm simply going to ask Claude what it knows about this OPC server that I have. So here I have a, a prompt. Uh, I want to build an application, the, where the server is, and I want it to go and decide what data is worth showing on the screen from that server. So this is interacting with the application here through an MCP server, and we'll see it building an application. We'll see it creating an application here shortly.

1:21 And into that application it will add an OPC device server, something that will let us get access to the OPC server. And so here we see it's got the access being, it's got the location. And now it's going to go through and it's going to decide what's in that server that we should be looking at.

1:50 I told it to look for 30 seconds for data, so that it's going to have a reading of what data is in there. And so we're going to have to wait 30 seconds for that. And this is all coming through this server here. This is now, there's no side channel. It's building, it's building our application here in our MIStudio. And the benefit of this approach is I'm free to edit this if I don't like where this is located. I can change configurations. I can do anything I like within this application. Uh, but at the same time I can interact with the, I can allow the, the LLM, the MCP server to interact with that application.

2:48 So what it's done for me here is it's like, it says I've got 28 live tags in five groups that are read only. And so if you know the SimOPC project this should look familiar to you. Um, it's discovered that some things never move, so they're not really worth looking at. And, um, you know, what might be interesting for us on the screen, it's already decided. It's decided that they're, we, we should trend some of these things and we should save some things to database.

3:14 And so I can now simply say, hey, yeah, I accept your recommendations. And I would like you to build a, a screen that shows those, those information, stores it to the database and also read it back from the database, show me an historical screen. And so now we can watch together as Claude in the Claude Desktop window here builds that screen through the MCP server. I'm going to resize the view window so that when it starts adding information to the view we'll be able to see what's in that window.

4:26 This does take a few minutes to build, and so in the final video this, this step will be running at high speed, but let's just watch it for a minute and, and see the initial steps here. We can already see that it's picked up the sine wave from the Sine1 from the OPC server and is running that.

5:18 Let me see if I can get these to cleanly fit on the same screen, because there's a lot of, a lot of servers being added here. It's added the servers, it's connecting them to the database. So that's ready to save them. And it's connected to trigger, which says it's going to save every second.

6:28 We did say we wanted a bigger screen, and sure enough it's created a bigger screen for us here.

8:49 You saw there it was making decisions just as an engineer might to put something on the screen and said, "No, that doesn't really look right, so I'm going to use a different component instead." The elements on the screen are all components that are available within the MIStudio design editor, so I could just as easily be pulling these from the palette and putting them on the screen. It's just that Claude is doing that instead of me.

11:34 Mhm.

11:56 If you're reading the messages from Claude Code, it's saying that it's, it didn't really like the look of that XY plot. There was something wrong with it. It was only plotting one trend. And it's replaced it with a different type of trend chart so that we can see both trends coming through.

13:19 And so it says it's complete. And it makes some suggestions for things I might want to look at. One of them is I should be able to hover over some of the sine waves and get names from these, because it didn't put legends on them. And that's true of any of the charts. I can hover over any of them. Um, this is the historical chart that we asked it to produce. This is the random axis chart that it decided to produce, and a sine wave chart. And then there are just some scale values, some single point values. And some of the string areas that come from the, uh, the server.

13:53 The most significant thing is, we've all seen automated creation of applications before, but, but the most important thing is this was built in the way that an engineer would build it. And this is now ready for me to go and do more things. If I don't like this, this sine wave, I can go and, if I don't like this, this chart, I can go and change it. Um, if I want to, for instance, come in here and say, "Okay, well, I don't like the choice it made." Um, I have people who have trouble seeing and I want, um, a dark window, then I can change the, the background in here. I can do anything I feel like.

14:31 I can make modifications. I can move these components around. I can add additional components to the, the logic window that I could then hook up to, um, servers in the, the client window, and I have all these, these, all these capabilities, and I still, I still have them for me. So, I can add another OPC UA client and I can say, "Okay, I want to browse my server to," oops. I have to tell it which server I'm browsing. I want to browse my server to get a tag for that.

15:14 And I could start adding some of these tags. It suggested these don't move, so they're not worth adding, but I could, I could pull these in here. And then I could just hook those up the same way as it did to either databases or to the components on the screen, which are all represented also in this window. So if we, if we move this across, we'll see that we have a representation of the various components we have in this window in our diagram window here, which is how we're making these connections and how the values are updating. So it's built it just as an engineer would. It did some trial and error on the way to decide how to build it. And it completed the whole application in about 10 minutes.

Watch on YouTube »   All videos »