Nagy played his last professional season in 2018–19, ending his 23-year career in his homeland with Slovakia as the hosts of the 2019 World Championships. In his final competitive game, Nagy captained Slovakia and scored the shootout winning goal over Denmark on 21 May 2019.