The Bay Circuit Trail and Greenway or Bay Circuit is a Massachusetts recreational trail and greenway connecting the outlying suburbs of Boston from Plum Island in Newburyport to Kingston Bay in Duxbury, a distance of 200 miles .