Is the mercury switch the important part of that, or the bimetal strip that's tilting the mercury switch? I think you could probably find mercury-free bimetal thermostats still, though I haven't looked.
Some modern thermostats try to emulate this behavior. The Honeywell T6 line of thermostats have technician settings for configuring this behavior though no technician takes the time to configure them for a home.