Licensee MDPI, Basel, Switzerland. Protein-based electronics is an emerging field which has attracted considerable attention over the past decade. Here, we present a theoretical study of the formation and electronic structure of a metal-protein-metal junction based on the blue-copper azurin from pseudomonas aeruginosa. We focus on the case in which the protein is adsorbed on a gold surface and is contacted, at the opposite side, to an STM (Scanning Tunneling Microscopy) tip by spontaneous attachment. This has been simulated through a combination of molecular dynamics and density functional theory. We find that the attachment to the tip induces structural changes in the protein which, however, do not affect the overall electronic properties of the protein. Indeed, only changes in certain residues are observed, whereas the electronic structure of the Cu-centered complex remains unaltered, as does the total density of states of the whole protein, This research was funded by the Spanish MINECO (MAT2014-58982-JIN, FIS2017-84057-P, MDM-2014-0377 and MAT2017-83273-R). J.G.V. acknowledges funding from a Marie Sklodowska-Curie Fellowship within the Horizons 2020 framework (grant number DLV 795286). I.D.-P. thanks the ERC project Fields4CAT (ref. 772391) for financial support