Japanese encephalitis virus (JEV) is an important zoonotic pathogen, which causes central nervous system symptoms in humans and reproductive disorders in swine. It has led to severe impacts on human health and the swine industry; however, there is no medicine available for treating yet. Therefore, vaccination is the best preventive measure for this disease. In the study, a modified mRNA vaccine expressing the prM and E proteins of the JEV P3 strain was manufactured, and a mouse model was used to assess its efficacy. The mRNA encoding prM and E proteins showed a high level of protein expression in vitro and were encapsulated into a lipid nanoparticle (LNP). Effective neutralizing antibodies and CD8+ T-lymphocytes-mediated immune responses were observed in vaccinated mice. Furthermore, the modified mRNA can protect mice from a lethal challenge with JEV and reduce neuroinflammation caused by JEV. This study provides a new option for the JE vaccine and lays a foundation for the subsequent development of a more efficient and safer JEV mRNA vaccine.