The University of Virginia School of Medicine recommends Xanax for MRI patients with claustrophobia. Xanax treats panic attacks. Individuals with claustrophobia also use Valium, although the drug is not as effective as Xanax.
While drugs treat the symptoms of claustrophobia, they do not address the root cause, according to Medical News Today. Psychologists often prescribe cognitive behavioral therapy for individuals with diagnosed claustrophobia. The procedure retrains the patient's mind by gradually exposing the patient to small spaces. Relaxation exercises, such as deep breathing, muscle relaxation and meditation, can deal with anxiety. Watching other patients interact with their phobia stimulii is also effective at curing claustrophobia.