Sir James Montgomery, 2nd Baronet Stanhope FRSE (9 October 1766 – 27 May 1839) was a Scottish peer, politician and lawyer who served as Lord Advocate of Scotland 1804 to 1806.