Granby is a town in Hampshire County, Massachusetts, United States. The population was 6,240 at the 2010 census. It is part of the Springfield, Massachusetts Metropolitan Statistical Area. The census-designated place of Granby corresponds to the main village of Granby in the center of the town.