The prevalence of mental disorders in my country continues to rise, and it is becoming a serious social problem. Mental disorders are usually managed with medication, psychotherapy, or a combination of the two, and symptoms resolve with treatment. But sometimes conventional treatment does not make symptoms better, and the development of human-computer interaction systems (extended reality or brain-computer interfaces) in the metaverse will bring new ways of diagnosis and treatment to many patients who are difficult to cure by existing medical methods. In addition, the combination of brain-computer interface and extended reality will also have a new breakthrough point: brain-computer interface system can revolutionize the way traditional extended reality system input, will change the way it interacts with the virtual environment; Extended reality systems will also be useful information feedback tools in brain-computer interface systems. Specifically, the combination of brain-computer interface and extended reality has been initially attempted in stroke, autism, hyperactivity and other diseases, and certain therapeutic results have been achieved. The development of new technologies provides new possibilities for improving the quality of life of patients; at the same time, it also expands the limits of medical capabilities, making it possible to cure some mental diseases without relying on drugs.