Sir James David Edgar, KCMG PC QC (August 10, 1841 – July 31, 1899) was a Canadian politician. In his twenties, Edgar was a law student, legal editor of the Toronto Globe, an alderman on Toronto's city council and an organizer for the Liberal Party in Ontario. He was also rare among English Canadians of the time for his sympathy for the rights of French-Canadians. Edgar was married to Matilda Ridout and together they had nine children. He used his experience to become the Liberal's railway critic when he returned to Parliament (and the Opposition benches) through an 1884 by-election.