The spinal cord accounts for the main communication pathway between the brain and the peripheral nervous system. Spinal cord injury is a devastating and largely irreversible neurological trauma, and can result in lifelong disability and paralysis with no available cure. In vivo spinal cord imaging in mouse models without introducing immunological artifacts is critical to understand spinal cord pathology and discover effective treatments. We developed a minimally invasive intervertebral window by retaining the ligamentum flavum to protect the underlying spinal cord. By introducing an optical clearing method, we achieve repeated two-photon fluorescence and stimulated Raman scattering imaging at subcellular resolution with up to 15 imaging sessions over 6–167 days and observe no inflammatory response. Using this optically cleared intervertebral window, we study neuron-glia dynamics following laser axotomy and observe strengthened contact of microglia with the nodes of Ranvier during axonal degeneration. By enabling long-term, repetitive, stable, high-resolution and inflammation-free imaging of mouse spinal cord, our method provides a reliable platform in the research aiming at interpretation of spinal cord physiology and pathology.