It requires energy, but no “new” energy input to retain temperature. Any new energy input and a proper thermometer would have to indicate this extra energy as a temperature increase.
A mercury-in-glass thermometer actually just indicates the volume of the fixed mass of mercury captured inside the glass envelope. When the temperature of the mercury increases, the molecular motion of the mercury increases and the average distance between the mercury molecules increases LINERALY (as it turns out) with temperature. This yields a linear increase in mercury volume with temperature.
So the energy within the mercury is actually the sum of the energy of each molecule of mercury. Make sense?