Background General anesthesia is inevitable for pediatric patients undergoing surgery, though volatile anesthetic agents may cause neuroinflammation and neurodevelopmental impairment; however, the underlying pathophysiology remains unclear. We aimed to investigate the neuroinflammation mechanism in developing rat brains associated with sevoflurane exposure time, by identifying the specific damage-associated molecular patterns (DAMPs) pathway and evaluating the effects of non-steroidal anti-inflammatory drugs (NSAIDs) in alleviating neuroinflammation. Methods A three-step experiment was conducted to investigate neuroinflammation induced by sevoflurane. First, the exposure time required for sevoflurane to cause neuroinflammation was determined. Next, the specific pathways of DAMPs involved in neuroinflammation by sevoflurane were identified. Finally, the effects of NSAIDs on sevoflurane-induced neuroinflammation were investigated. The expression of various molecules in the rat brain were assessed using immunohistochemistry, immunofluorescence, quantitative real-time polymerase chain reaction, western blot analysis, and enzyme-linked immunosorbent assay. Results In total, 112 rats (aged 7 days) were used, of which six rats expired during the experiment (mortality rate, 5.3%). Expression of CD68, HMGB-1, galectin-3, TLR4, TLR9, and phosphorylated NF-κB was significantly increased upon 6 h of sevoflurane exposure. Conversely, transcriptional levels of TNF-α and IL-6 significantly increased and IFN-γ significantly decreased after 6 h of sevoflurane exposure. Co-administration of NSAIDs with sevoflurane anesthesia significantly attenuated TNF-α and IL-6 levels and restored IFN-γ levels. Conclusions In conclusion, 6 h of sevoflurane exposure induces neuroinflammation through the DAMPs pathway, HMGB-1, and galectin-3. Co-administration of ibuprofen reduced sevoflurane-induced neuroinflammation.