On June 29, 2017, Murphy (along with goaltender Eddie Läck and a seventh-round draft pick) was traded to the Calgary Flames in exchange for prospect Keegan Kanzig and a sixth-round pick in the 2019 NHL Entry Draft. The following day, on June 30, the Flames announced Murphy was placed on unconditional waivers to buy-out the remaining year of his contract. The following day, on July 1, Murphy signed as a free agent to a one-year, two-way contract with the Minnesota Wild.