Rev. William Montgomery (1871–1930) was a Presbyterian minister and a British codebreaker who worked in Room 40 during World War I.