there are train stations for the commuter rail in downtown Ayer and in Littleton near 495. See the MBTa website for schedules. These trains will take you into North Station where you can catch the Green Line Subway to the Boston Common
You can catch a train to Boston close by.
Thanks! Your answer is awaiting moderation.