Cystic fibrosis transmembrane conductance regulator (CFTR) protein is an ion channel found in numerous epithelia and controls the flow of water and salt across the epithelium. The aim of our study to find natural compounds that can improve lung function for people with cystic fibrosis (CF) caused by the p.Gly628Arg (rs397508316) mutation of CFTR protein. The sequence of CFTR protein as a target structure was retrieved from UniProt and PDB database. The ligands that included Armepavine, Osthole, Curcumin, Plumbagine, Quercetin, and one Trikafta (R*) reference drug were screened out from PubChem database. Autodock vina software carried out docking, and binding energies between the drug and the target were included using docking-score. The following tools examined binding energy, interaction, stability, toxicity, and visualize protein-ligand complexes. The compounds having binding energies of −6.4, −5.1, −6.6, −5.1, and − 6.5 kcal/mol for Armepavine, Osthole, Curcumin, Plumbagine, Quercetin, and R*-drug, respectively with mutated CFTR (Gly628Arg) structure were chosen as the most promising ligands. The ligands bind to the mutated CFTR protein structure active sites in hydrophobic bonds, hydrogen bonds, and electrostatic interactions. According to ADMET analyses, the ligands Armepavine and Quercetin also displayed good pharmacokinetic and toxicity characteristics. An MD simulation for 200 ns was also established to ensure that Armepavine and Quercetin ligands attached to the target protein favorably and dynamically, and that protein-ligand complex stability was maintained. It is concluded that Armepavine and Quercetin have stronger capacity to inhibit the effect of mutated CFTR protein through improved trafficking and restoration of original function.