The increasing demand for rare earth elements (REEs) in the modern economy motivates the development of novel strategies for cost-effective REE recovery from nontraditional feedstocks. We previously engineered E. coli to express lanthanide binding tags on the cell surface, which increased the REE biosorption capacity and selectivity. Here we examined how REE adsorption by the engineered E. coli is affected by various geochemical factors relevant to geothermal fluids, including total dissolved solids (TDS), temperature, pH, and the presence of specific competing metals. REE biosorption is robust to TDS, with high REE recovery efficiency and selectivity observed with TDS as high as 165,000 ppm. Among several metals tested, U, Al, and Pb were found to be the most competitive, causing >25% reduction in REE biosorption when present at concentrations ∼3- to 11-fold higher than the REEs. Optimal REE biosorption occurred between pH 5-6, and sorption capacity was reduced by ∼65% at pH 2. REE recovery efficiency and selectivity increased as a function of temperature up to ∼70 °C due to the thermodynamic properties of metal complexation on the bacterial surface. Together, these data define the optimal and boundary conditions for biosorption and demonstrate its potential utility for selective REE recovery from geofluids.