 The town is named after the Very Rev James MacGregor by the Canadian Pacific Railway who named a railway station after him, during his visit with the Marquis of Lome, around which the town grew.MacGregor had a population of 963 in 2011 living in 391 of its 411 private dwellings.It had a land area of and therefore a population density of 452.7 people per square kilometer in 2011.