In this paper, we will present the design and preliminary performance of an ultrahigh resolution stationary MR compatible SPECT (MRC-SPECT) system that is developed in our lab. The MRC-SPECT system is based on the second-generation energy-resolved photon-counting (ERPC) CdTe detectors and there are several key features associated with this system. Firstly, up to a total of twenty ERPC detectors will be assembled as a very compact ring, which provides an adequate angular sampling capability and a relatively high detection efficiency. The detectors are supported on a gantry made of high strength polyamide structure constructed using 3-D printing. This compact system can be directly operated inside an MR scanner. The detector module used in this system offers an intrinsic resolution of 350μm and an excellent energy resolution of around 3∼4kev. Each ERPC detector module consists of four pixelated CdTe detectors with a total dimension of 4.5cm×2.25cm. Secondly, a die-cast platinum pinhole inserts and cast lead apertures are developed for this stationary SPECT system. Four 300/500μm diameter pinholes are used for each detector and all pinholes are mounted around a casted cylinder lead aperture tube. The inner diameter of the lead aperture tube is 6cm and the lead tube thickness is 16mm. The opposite detectors are placed 15.6cm apart and the magnification factor of this SPECT system is about 1.2. Thirdly, a comprehensive charge collection model inside strong magnetic field has been developed to account for the magnetic field induced distortion in the SPECT image. This model can accurately predict the detector's energy and spatial response to gamma ray incident events and then help to compensate for the event position recording error due to the strong magnetic field. In this development, we have made an effort to minimize the amount of magnetic materials in the system to alleviate potential interference to magnetic field inhomogeneity.