James Gray (c. 1770 – 1830) was a Scottish educator, poet and linguist. While master of the high school of Dumfries, he became a friend of Robert Burns, later teaching his children. He later held posts at the high school of Edinburgh and the Belfast Academy. He then took orders in the Church of Ireland, serving as a chaplin for the East India Company in Kutch and serving as tutor to the young Rao or Prince of that province, Deshalji II.