There is one MBTA bus that runs between Danvers and the Salem train depot. The #465. It stops running early evening. It only runs a few times on Saturday and not at all on Sunday. The train runs from Salem to North Station.
Bus schedule: https://www.mbta.com/schedules/465/schedule…
The one way bus fare is $1.70 per person. The train from Salem to Boston costs $7.50
Danvers is not a good base for visiting Boston without a car. If you have a car, consider driving to Wonderland or Wellington, parking for $5-7 per day and ride the subway into the city.Edited: 07 June 2018, 04:50