This research paper presents the development and evaluation of pioneering nanocomposites (NCs) based on the combination of k-carrageenan and linseed mucilage. When loaded with macela extract nanoemulsion they present an innovative approach for the sustained release of antimicrobial herbal constituents, specifically tailored for bovine mastitis treatment. The NCs, encompassing various ratios of k-carrageenan and linseed mucilage polymers (8:2, 7:3, and 5:5 w/w) with 1.25 mg of macela extract/g of gel, underwent in vitro assessment, emphasizing viscosity, degradation speed, release of herbal actives from macela nanoemulsion and antimicrobial activity. The NCs exhibited thermoreversible characteristics, transitioning from liquid at 60°C to a gel at 25°C. NCs allowed a gradual release of phenolic compounds, reaching approximately 80% of total phenolics release (w/v) within 72 h. NCs inhibited the growth of MRSA (ATCC 33592) until 8 h of incubation. No toxic effect in vitro of NCs was found on MAC-T cells. Thus, the developed materials are relevant for the treatment of bovine mastitis, especially in the dry period, and the data support future evaluations in vivo.