Microglial cells are brain-specific macrophages that swiftly react to disruptive events in the brain. Microglial activation leads to specific modifications, including proliferation, morphological changes, migration to the site of insult, and changes in gene expression profiles. A change in inflammatory status has been linked to many neurodegenerative diseases such as Parkinson’s disease and Alzheimer’s disease. For this reason, the investigation and quantification of microglial cells is essential for better understanding their role in disease progression as well as for evaluating the cytocompatibility of novel therapeutic approaches for such conditions. In the following study we implemented a machine learning-based approach for the fast and automatized quantification of microglial cells; this tool was compared with manual quantification (ground truth), and with alternative free-ware such as the threshold-based ImageJ and the machine learning-based Ilastik. We first trained the algorithms on brain tissue obtained from rats and non-human primate immunohistochemically labelled for microglia. Subsequently we validated the accuracy of the trained algorithms in a preclinical rodent model of Parkinson’s disease and demonstrated the robustness of the algorithms on tissue obtained from mice, as well as from images provided by three collaborating laboratories. Our results indicate that machine learning algorithms can detect and quantify microglial cells in all the three mammalian species in a precise manner, equipotent to the one observed following manual counting. Using this tool, we were able to detect and quantify small changes between the hemispheres, suggesting the power and reliability of the algorithm. Such a tool will be very useful for investigation of microglial response in disease development, as well as in the investigation of compatible novel therapeutics targeting the brain. As all network weights and labelled training data are made available, together with our step-by-step user guide, we anticipate that many laboratories will implement machine learning-based quantification of microglial cells in their research.