We investigated the effect of temperature on the binding specificity of the recombinant d-trehalose/d-maltose-binding protein from the hyperthermophilic archaeon Thermococcus litoralis (TMBP). Importantly, we found that TMBP can bind d-glucose (Glc). The Glc binding was characterized by means of fluorescence spectroscopy in the temperature range of 25 degrees C-85 degrees C. Our results show that at 25 degrees C the binding of Glc to TMBP is well represented by a bimodal model with apparent K(d) of 20 muM and approximately 3-8 mM for the first and the second binding step, respectively. At 60 degrees C the binding of Glc to TMBP is represented by a simple hyperbolic model with an apparent K(d) value of about 40 muM. Finally, at 85 degrees C Glc did not bind to TMBP. Molecular dynamics (MD) simulations were used to shed light on the molecular mechanism of the Glc binding. Our results suggest that after proper fluorescent labeling TMBP can be used as a highly thermostable and non-consuming analyte biosensor for monitoring the level of glucose in fluids (e.g. human blood) where other sugars are not present.