The United Nations Agenda 2030, inclusive of its 17 sustainable development goals (SDGs), serves as the global blueprint for sustainability for both present and future generations. Scientific research is entrusted with the responsibility of contributing by informing the current situation and future challenges in achieving the SDGs. This paper investigates the role of social psychology in contributing to the SDGs and the environmental, economic and social pillars of the UN Agenda. We analysed 4808 papers using Natural Language Processing to identify (i) the relevance of social psychology within the SDG-related literature and (ii) the current and potential contribution of social psychology to the SDGs. Results highlight that social psychology contributes to the SDGs by addressing typical social issues, primarily those related to health and gender, while noting its under-representation in some environmental and economic areas, despite social psychology well-established research on these topics. This paper introduces a novel approach for assessing the SDGs, fostering a critical reflection on the SDG framework and social psychology to guide less explored research paths. This approach could potentially enhance the evaluation and advancement of the 2030 Agenda, facilitating a deeper dialogue between the scientific community and policymakers, driving social change.