This paper examines how AI and ML affect stakeholders' involvement in sustainable finance in small and medium-sized businesses, focusing on trading, risk management, and financial advice. It begins with a historical overview and follows AI and ML in SMEs from their early use to their widespread adoption today. The study examines how financial institutions use these technologies to improve customer support, revenue, and service digitization for sustainable finance. Algorithmic trading, predictive analysis, financial advisory, and operational risk management are explored. The paper emphasizes stakeholder engagement in sustainable finance and how AI and ML can help. This study offers comprehensive case studies, theoretical frameworks, and future research to help financial institutions, asset managers, and other organizations use AI and ML for sustainable finance and stakeholder engagement.