Echinococcosis is a common and endemic disease that affects both humans and animals. In this study, the in vitro activities of methanolic extracts of Ruta graveolens, Peganum harmala aerial parts, and Citrullus colocynthis seeds against protoscolosis and isolated bacterial strains from hydatid cysts were assessed using disc diffusion methos and Minimum Inhibitory Concentration (MIC). The chemical composition of aerial sections of R. graveolensand P. harmala, as well as methanolic extracts of C. colocynthis seeds, was studied using LC-MS. These plants produced a total of 26, 31, and 23 chemicals, respectively. The bacteria listed below were isolated from hydatid cyst fluid collected from a variety of sick locations, including the lung and liver. Micrococcus spp., E. coli, Klebsiella oxytoca, Enterobacter aerogenes, Enterobacter amnigenus, Pseudomonas aeruginosa, Staphylococcus xylosus, and Achromobacter xylosoxidans are among the bacteria that have been identified. The most effective extract was R. graveolens, followed by P. harmala and C. colocynthis, according to the results of antibacterial activity using the disc diffusion method. R. graveolens extract had the lowest MIC values (less than 2 mg/mL) against all microorganisms tested. This shows that the R. graveolens extract has additional properties, such as the ability to be both scolocidal and bactericidal. Because these bacteria are among the most prevalent pathogenic bacteria that increase the risk of secondary infection during hydatid cysts, the results of inhibitory zones and MICs of the R. graveolens methanol extract are considered highly promising.