swampscott is a town in essex county, massachusetts, united states. it is located up the coast from boston in an area known as the north shore. the population was 13,787 as of the 2010 united states census.