By means of diffusion Monte Carlo calculations, we investigated the quantum phase transition between a superfluid and a Mott insulator for a system of hard-sphere bosons in a quasi one-dimensional optical lattice. For this continuous hamiltonian, we studied how the stability limits of the Mott phase changed with the optical lattice depth and the transverse confinement width. A comparison of these results to those of a one-dimensional homogeneous Bose-Hubbard model indicates that this last model describes accurately the phase diagram only in the limit of deep lattices. For shallow ones, our results are comparable to those of the sine-Gordon model in its limit of application. We provide an estimate of the critical parameters when none of those models are realistic descriptions of a quasi one-dimensional optical lattice.