In this study, we developed a microneedle-based SERS sensor for in situ detection of TYR to facilitate rapid and effective clinical screening for melanoma. The gene discussed is TYR; the disease is melanoma.