A magnetically shielded assembly with a medical device located near biological tissue. The assembly contains a device for limiting the amount of current flowing through the biological tissue, and a magnetic shield. The magnetic shield is located over at least a portion of the medical device, and it contains nanomagnetic material.