Mestric logó

Megosztani az örömöt: a törődés jele.

Tanulj velünk! Könnyen követhető útmutatót szeretnénk adni a gyártási folyamatokhoz, és bemutatni a legjobb optimalizálási eljárást.
Szekció elválasztóSzekció elválasztó
Engineer checking a CNC controller and cabinet
november 26, 2026

OPC UA vs MQTT: How to Choose for Your Plant

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.

Mestric
Turn Machine Data Into Live KPIs
Mestric connects directly with manufacturing equipment to bring real-time performance tracking, quality monitoring and productivity analytics into your operations.

Visit

TL;DR

  • OPC UA is a manufacturer- and platform-independent standard that carries data together with its structure and meaning. MQTT is a broker-based publish-subscribe transport whose payload meaning you define yourself.
  • Use OPC UA where you need machine-level context and discoverable data. Use MQTT where you need to distribute data to many systems, such as an MES, a historian or a cloud platform.
  • MTConnect is a read-only standard for machine tool data, and it can be carried over both MQTT and OPC UA.
  • A common pattern is OPC UA at the machine, MQTT between plant, edge and cloud, and an MES on top that turns the data into decisions.

Tartalomjegyzék

What each standard actually is

OPC UA

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

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

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.

OPC UA vs MQTT: the differences that matter on the shop floor

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.

Context versus simplicity

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.

OPC UA and MQTT architecture comparison

Security

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.

Scalability and performance

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.

MTConnect vs OPC UA

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:

  1. Your fleet is mostly machine tools and you mainly need utilisation, OEE or process monitoring: MTConnect is a strong fit.
  2. Your fleet is mixed, with PLCs, packaging lines, injection moulding and robots: OPC UA covers a wider range of equipment types.
  3. You need to command equipment, not just read it: MTConnect is read-only, so you need another route for that.

If you are planning an MTConnect rollout, our page on MTConnect integration checks lists four checks to run in a pilot.

How the two work together

A typical architecture has three layers.

  1. Machine layer. The controller exposes its data through an OPC UA server, or through MTConnect on machine tools.
  2. Edge layer. A gateway reads that data and publishes it to an MQTT broker under agreed topic names, adding the context so consumers do not guess.
  3. Operations layer. The MES, historian and analytics subscribe to the topics they need.

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 example

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.

What this means for your MES

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:

  • Why did this machine stop? You need state and downtime signals with clear meaning.
  • What is our real utilisation? You need consistent, timestamped machine states across all equipment.
  • Where is quality drifting? You need process parameters linked to the right machine and order.

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.

Choosing in five questions

  1. What does the machine offer today? Check for an OPC UA server, MTConnect support or neither before designing anything.
  2. How many systems need the data? Several consumers point to a broker.
  3. Do you need context at the source? If yes, favour OPC UA or MTConnect models over raw MQTT payloads.
  4. Do you need to write to equipment? If yes, plan for a protocol that supports it, since MTConnect is read-only.
  5. Who will maintain the topic and data model? MQTT gives freedom, and freedom needs a naming convention that someone owns.

If you are weighing MQTT specifically, starting MQTT in production covers what it takes to begin per machine.

Where Mestric fits

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.

Mestric

Our perspective

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ž

GYIK

Is OPC UA better than MQTT?

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.

Can OPC UA and MQTT be used together?

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.

What is MTConnect used for?

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.

Does MQTT define what my data means?

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.

Források


crossmenu