Monte Carlo and mean-field calculations of the magnetocaloric effect of ferromagnetically interacting clusters