Vegetables cultivated in soil irrigated with untreated groundwater and municipal-waste-dominated (MWD) stream can elevate the concentration of heavy metals (Cd, Fe, Zn, Hg, Cr, and Ni) in edible parts of the crop, affecting food safety and public health worldwide. This study assessed the quality, sources, and distribution of heavy metals in surface soils, MWD stream and groundwater, and edible tissues of leafy and non-leafy vegetables from a major urban farm in the Sekondi-Takoradi metropolis, Ghana. Human health risk due to exposure to the metals in frequently consumed vegetables were investigated. Indigenous leafy vegetables (Corchorus olitorious and Amaranthus spinosus), exotic leafy vegetables (Lactuca sativa, Brassica oleracea, and Brassica rapa), and non-leafy vegetables (Capsicum annum, Raphanus sativus, Daucus carota, and Allium cepa) were collected from the urban farm. The mean concentration of Cd, Hg, and Fe ranged from 0.008 - 0.027, 0.001–0.013, and 4.517–36.178 mg/kg fw in edible parts of non-leafy vegetables, respectively and 0.011–0.035, 0.002–0.011, and 3.617–13.695 mg/kg fw in exotic or indigenous leafy vegetables. The vegetables were less impacted with the metals if compared to similar vegetables produced from other urban farms, locally and in some countries in Africa, Asia, and Europe. Water resource on the farm were not suitable for vegetable crop irrigation since mean concentration of E. coli (200 cfu/mL), Hg (0.009 mg/L), and Cd (0.019 mg/L) in the MWD stream and 80 % of the groundwater sources exceeded the safe limits recommended by the Food and Agriculture Organization. Geo-accumulation index for each metal in soil was ≤0, however, enrichment factor indicated a high anthropic enriched soil for Cr and Ni. Principal component analysis-multiple linear regression of the metals in soil identified mixed household waste/fertilizer, fertilizer, and crustal material as main sources for the heavy metal load in soil for which geogenic sources accounted for 74.3 %. Preferentially, Cd and Hg accumulated in Amaranthus spinosus, Daucus carota, and Corchorus olitorious. The estimated daily intake of each metal in the vegetables were below local and international daily dietary intake levels. At the 95th percentile concentration of each metal, target hazard quotient and the hazard index was <1 for adult male or female who consume the vegetables. Finally, appropriate agri-horticultural practices must be enforced to mitigate Cd, Ni, Cr, and Hg accumulation in the soil-vegetable system since the metals have profound adverse effect on human health.