Two screw clamps and one electrical connector. No harder than replacing the airfilter.
The system will readapt if the air mass meter was the problem. The battery will get the light but will deinitialize the windows, roof, steering angle sensor (if equipted with ESP), etc.
Bosch Master, ASE Master, L1
33 years MB technician