James Nelson Barker (June 17, 1784 – March 9, 1858) was an American soldier, playwright and politician. He rose to the rank of major in the Army during the War of 1812, wrote ten plays, and was mayor of Philadelphia.