We introduce a new set of boundary conditions for three-dimensional higher spin gravity with gauge group SL(3, ℝ) × SL(3, ℝ), where its dynamics at the boundary is described by the members of the modified Boussinesq integrable hierarchy. In the asymptotic region the gauge fields are written in the diagonal gauge, where the excitations go along the generators of the Cartan subalgebra of sl(3, ℝ) ⊕ sl(3, ℝ). We show that the entire integrable structure of the modified Boussinesq hierarchy, i.e., the phase space, the Poisson brackets and the infinite number of commuting conserved charges, are obtained from the asymptotic structure of the higher spin theory. Furthermore, its known relation with the Boussinesq hierarchy is inherited from our analysis once the asymptotic conditions are re-expressed in the highest weight gauge. Hence, the Miura map is recovered from a purely geometric construction in the bulk. Black holes that fit within our boundary conditions, the Hamiltonian reduction at the boundary, and the generalization to higher spin gravity with gauge group SL(N, ℝ) × SL(N, ℝ) are also discussed.