These vehicles have a mechanical fuel injection system that is very susceptible to vacuum leaks. There are also some adjustments that need to be performed in a sequential order for everything to operate correctly, so if you're not familiar with how the system works, you may be better taking this to a MB shop. However, here are some tips.
Check for vacuum leaks, especially at the injector seals. Fix any you find and make sure the fuel mixture is set correctly. This engine has an idle valve that controls the idle speed, it may be that the valve is sticking or bad. Also, check that the throttle body is cleaned and adjusted properly.