James Macgregor (1 August 1808 – 5 September 1858) was a British banker, railway chairman and politician.