The lipid bilayer is a dynamic environment that consists of a mixture of lipids with different properties that regulate the function of membrane proteins; these lipids are either annular, masking the protein hydrophobic surface, or specific lipids, essential for protein function. In this study, using tandem mass spectrometry, we have identified specific lipids associated with the Escherichia coli ABC transporter McjD, which translocates the antibacterial peptide MccJ25. Using non-denaturing mass spectrometry, we show that McjD in complex with MccJ25 survives the gas phase. Partial delipidation of McjD resulted in reduced ATPase activity and thermostability as shown by circular dichroism, both of which could be restored upon addition of defined E. coli lipids. We have resolved a phosphatidylglycerol lipid associated with McjD at 3.4 Å resolution, whereas molecular dynamic simulations carried out in different lipid environments assessed the binding of specific lipids to McjD. Combined, our data show a synergistic effect of zwitterionic and negatively charged lipids on the activity of McjD; the zwitterionic lipids provide structural stability to McjD, whereas the negatively charged lipids are essential for its function.