You can disable direct account creation and replace it with an option for requesting user account on your MediaWiki website. Direct account creation can still be kept enabled for Sysops and Bureaucrats to be able to create new accounts by configuring user rights.
Continue reading How To Approve New User Accounts On MediaWiki?