The kinase-like NiRAN domain of nsp12 in SARS-CoV-2 catalyzes the formation of the 5' RNA cap structure. This activity is required for viral replication, offering a new target for the development of antivirals. Here, we develop a high-throughput assay to screen for small molecule inhibitors targeting the SARS-CoV-2 NiRAN domain. We identified NCI-2, a compound with a reactive chloromethyl group that covalently binds to an active site cysteine (Cys53) in the NiRAN domain, inhibiting its activity. NCI-2 can enter cells, bind to, and inactivate ectopically expressed nsp12. A cryo-EM reconstruction of the SARS-CoV-2 replication-transcription complex (RTC) bound to NCI-2 offers a detailed structural blueprint for rational drug design. Although NCI-2 showed limited potency against SARS-CoV-2 replication in cells, our work lays the groundwork for developing more potent and selective inhibitors targeting the NiRAN domain. This approach presents a promising therapeutic strategy for effectively combating COVID-19 and potentially mitigating future coronavirus outbreaks.