Fusion of multi-source information is one of the primary methods to alleviate data sparsity in recommender systems. Hypergraphs have shown remarkable capabilities in dealing with the diversity of multi-source information, especially in modeling high-order user-item relationships. However, most hypergraph research focuses on constructing hypergraphs using a particular type of hyperedge, which might not fully capture the high-order implicit associations among heterogeneous information sources. Furthermore, existing Hypergraph Attention Networks (HyperGAT), mainly emphasizes on information propagation between nodes and hyperedges, insufficiently exploring density information within complex hyperedges. Moreover, when hypergraphs combine data from multiple heterogeneous graphs, redundant information from different viewpoints can reduce the effectiveness of multivariate modeling hyperedges. Thus, we propose a recommendation algorithm based on multi-source heterogeneous hypergraphs and contrastive learning (MHCLR), which improves recommendation accuracy through multi-source information fusion and higherorder information correlation. First, multi-source heterogeneous hypergraphs (MHC) are generated by combining distance, behavior, attribute, and prediction hyperedges. We mine associations among multisource information, enhancing high-order semantic connections among users and items. Then, a Spatial Density Hypergraph Attention Network (SD-HGAT) is proposed based on composite hyperedges, which enriches the user and item embedding representations by focusing on nodes and hyperedges density. Finally, we design a multiple cross view comparative learning (MCC) that compares views centered around knowledge graphs with hypergraphs, improving the accuracy of multivariate relationship modeling and enabling multi-level user profiling construction. It is observed that MHCLR outperforms the baselines in terms of recall, precision, and NDCG based on the experimental results by Yelp, Last-FM, and Douban.