This paper formulates a Model Predictive Control (MPC) policy to mitigate the COVID-19 contagion in Brazil, designed as optimal On-Off social isolation strategy. The proposed optimization algorithm is able to determine the time and duration of social distancing policies in the country. The achieved results are based on data from the period between March and May of 2020, regarding the cumulative number of infections and deaths due to the SARS-CoV-2 virus. This dataset is assumably largely sub-notified due to the absence of mass testing in Brazil. Thus, the MPC is based on a SIR model which is identified using an uncertainty-weighted Least-Squares criterion. Furthermore, this model includes an additional dynamic variable that mimics the response of the population to the social distancing policies determined by the government, which affect the COVID-19 transmission rate. The proposed control method is set within a mixed-logical formalism, since the decision variable is forcefully binary (existence or the absence of social distance policy). A dwell-time constraint is included to avoid too frequent shifts between these two inputs. The achieved simulation results illustrate how such optimal control method would operate in practice, pointing out that no social distancing should be relaxed before mid August 2020. If relaxations are necessary, they should not be performed before this date and should be in small periods, no longer than 25 days. This paradigm would proceed roughly until January/2021. The results also indicate a possible second peak of infections, which has a forecast to the beginning of October. This peak can be reduced if the periods of days with relaxed social isolation measures are shortened.