MCUs are ideal MQTT clients because the protocol is lightweight and designed for low-bandwidth, low-RAM environments.
I'd never call myself a real coder. Most of what I know comes from tinkering in the Linux terminal, copying and pasting ...