To get to know the mental status of community workers involved in the prevention of COVID-19 epidemic, provide them with mental counseling and guidance, and predict their mental health status, a cloud model for the mental health prediction of community workers involved in the prevention of COVID-19 epidemic was constructed in this paper. First, the method to collect data about mental health was determined; second, the basic definition of cloud was discussed, the digital features of cloud were analyzed, and then, the cloud theory model was constructed; third, a model to predict the mental health of community workers involved in the prevention of COVID-19 epidemic was constructed based on the cloud theory, and corresponding algorithm was designed. Finally, a community was chosen as the research object to analyze and predict its mental health status. The research results suggest that the model can effectively predict the mental health status of community workers involved in the prevention of COVID-19 epidemic.