you could anchor - or pick up a town mooring- in Gloucester and then take the commuter train into Boston.
Jerry