Background Current risk stratification for patients with malignant pleural mesothelioma based on disease stage and histology is inadequate. For some individuals with early-stage epithelioid tumours, a good prognosis by current guidelines can progress rapidly; for others with advanced sarcomatoid cancers, a poor prognosis can progress slowly. Therefore, we aimed to develop and validate a machine-learning tool-known as OncoCast-MPM-that could create a model for patient prognosis.Methods We did a retrospective study looking at malignant pleural mesothelioma tumours using next-generation sequencing from the Memorial Sloan Kettering Cancer Center-Integrated Mutation Profiling of Actionable Cancer Targets (MSK-IMPACT). We collected clinical, pathological, and routine next-generation sequencing data from consecutive patients with malignant pleural mesothelioma treated at the Memorial Sloan Kettering Cancer Center (New York, NY, USA), as well as the MSK-IMPACT data. Together, these data comprised the MSK-IMPACT cohort. Using OncoCast-MPM, an open-source, web-accessible, machine-learning risk-prediction model, we integrated available data to create risk scores that stratified patients into low-risk and high-risk groups. Risk stratification of the MSK-IMPACT cohort was then validated using publicly available malignant pleural mesothelioma data from The Cancer Genome Atlas (ie, the TCGA cohort).