Carburetor problems could be the reason for the motor’s harsh idle. you should get out and cleanse the carburetor, or swap it if necessary, to solve this situation.
Whether it is OEM or aftermarket Mercury outboard https://www.facebook.com/profile.php?id=100076060717323&mibextid=LQQJ4d