Inflammasome activation is a pivotal step for the maturation of IL-1β, which is involved in the development and progression of gastric cancer (GC). Endocannabinoids, such as anandamide (AEA), are emerging as new anticancer therapeutic agents; however, their effects on inflammasome components and underlying mechanisms have not been well elucidated. This study was designed to investigate the effects of AEA on the expression of inflammasome components in lipopolysaccharide- (LPS-) stimulated AGS cells. Moreover, we explored the involvement of cannabinoid receptors (CRs), including CB1R and TRPV1R, in the observed effects of AEA. Our results showed that inflammation was induced by LPS (10 μg/ml) in AGS cells, and inflammasome components (NLRP3, MLRC4, ASC, IL-18, and IL-1β) were overexpressed. Exposure to AEA (10 μM, 24 h) before or after inflammation induction downregulated the expression of inflammasome components and attenuated inflammasome activation as demonstrated by cleavage of caspase 1 and matured IL-1β secretion, although AEA pretreatment showed more reducing effects on the inflammasome activation. In addition, blocking of CB1R and TRPV1R by application of AM-251 and AMG-9810 antagonists remarkably reversed the observed effects of AEA and revealed that NLRP3, NLRC4, and IL-1β genes were mainly regulated via CB1R, while TRPV1R could only regulate the expression of IL-1β and IL-18 genes. In conclusion, our results would indicate a novel anticancer effect of anandamide by attenuation of inflammasome activation and consequently reducing IL-1β production in human AGS cancer cell line via CB1R and TRPV1R.