arXiv:2610.01364cs.MAOct 2026

Manuscript Offprint

arXiv:2610.01364

LLM-Driven Multi-Agent Control for Skill-Based Smart Manufacturing

Kay Köhle, Darko Anicic, Thomas A. Runkler, René Graf

Kay Köhle*†, Darko Anicic†, Thomas A. Runkler*†, René Graf‡

*Technical University of Munich, Munich, Germany

†Siemens AG, Foundational Technologies, Munich/Garching, Germany

‡Siemens AG, Digital Industries, Fürth, Germany

Email: kay.koehle@siemens.com

Abstract—Factories are shifting toward smaller lot sizes with high product customization, requiring frequent re-programming of flexible and reconfigurable automation systems. LLM-based agents can be deployed in two complementary roles: offline, they generate deterministic production sequences, reducing programming effort; online, they operate live machines and handle unforeseen runtime faults that static programs cannot anticipate. We propose a solution in which each factory module is paired with a dedicated LLM-based agent and an MCP tool server that exposes the module's skills via OPC UA method calls, with agents coordinating over MQTT and grounded by real time updates of the factory state. We compare three agent architectures (orchestrator, peer-to-peer, and monolithic) across nine production challenges of increasing complexity in a simulation of a physical six-module hexagonal factory, including silent hardware fault detection. The monolithic and peer-to-peer architectures both achieve the highest mean solve rate (93%), while the orchestrator uniquely resolves a silent conveyor-belt fault in all ten runs by autonomously rerouting plates around the blocked segment. All architectures exhibit emergent fault-diagnosis behavior without any explicit failure-handling logic, establishing standardized MCP tooling, MQTT-based inter-agent communication, and real-time state injection as a viable and reproducible foundation for LLM-programmed smart manufacturing.

Index Terms—Multi-Agent System, Large Language Model, OPC UA, MQTT, Model Context Protocol, Industrial Automation, Smart Manufacturing, Cyber-Physical System

I. INTRODUCTION

Industrial automation systems are undergoing a profound transformation driven by the shift toward high-mix, low-volume manufacturing, which requires rapidly reprogrammable production systems. LLM-based agents can generate such production sequences, reducing manual programming effort. Additionally, while classical deterministic schedulers handle fixed production sequences reliably, they require every recoverable condition to be anticipated and hard-coded. Silent hardware faults, where a method reports success, but produces no physical effect, fall outside this model entirely, as they cannot be enumerated in advance. Here, LLM agents that directly control the modules inside a production system can reason over discrepancies between expected and actual factory state, attributing failures and rerouting production without any explicit pre-programmed failure-handling logic. Early work has demonstrated that LLM-based agents can interpret natural-language task descriptions and interact with cyber-physical production systems, with Xia et al. [1] showing how agents can coordinate industrial modules through event-driven reasoning over OPC UA-based digital twins. Hofmann et al. [2] further show that LLMs can control real machines by invoking OPC UA methods as callable tools, while Xu et al. [3] demonstrate LLM-based control in robotic feedback loops, establishing LLMs as credible general-purpose control components. In parallel, the Model Context Protocol (MCP) has introduced a standardized way to expose machine capabilities to LLMs. Vieira Da Silva et al. [4] show how MCP can formalize these capabilities within manufacturing settings, enabling LLMs to interact with machines and skills through semantically enriched, self-describing tool interfaces rather than unstructured natural-language heuristics. At the communication layer, SUPCON Global has demonstrated LLM agents operating a simulated factory over MQTT, arguing that JSON-structured publish/subscribe messaging is well-suited for scalable multi-agent coordination [5], [6]. Despite these developments, significant gaps remain. Existing approaches either adopt monolithic agent designs without standardized tool interfaces, use custom event-driven prompting without a structured inter-agent communication protocol, or demonstrate MQTT-based coordination without connecting it to OPC UA as a machine-level actuation layer. No prior work combines all three: structured agent architectures, MCP-based modular tooling, and OPC UA as the standardized execution interface. This paper addresses these gaps by comparing agent architectures for LLM-driven industrial automation in which each factory module is paired with a dedicated MCP tool server that exposes its skills via OPC UA method calls, and agents coordinate over MQTT. We evaluate three architectures (orchestrator, peer-to-peer, and monolithic) across nine production challenges of increasing complexity in a Python-based simulation of a factory with six modules. In the challenges, the monolithic and peer-to-peer architectures achieve the highest mean solve rate of 93%, while the orchestrator uniquely solves the transport-fault challenge at 100% by leveraging its global view of the factory.