This study presents an adenosine-based molecular beacon (MB) for the selective and sensitive detection of heparin based on the competitive binding between heparin and the MB stem to coralyne.