Activity of brain neurons will lead to changes in local blood flow rate (BFR). Thus, it is important to measure the local BFR of cerebral cortex on research of neuron activity in vivo, such as rehabilitation evaluation after stroke, etc. Currently, laser Doppler flowmetry is commonly used for blood flow measurement, however, relatively low resolution limits its application. Optical coherence tomography (OCT) is a powerful noninvasive 3D imaging modality with high temporal and spatial resolutions. Furthermore, OCT can provide flow distribution image by calculating Doppler frequency shift which makes it possible for blood flow rate measurement. In this paper, we applied OCT to measure the blood flow rate of the primary motor cortex in rats. The animal was immobilized and anesthetized with isoflurane, an incision was made along the sagittal suture, and bone was exposed. A skull window was opened on the primary motor cortex. Then, blood flow rate changes in the primary motor cortex were monitored by our homemade spectral domain OCT with a stimulation of the passive movement of the front legs. Finally, we established the relationship between blood flow rate and the test design. The aim is to demonstrate the potential of OCT in the evaluation of cerebral cortex function.