I tried a webcam connected to the controller and that didn’t work well. Now I’m using one of these: Wyze Cam Pan 2 I only use it for monitoring to see if anything is FUBAR. Cheap and easy. You probably want a Go Pro or something like that if you want quality. Problem I see is that you’ll need it ON the Z-axis to really see what’s going on. The dust attachment will also impede the view. One guy here had a setup that seemed pretty good; I forget who.
PWNCNC sells a Go Pro mount, but he also has the files available for download if you have a 3D printer. Link