Towards a microscopic theory of the metal-insulator transition