The nature of molecule-electrode interface is critical for the integration of atomically precise molecules as functional components into circuits. Herein, we demonstrate that the electric field localized metal cations in outer Helmholtz plane can modulate interfacial Au-carboxyl contacts, realizing a reversible single-molecule switch. STM break junction and I-V measurements show the electrochemical gating of aliphatic and aromatic carboxylic acids have a conductance ON/OFF behavior in electrolyte solution containing metal cations (i.e., Na+, K+, Mg2+and Ca2+), compared to almost no change in conductance without metal cations. In situ Raman spectra reveal strong molecular carboxyl-metal cation coordination at the negatively charged electrode surface, hindering the formation of molecular junctions for electron tunnelling. This work validates the critical role of localized cations in the electric double layer to regulate electron transport at the single-molecule level.