I don't recommend riding on Rt. 127. There are many local roads on the North Shore area (north of Boston) for avoiding the old narrow highways. You can view those routes and many others at
http://www.ridemap.info and
http://cyclingnewengland.blogspot.com