How do I get my MA real estate license if I'm not a MA resident?

You must follow all the same steps as a Massachusetts state resident. One detail of note is that you must take the state licensing exam inside of Massachusetts. This is because they issue your license at the testing center.