Positron emission tomography/magnetic resonance imaging (PET/MRI) is a powerful tool for brain imaging, but the spatial resolution of the PET scanners currently used for brain imaging can be further improved to enhance the quantitative accuracy of brain PET imaging. The purpose of this study is to develop an MR-compatible brain PET scanner that can simultaneously achieve a uniform high spatial resolution and high sensitivity by using dual-ended readout depth encoding detectors. The MR-compatible brain PET scanner, named SIAT bPET, consists of 224 dual-ended readout detectors. Each detector contains a 26 × 26 lutetium yttrium oxyorthosilicate (LYSO) crystal array of 1.4 × 1.4 × 20 mm3 crystal size read out by two 10 × 10 silicon photomultiplier (SiPM) arrays from both ends. The scanner has a detector ring diameter of 376.8mm and an axial field of view (FOV) of 329mm. The performance of the scanner including spatial resolution, sensitivity, count rate, scatter fraction, and image quality was measured. Imaging studies of phantoms and the brain of a volunteer were performed. The mutual interferences of the PET insert and the uMR790 3T MRI scanner were measured, and simultaneous PET/MRI imaging of the brain of a volunteer was performed. A spatial resolution of better than 1.5mm with an average of 1.2mm within the whole FOV was obtained. A sensitivity of 11.0% was achieved at the center FOV for an energy window of 350-750keV. Except for the dedicated RF coil, which caused a ~ 30% reduction of the sensitivity of the PET scanner, the MRI sequences running had a negligible effect on the performance of the PET scanner. The reduction of the SNR and homogeneity of the MRI images was less than 2% as the PET scanner was inserted to the MRI scanner and powered-on. High quality PET and MRI images of a human brain were obtained from simultaneous PET/MRI scans. The SIAT bPET scanner achieved a spatial resolution and sensitivity better than all MR-compatible brain PET scanners developed up to date. It can be used either as a standalone brain PET scanner or a PET insert placed inside a commercial whole-body MRI scanner to perform simultaneous PET/MRI imaging.