Murphy was selected as the Labour prospective parliamentary candidate for Basingstoke in February 2024 after the previous candidate, David Lawrence, resigned for personal reasons in November 2023. Murphy had previously served as a political advisor to members of Ed Miliband's Shadow Cabinet.[3]
Murphy won the seat of Basingstoke for the Labour Party in the 2024 general election, unseating the Conservative Party incumbent Maria Miller and becoming the constituency's first Labour MP.[4] He earned a majority of 6,484, 42.7% of the vote and a 14% swing for Labour from the 2019 general election.[5]
In 2024, PinkNews listed Murphy among a number of LGBTQ+ parliamentarians.[6]