As noted in this StackOverflow post, you can use a TCP endpoint to host your local MongoDB server. Open an ngrok TCP endpoint to your local MongoDB service which is usually running on port 27017.
ngrok tcp 27017
TCP endpoints are only available on a free plan after adding a valid payment method to your account.