


OPC UA and MQTT are not really rivals. OPC UA describes what machine data means, while MQTT moves messages efficiently from many sources to many consumers. Most plants end up using both, so the useful question is which one sits at which layer of your architecture. Mestric™ MES connects directly with manufacturing equipment, so this choice decides how quickly your shop floor data becomes live KPIs, downtime analysis and quality monitoring.
The OPC Foundation describes OPC UA as a secure, reliable, manufacturer- and platform-independent standard for exchanging industrial information. In practice, a PLC or CNC with an OPC UA server exposes more than raw values. It exposes an address space: named objects, data types, relationships between them and services a client can call.
A client can browse that structure and find out that a value is a spindle temperature in degrees Celsius belonging to a particular machine. Nobody has to maintain a separate spreadsheet of register addresses.
MQTT works differently. Publishers and subscribers do not talk to each other directly. They communicate through a broker and organise messages in hierarchical topics, for example a topic path that names the plant, the line and the machine. A system subscribes to the topics it needs and receives what is published.
The payload is application-specific. MQTT does not say whether a number is a temperature or a part count. Your application, or an additional data-model specification layered on top, has to supply that meaning.
MTConnect comes up in the same searches, so here is its place. NIST’s manufacturing data guidance characterises MTConnect as an open, read-only exchange standard with an equipment information model for structured, contextualised data. It defines four information models: Devices, Streams, Assets and Interfaces. NIST lists OEE and utilisation, process monitoring and condition monitoring among its typical uses.
Read-only matters. MTConnect is designed to get data out of equipment, not to command it.
| Criterion | OPC UA | MQTT | MTConnect |
|---|---|---|---|
| Main job | Structured, contextual data exchange with machines | Lightweight message distribution through a broker | Read-only equipment data with a standard model |
| Communication model | Client-server and publish-subscribe | Broker and topic-based publish-subscribe | Read-only data exchange |
| Data meaning | Built in: address space, data types, object relationships | Not defined: you or an added specification supply it | Built in: Devices, Streams, Assets, Interfaces |
| Typical place | Machine and cell level | Between plant, edge, cloud and operations systems | Machine tools and shop floor monitoring |
| Effort to start | Higher, because you map a rich model | Lower, because you define topics and payloads | Moderate, mostly on supported equipment |
The first two rows of the comparison come from the 2021 peer-reviewed review Messaging Protocols for IoT Systems: OPC UA supports both client-server and publish-subscribe and lets clients discover its model, while MQTT leaves context to the application.
This is the real trade-off. OPC UA gives you self-describing data, which saves integration work when you have many machine types and many consumers. MQTT gives you a simple, broker-centred way to move data, which suits a plant that wants to feed several systems from one stream.
If you pick MQTT alone, you must agree on topic names and payload formats across the whole plant. If you pick OPC UA alone, you get rich structure at the machine, but you still need a way to distribute that data widely.

Both can be secured, but they do it in different places. OPC UA has security built into the standard, and the OPC Foundation describes it as a secure standard. With MQTT, security is mostly a matter of how you configure and operate the broker and the connections. For a deeper look at hardening an OPC UA connection, our guide OPC UA integration and the IEC 62443 checks walks through what an MES engineer should verify.
A broker decouples producers from consumers. Adding another subscriber, such as a new dashboard or analytics service, does not mean another connection to the machine. That is why MQTT is a natural fit for the path from edge to cloud.
OPC UA is typically stronger at the machine boundary, where you want typed, discoverable variables. Performance depends on the device, the network and the amount of data, so measure it in your own environment rather than relying on a general ranking.
The two are closer than the names suggest, and they are not mutually exclusive. NIST notes that MTConnect information can be transported using other protocols, including MQTT and OPC UA. So MTConnect defines what the machine tool data looks like, and the transport can be another protocol.
A practical way to decide:
If you are planning an MTConnect rollout, our page on MTConnect integration checks lists four checks to run in a pilot.
A typical architecture has three layers.
This keeps the strengths of each. The machine side keeps its structure, and the distribution side stays simple and scalable. The same pattern, collecting sensor data and distributing it to analytics, is used well beyond factories, for example in IoT for highway systems.
A Slovenian case shows the MQTT side of this in practice. The company ETI describes in its April 2025 publication using MQTT with a publish-subscribe model to connect a pilot production line and then extend the approach to other lines. It reports better access to production data, better process traceability and more flexibility for future upgrades. The same account notes that purchased production lines can restrict access or use proprietary protocols, which is a good reason to check what each machine offers before you commit to an architecture.
An MES is only as good as the data reaching it. Slovenian plants are already moving this way: a study of Slovenian manufacturing firms based on a 2018/19 survey (118 responses, a 15% response rate) found that 39.8% of respondents used a near-real-time production control system, including centralised operating and machine data acquisition or MES.
When you choose a protocol, work backwards from the questions you want the MES to answer:
Start with the signals behind those questions, then pick the cheapest reliable route to each machine. For older equipment without any modern interface, see our notes on legacy machine connectivity pilots. For a step-by-step view of the whole process, read 9 steps to integrate machines with an MES.
If you are weighing MQTT specifically, starting MQTT in production covers what it takes to begin per machine.
You should not have to settle protocol debates before you see value. Mestric™ MES connects directly with manufacturing equipment and collects data automatically, so production managers see KPIs such as performance, downtime, quality parameters and cost analysis in one place, with AI-powered optimisation tools on top. You can also see connected machinery working in a real production environment through an onsite demonstration at our demo centre.
To see how it would connect your own equipment, start with Mestric™ MES.

We are asked about OPC UA versus MQTT almost as if one must win. In our experience of building a MES that connects to equipment, the better question is where data needs meaning and where it needs reach.
Meaning belongs close to the machine, so a downtime event or a quality parameter is unambiguous. Reach belongs in the layer that distributes data to the people and systems that act on it. When both are right, a plant manager stops arguing about signals and starts looking at bottlenecks, stoppages and cost per unit.
That is why we focus on automated data collection and live dashboards rather than on any one protocol. The protocol is a means. The result is faster decisions on the shop floor.
Andraž
Neither is better in general, because they do different jobs. OPC UA gives structured, discoverable data with meaning, and MQTT distributes messages through a broker. Most plants benefit from using each at the layer where it is strongest.
Yes. A common setup reads machine data through OPC UA and publishes it to an MQTT broker for the MES, historian and cloud services. NIST also notes that MTConnect data can be carried over MQTT or OPC UA.
MTConnect is an open, read-only standard for exchanging manufacturing equipment data. NIST lists OEE and utilisation, process monitoring and condition monitoring among its typical uses.
No. MQTT carries payloads whose structure is up to your application or an added data-model specification. Agree topic names and payload formats across the plant before you connect many machines.