In this paper, rational Bernstein polynomials on the semi‐infinite interval are adapted to solve a magnetohydrodynamic (MHD) problem. Also, the derivative, product, convert, and Galerkin exact operational matrices (EOMs) of these polynomials are produced. Using the spectral Galerkin method and the exact operational matrices (EOMs) of rational Bernstein polynomials, we solve the problem with high accuracy and speed, and we estimate an exponential convergence rate in this method. The problem is the flow of MHD micropolar over a moving plate with suction and injection boundary conditions. Comparing the results of the rational Bernstein Galerkin method with operational matrices and without operational matrices shows that the present method is faster than another method. Also, comparing the results of the rational Bernstein Galerkin method and rational Gegenbauer tau method shows that the present method is more accurate than another method.