MacGregor was born at Drynie, Scotland, in 1797, and died 23 April 1857 in Boulogne, France. He went to British North America in 1803 with his family, and with them settled in Covehead, Prince Edward Island in 1806. He apparently obtained an education from his father, who served as local surveyor and schoolmaster. In 1819 he opened a shop in Charlottetown, and soon after became the land agent for the Montgomery family on the island. He became High Sheriff of Prince Edward Island in 1822, and was dismissed for supporting public proceedings complaining about Lieutenant-governor C.D. Smith. He was soon elected to the Prince Edward Island legislature, but not long after left the colony, allegedly with the funds for its subscription library in his pocket.
From The Biographical Dictionary of British Economists in Oxford Reference.