Transferrin (TRF), recognized as a glycoprotein clinical biomarker and therapeutic target, has its concentration applicable for disease diagnosis and treatment monitoring. Consequently, this study developed boronic acid affinity magnetic surface molecularly imprinted polymers (B-MMIPs) with pH-responsitivity as the "capture probe" for TRF, which have high affinity similar to antibodies, with a dissociation constant of (3.82 ± 0.24) × 10-8M, showing 7 times of reusability. The self-copolymerized imprinted layer synthesized with dopamine (DA) and 3-Aminophenylboronic acid (APBA) as double monomers avoided nonspecific binding sites and produced excellent adsorption properties. Taking the gold nanostar (AuNS) with a branch tip "hot spot" structure as the core, the silver-coated AuNS functionalized with the biorecognition element 4-mercaptophenylboronic acid (MPBA) was employed as a surface-enhanced Raman scattering (SERS) nanotag (AuNS@Ag-MPBA) to label TRF, thereby constructing a double boronic acid affinity "sandwich" SERS biosensor (B-MMIPs-TRF-SERS nanotag) for the highly sensitive detection of TRF. The SERS biosensor exhibited a detection limit for TRF of 0.004ng/mL, and its application to spiked serum samples confirmed its reliability and feasibility, demonstrating significant potential for clinical TRF detection. Moreover, the SERS biosensor designed in this study offers advantages in stability, detection speed (40min), and cost efficiency. The portable Raman instrument for SERS detection fulfills the requirements for point-of-care testing.