Therapeutic drugs uploaded into conjugated conductive polymer matrices deposited on active magnesium alloys serve as controlled-dose, self-powered drug-delivery systems. Preferentially, drugs are added into polymer films in the largest amount possible, mostly to prevent long-term treatments. However, added drugs can interact with the polymer matrix affecting either the structure or the final mechanical properties of the polymer film. In this work, polypyrrole films (PPy) electrodeposited on an AZ31 Mg alloy in ibuprofen and salicylate-containing solutions are investigated in terms of their uploading capacity, surface morphology and mechanical properties. The techniques used to investigate the uploaded PPy films include cyclic voltammetry (CV), scanning electron microscopy (SEM), EDS, and depth-sensing indentation (DSI). A maximum ibuprofen concentration of 440 ± 40 μg cm −2 was obtained in PPy films in the presence of sodium salicylate. The release fraction of ibuprofen as a function of time is fitted to Avrami's equation. The hardness and reduced modulus decreased by 54 and 40 %, respectively, when the PPy films are prepared in the presence of sodium ibuprofen compared with those prepared in sodium salicylate only, indicating a more plastic film with ibuprofen.