Does Massachusetts have Jurisdiction for your divorce?
If the cause of the divorce occurred outside of Massachusetts, the plaintiff must have resided in Massachusetts for at least one year prior to the filing of the action. If the cause of the divorce occurred within Massachusetts, at least one of the parties must be a Massachusetts resident.
If you have minor children living with your spouse in another state for over six months then you should consider filing in that state as that court has jurisdiction over the children. Your spouse can waive that jurisdiction in writing.
You should file the divorce in the county where you presently reside, or in the County where your spouse resides, if she lives in another County. You or your spouse must have a Massachusetts address in the county where you are filing your divorce. Massachusetts civilian residents living overseas may file in Massachusetts if they have maintained their residency in Massachusetts.