Yes, it should be possible. Convert the serial node to use MySensors. The relay example should be a good base. Add the converted code to the mqtt sketch and you should be fine.