Heavy metal ions (HMIs) pollutants pose remarkable hazards to humans and the environment. Their toxicity is a concern for both aquatic life and humans. HMIs directly threaten humans when consumed through drinking water or aquatic species such as fish. Therefore, detecting, quantifying, and removing these pollutants from water sources is necessary. In this study, we fabricated a highly selective and sensitive Hg2+ ion electrochemical sensor using a solvothermally synthesized composite of silver nanoparticles (Ag NPs) and zinc benzene dicarboxylate (ZnBDC) (Ag@ZnBDC) metal–organic framework (MOF) at trace levels. The synthesized Ag@ZnBDC MOFs composite was studied using various characterization techniques: structural, spectroscopic, thermal, Brunauer-Emmett-Teller surface area, morphological, elemental, and electrochemical techniques. The electrochemical sensor was fabricated by drop-casting the Ag@ZnBDC composite onto a glassy carbon electrode, and its sensing properties were evaluated using cyclic voltammetry and differential pulse voltammetry techniques. Remarkably, the sensor exclusively and highly selectively responded to Hg2+ ions among Cd2+, Cr3+, Cu2+, Fe3+, and Pb2+ ions at a concentration of 1 μM. The Ag@ZnBDC sensor showed a limit of detection of 4.16 nM in the linear response within the concentration range of 1–10 nM for Hg2+ ions.