Thank you for your answer. I did not express myself clearly. What I meant is: is there a simple way to start an in-memory database and get a connection string for Motor. For the record I think I found the answer: pymongo-inmemory.