The Quran says that the believers are brothers, so they should make peace between their brothers, and that this community is one community. It also says that the noblest in Allah's sight is the most righteous, whatever the tribe or nation. So a Muslim in Indonesia, Nigeria or Canada is a sister or brother in faith to a Muslim in Mecca. This is seen most clearly at Hajj, where people from every country perform the same rites side by side.
The Prophet ﷺ said that the believers, in their mutual love, mercy and compassion, are like one body: when one part is in pain, the whole body responds with sleeplessness and fever. He also said that a believer to another believer is like a building, each part supporting the other. This is why Muslims often feel concern for suffering Muslims elsewhere, and why mosque communities tend to help their members.
It would be wrong to say that all Muslims agree on everything. There are two main branches, Sunni and Shia, several schools of law, and many cultures and political views. The Quran itself tells the believers to hold fast together and not to divide, which shows that unity is something to strive for, not an automatic fact. Muslims generally accept disagreement about secondary matters while sharing the basics of belief. The ummah is a spiritual bond rather than a state, and Muslims live as citizens of their own countries.