Video · 1:48
AI agent writes to a PLC with human approval: Claude Code and the OTDeck MCP server
Claude Code asks to change a Modbus holding register through the OTDeck MCP server; OTDeck shows the value now, the new value and the agent's reason, and nothing is written until the user clicks Allow.
Recorded on OTDeck 0.2.2 with the built-in simulator and Claude Code, no cuts. Narrated; captions in the player. Also on YouTube.
What the video shows
- Claude Code connected to OTDeck's MCP server, reading live Modbus registers of the simulated PLC.
- The agent asking to write a holding register, with its reason.
- OTDeck's approval dialog: the register, the value now, the value to write; nothing happens until Allow.
- The write in OTDeck's write log, and the new value read back.
Transcript
0:01 OTDeck: one desktop workbench for MQTT, Modbus and OPC UA, with an MCP server for AI agents.
0:10 New in 0.2: agents can ask to write, and you allow each write.
0:18 Here is the built-in PLC simulator. Each connection has an AI agents setting: hidden, read, or read and write.
0:27 On this lab PLC we let agents ask.
0:36 The press setpoint, holding register 3, reads 650:
0:41 65.0 degrees. We ask Claude Code to raise it to 70.
0:49 The MCP server never writes by itself. It hands the request to the running OTDeck app, over a local socket only you can open.
1:00 OTDeck shows the request: the connection and its role, the value now, the new value exactly as it will be written, with the raw register, and the agent's reason.
1:15 Nothing is written until you click Allow. A production connection also needs its name typed, and no answer within a minute is a denial.
1:26 Claude reads the register back: 700. Every request lands in the write log, with the agent's name and reason.
1:35 Reading is free forever; agent writes come with OTDeck Pro, 99 dollars once, at otdeck dot com.
Read more
Download OTDeck, free for one connection MCP server for AI agents