Organ motion compensation in image-guided therapy is an active area of research. However, there has been little research on motion tracking and compensation in magnetic resonance imaging (MRI)-guided therapy. In this paper, we present a method to track a moving organ in MRI and control an active mechanical device for motion compensation. The method proposed is based on MRI navigator echo tracking enhanced by Kalman filtering for noise robustness. We also developed an extrapolation scheme to resolve any discrepancies between tracking and device control sampling rates. The algorithm was tested in a simulation study using a phantom and an active mechanical tool holder. We found that the method is feasible to use in a clinical MRI scanner with sufficient accuracy (0.36 mm to 1.51 mm depending on the range of phantom motion) and is robust to noise. The method proposed may be useful in MRI-guided targeted therapy, such as focused ultrasound therapy for a moving organ.