On 19 February 2018, Mrázek was traded to the Philadelphia Flyers in exchange for a conditional fourth-round pick in the 2018 NHL Draft and a conditional third-round pick in 2019. On 22 February, he made his debut for the Flyers where he made 19 saves in a 2–1 victory over the Columbus Blue Jackets.