Sir James Macdonald, 2nd Baronet, GCMG (14 February 1784 – 29 June 1832) was a British politician. He sat in the House of Commons between 1805 and 1832. Macdonald was born 14 February 1784, the eldest and only surviving son of Sir Archibald Macdonald, a Baron of the Exchequer, by Lady Louisa, the eldest daughter of Granville Leveson-Gower, 1st Marquess of Stafford. With the support of his uncle, George Leveson-Gower, 2nd Marquess of Sutherland (later first duke), Macdonald was first elected to parliament at the by-election for the Tain Burghs in 1805. He then successfully contested the seats of Newcastle-under-Lyme at the general election of 1806, Sutherland at the general election of 1812, the Calne by-election of 1816 (and subsequent elections) and Hampshire at the general election of 18