Mean field approach to the momentum distribution