This work presents the implementation of a thermo-refractometer, which integrates the measurement of both refractive index and temperature in a single optical fiber structure. To this purpose, a lossy mode resonance (LMR)-based refractometer is obtained by means of the deposition of a titanium dioxide (TiO2) thin film onto a side-polished (D-shaped) single mode fiber. Measurement and subsequent temperature compensation are achieved by means of a fiber Bragg grating (FBG) inscribed in the core of the D-shaped region. The LMR wavelength shift is monitored in transmission while the FBG (FBG peak at 1533 nm) displacement is observed in reflection. The LMR is sensitive to both the surrounding refractive index (SRI), with a sensitivity of 3725.2 nm/RIU in the 1.3324-1.3479 range, and the temperature (- 0.186 nm/°C); while the FBG is only affected by the temperature (32.6 pm/°C in the 25°C - 45°C range). With these values, it is possible to recover the SRI and temperature variations from the wavelength shifts of the LMR and the FBG, constituting a thermo-refractometer, where it is suppressed the effect of the temperature over the refractometer operation, which could cause errors in the fourth or even third decimal of the measured SRI value.