Background Benchmark datasets are of great importance for model construction and must be representative of the phenomenon being investigated. Currently available computational methods for predicting driver mutations have been trained with positive sample data, typically derived from cancer-related databases such as the Catalogue of Somatic Mutations in Cancer (COSMIC) database, whereas negative samples are generally based on statistical methods or putative samples. Obviously, negative samples are not enough for modelling the broad spectrum of passenger mutations that occur. Results To address these problems, we constructed a balanced dataset with driver mutations from the COSMIC database and high-quality passenger mutations from the Cancer Passenger Mutation database (dbCPM). We then encoded the features of these mutations. According to feature correlation analysis, we constructed a cancer driver missense mutations predictor (CDMPred) with feature selection via the Extreme Gradient Boosting (XGBoost) classifier ensemble learning method. The proposed CDMPred method, with the top 10 features and XGBoost, achieved area under the receiver operating characteristic curve values of 0.83 and 0.80 by 10-fold cross-validation of the training and independent test sets, respectively. Moreover, CDMPred outperformed several state-of-the-art mutation prediction methods for cancer-specific and general diseases in terms of AUC and area under the precision-recall curve. Conclusions High-quality passenger mutations of training data and ensemble learning are benefit to CDMPred. We expect that CDMPred can serve as a valuable method for prediction of cancer driver mutations which can further lead to deeper understanding on personal therapy.