St. John's Wort (Hypericum perforatum) GENERIC NAME: Hypericum perforatum. BRAND NAME: St. John's Wort. DRUG CLASS AND MECHANISM: St. John's wort is a commonly used over-the-counter (OTC) dietary supplement that is used to treat mild depression, anxiety, and sleep disorders. St. John's wort is a plant that has bright yellow flowers.