With the popularity of mobile Internet devices, the incidence of mobile phone addiction has been increasing, which has aroused the concern of all sectors of society. Due to the difficulty of eliminating the risk factors of mobile phone addiction, it's significant for researchers to examine the function and underlying mechanisms of positive environmental factors in reducing individuals' mobile phone addiction. Thus, the current study aimed to examine the relationship between family cohesion and adaptability and mobile phone addiction among university students and analyzed the mediating role of automatic thoughts as well as the moderating role of peer attachment in this link. The sample consisted of 958 Chinese university students. Participants completed self-report questionnaires assessing family cohesion and adaptability, mobile phone addiction, automatic thoughts, and peer attachment. PROCESS model 8 was significant (the total effect model (F (5, 952) = 19.64, R2 = 0.09, p < 0.001)). Results indicated that family cohesion and adaptability could not only negatively predict mobile phone addiction directly, but also indirectly through the mediating effect of automatic thoughts. Moreover, both the direct association between family cohesion and adaptability and mobile phone addiction as well as the indirect effect of automatic thoughts were moderated by peer attachment. Findings emphasized the beneficial role of peer attachment on the effect of family cohesion and adaptability on automatic thoughts and mobile phone addiction.