In this paper, we employ a spectral collocation method based on Legendre polynomials (LPs) to solve the nonlinear time-fractional stochastic beam equation (NTFSBE). This method is applied to convert the solution of NTFSBE to the solution of a nonlinear system of algebraic equations. The numerical approach is completely described. Finally, a test example is implemented to validate the robustness of the proposed scheme.