Danvers is a town in Essex County, Massachusetts, United States, located on the Danvers River near the northeastern coast of Massachusetts.