Can we ask allah to have a Muslim jinn friend and can we ask it to do favours or is it shirk
Islam forbids us from taking or using the service of Jinn as it is haram in the Islamic law.
Asking for help from the jinn will make them even more arrogant and worse. Allah Almighty says:
"And there were men from mankind who sought refuge in men from the jinn, so they [only] increased them in burden." Al-Jinn [72:6]
Therefore, using jinn services is prohibited to block the path that could lead to damage our faith. This is known as the sadd al-zari'ah.
You cannot interact with the world of jinn.
However some people do this. They are magicians .
When the world of Jinn and the World of Men overlap, then it's called Sihr (magic).
Asking a Jinn for its services is essentially Sihr ( magic) and equal to Shirk as well, because the Jinn will ask you to worship him.
Allah knows best.