Determinant quantum Monte Carlo study of the screening of the one-body potential near a metal-insulator transition