Magnesium alloy has been widely investigated as biodegradable cardiovascular stent and bone implant. Its application for biodegradable esophageal stenting remains unexplored. This paper reports the biodegradation behaviors of AZ31 magnesium alloy in artificial saliva and various types of beverage in vitro. Results show that the magnesium ion release rate of AZ31 in artificial saliva for a stent (2cm diameter, 10cm length at 50% stent surface coverage) is 43 times lower than the daily allowance of human body magnesium intakes. The degradation rates of AZ31 in different beverages could also be significantly different. These results suggest that the esophagus in nature is a less aggressive chemical environment for degradation of magnesium alloys. The significant difference in degradation rates of AZ31 in different beverages opens new opportunities for development of degradation controllable esophageal stent through customizing ingested beverages.