According to Sci-News, "consumption of coffee reduces risk of hepatocellular carcinoma—the most common type of liver cancer–by 40 percent." The researchers also found that three cups a day will "reduce the risk by more than 50 percent."
The research analyzed 16 previous case studies from 1996 to 2012, to reach arrive to this conclusion:
From this meta-analysis, the risk of HCC is reduced by 40% for any coffee consumption vs no consumption. The inverse association might partly or largely exist because patients with liver and digestive diseases reduce their coffee intake. However, coffee has been shown to affect liver enzymes and development of cirrhosis, and therefore could protect against liver carcinogenesis.