John Gray (23 February 1646 - 24 November 1717) was an Episcopalian minister of the Church of Scotland. In 1689, he 'became a non-juror'. as part of the schism following the Glorious Revolution. Upon his death his 'valuable library' was 'bequeathed to the Town of Haddington' which is now at the National Library of Scotland having been deposited there in 1961.