This proctocol aims to provide a method for in vitro and in vivo mitochondrial Ca2+ imaging in astrocytes and neurons.