Viera made his debut for Uruguay on 18 July 2004 in a Copa América quarter-final match against Paraguay, having been called as a late replacement for injured starter Fabián Carini. He also featured in the penalty shootout loss to eventual winners Brazil.