We derive the twist-3 gluon fragmentation function (FF) contribution to the transversely polarized hyperon production in semi-inclusive deep inelastic scattering, ep → eΛ ↑ X, in the leading order (LO) with respect to the QCD coupling in the framework of the collinear twist-3 factorization. Together with the known result for the contribution from the twist-3 distribution in the proton and the twist-3 quark FFs for the hyperon, this completes the LO cross section for this process. The constraint relations among the twist-3 FFs are taken into account. The formula is relevant to large-P T hyperon production in the future Electron-Ion-Collider experiment.