McDermott was elected to the Medford school committee in 1931 and served for eight years.[3] From 1935 to 1936 he was a member of the Massachusetts House of Representatives.[1] He was the Democratic nominee for the United States House of Representatives seat in Massachusetts's 8th congressional district in 1942 and 1944, but lost to Angier Goodwin both times. He served on the Medford Board of Alderman and was elected to the city council when Medford's form of government change in 1949. As part of the change, the office of mayor change to a ceremonial position elected by the city council and McDermott's fellow councilors chose him to serve as the first mayor under the new setup.[3] From 1955 to 1959, McDermott represented the 6th Middlesex District in the Massachusetts Senate. After leaving the Senate, McDermott was the assistant to the Massachusetts Registrar of Motor Vehicles.[4] In 1961, he lost reelection to the Medford city council after controversially voting to appoint John C. Carr as city manager.[5][6]