If you are using the desktop client, you should be able to do that in File/Settings/Server management. I have only my own server so I can’t test multiple Mattermost servers, but I use this to connect to a Slack server as well and it works well. It adds tabs to the client to switch between servers.