The clearest statement is that Allah does not forbid you from being kind and just to those who have not fought you over religion or driven you out of your homes, and that Allah loves those who deal justly. The Quran lets Muslims eat the food of the People of the Book, and permits Muslim men to marry their chaste women. These are the closest of human relationships, and the Quran allows them. It also commands kindness to non-Muslim parents, saying that even when they press a child to associate partners with Allah, he should not obey in that, but should keep their company in this world with kindness.
The Prophet ﷺ lived this out. In Bukhari, he visited a Jewish boy who served him when the boy fell sick and sat by his head, and he invited him to Islam, and the boy, whose father was beside him and told him to obey, accepted it. When Asma, the daughter of Abu Bakr, asked if she should keep ties with her mother who had come to visit, though she was not Muslim, he said yes, keep ties with your mother. Bukhari also reports that when he died, his armour was pawned with a Jewish man for thirty measures of barley, so he traded and did business with his neighbours of other faiths.
The verse that says 'take not the Jews and the Christians for friends' was revealed in a context of conflict and alliances, and the early commentators explain that it forbids giving allegiance to those who are fighting the believers or putting that alliance above one's faith. They do not understand it to ban neighbourly friendship, because the same Quran, in the same chapter, allows their food and marriage. What a Muslim does keep is the boundary of worship and values: a friend can be non-Muslim, but he or she will not take part in what is forbidden. Close companionship should also help each person to be better, whatever their faith.