Postmenopausal osteoporosis (PMOP) is closely related to the pathogenesis of osteoclasts, with the Cathepsin K (CTSK) protein playing a crucial role. Our study aimed to screen small molecule compounds targeting CTSK and evaluate their impact on PMOP. Through molecular docking, we identified NVP-BHG712 as significantly inhibiting osteoclast differentiation and bone resorption. NVP-BHG712 also effectively suppressed CTSK activity and exhibited strong binding affinity to CTSK protein. Furthermore, NVP-BHG712 regulated the expression of inflammatory factors and modulated the balance between M1 and M2 macrophage polarization. In the mouse model of ovariectomy-induced osteoporosis, NVP-BHG712 rescued bone loss by inhibiting excessive osteoclast activation. These findings suggest that NVP-BHG712 may be a promising treatment for pathological osteoporosis by alleviating osteoclast function.