I bet you have a vacuum leak.
It allows "false air" into the system and prevents the idle control valve to figure out the proper amount of air, thus causing the idle to hunt up and down.
2001 E430, Bourdeaux Red, Oyster interior.
1973 280SE 4.5, 170,000 miles. 568 Signal Red, Black MB Tex. "The Red Baron".