The invention belongs to the technical field of traditional Chinese medicines and aims to provide a traditional Chinese medicine composition for treating gastric cancer with a syndrome of deficient cold of the spleen and the stomach according to cognitive mechanisms, of the gastric cancer with the syndrome of deficient cold of the spleen and the stomach, of traditional Chinese medicine. The traditional Chinese medicine composition is composed of herba agrimoniae, radix notoginseng, semen coicis, centipede, radix sophorae subprostratae, poria cocos, herba lobeliae chinensis, radix trichosanthis, bittersweet herb, maytenus hookeri, pericarpium citri reticulatae, oldenlandia diffusa, rhizoma coptidis, radix sophorae flavescentis, taraxacum, indigo naturalis, medicated leaven, fructus hordei germinatus, fructus oryzae germinatus, semen persicae, carthamus tinctorius, rhizoma sparganii, rhizoma curcumae, processed olibanum, processed myrrh, native copper, eupolyphaga, pangolin, storax, benzoin, ocimum basilicum, rhizoma ligustici wallichii, agilawood, lignum dalbergiae odoriferae, raw radix astragali, codonopsis pilosula, radix paeoniae alba, aspongopus, rhizoma cyperi, radix aucklandiae and cactus. The traditional Chinese medicine composition for treating the gastric cancer with the syndrome of deficient cold of the spleen and the stomach is high in efficacy, quick in action and especially suitable for clinical application.