A comprehensive understanding of the mechanisms that underlie brain development in premature infants and newborns is crucial for the identification of interventional therapies and rehabilitative strategies. fMRI has the potential to identify such mechanisms, but standard techniques used in adults cannot be implemented in infant studies in a straightforward manner. We have developed an MR safe wrist stimulating robot to systematically investigate the functional brain activity related to both spontaneous and induced wrist movements in premature babies using fMRI. We present the technical aspects of this development and the results of validation experiments. Using the device, the cortical activity associated with both active and passive finger movements were reliably identified in a healthy adult subject. In two preterm infants, passive wrist movements induced a well localized positive BOLD response in the contralateral somatosensory cortex. Furthermore, in a single preterm infant, spontaneous wrist movements were found to be associated with an adjacent cluster of activity, at the level of the infant's primary motor cortex. The described device will allow detailed and objective fMRI studies of somatosensory and motor system development during early human life and following neonatal brain injury.