 Before playing in Chile, Melgar played for local clubs Deportivo Zacapa, Antigua GFC, Aurora FC, and Municipal, the latter from 2004 to 2007, during which time the club won five league titles in a row.He then left Municipal for Antofagasta but decided not to return to Chile after finding it hard to play football outside the capital, Santiago de Chile.After a stint with USAC, Melgar returned to Municipal for the Apertura 2010 season.