Here’s a list of towns in Massachusetts that allowed ADUs (accessory dwelling units) as of 2004: http://www.masshousingregulations.com/pdf/accessory.pdf

It’s likely that there are many more towns that allow them now.