The invention relates to a probe (10) for an implantable medical device. The probe has a distal end (2) and a proximal end (3), and the probe (10) moreover comprises an electrode (1) at the distal end. The electrode is connected to a wire (5) extending from the electrode to the proximal end of the probe, where the resistivity of the wire is non-uniform along the length of the wire. The wire may have high resistivity at the distal end of the probe and low resistivity wires elsewhere. The high resistivity wires reduce the peak current density in the tissue of an implanted device, and thus prevents destructive heating and/or undesired stimulation of tissue during MRI examination. This highly contributes to MR safety which is a highly desired feature for these implantable electrical stimulation devices.