John Macky (died 1726) was a Scottish spy. He was the first person to inform the British of James II's intended invasion of England in 1692 after he fled from France to England. He published an attack on James' exiled court in A View of the Court of St Germains from the Year 1690 to 1695 in 1696. His network of spies was crucial to the discovery in February and March 1708 of the Jacobite plans to invade Scotland. In 1733 his son published Memoirs of the Secret Services of John Macky.