I think there are two possibilities about the A/C problem. I don't believe the air mass sensor has any relation to A/C.
Possibility #1, low on freon. This should be easily identified by checking pressure on both high and low sides when the system runs.
Possibility #2, loose serpentine belt (see description below). Check belt condition, tensioner, and oil at the compressor clutch (also gap).
The A/C compressor has a speed sensor at its rear end. The Klima relay compares the compressor speed and the engine speed (sensor usually at ring gear around starter). When the speed deviation is too much (I saw it somewhere in the MB manual saying like 20% - 30% but can't find it anymore), it assumes the compressor is seized so it cuts off the clutch to save the belt. Therefore, the belt tension and groove condition should be checked. Also, if oil is on the clutch plate, this may cause it slip so much that the compressor speed isn't up to spec. If you see oil on the plate, degrease/wash it.
The easiest way to check if it is the speed cut-off, turn off the engine and then restart. The speed comparison logic is reset by engine off. If the A/C runs again after restarting engine, it is definitely the speed cut-off.
This speed comparison appears in all MB I have seen in the 80s, including W201, W126 and W124. I am not sure about earlier or later MBs though MB tends to use similar design repeatly.
The air mass sensor may affect the engine speed but I would assume it also indirectly affects the compressor speed for the same degree. Therefore I do not believe there is any relation in these two problems.
I am surprised to know M103 engine still uses the potentionmeter. I thought it has been replaced by the more modern thin-film type by mid-80s. The potentionmeter is a variable resistor (like fuel level sender) and the contact surface always wears out after many years of usage.
GeneKelly via CarKB.com wrote: