MongoDB Atlas Connect and Query to UIPath

I wanted to know how to connect to MongoDB Atlas Cluster and then Send data tables to the database.

Do i have to Execute the Pyhton script inside UIpath, or manually automate it from activities?

Thanks in Advance.