I\'ve recently deployed my Meteor app to a Digital Ocean droplet running Ubuntu 14.04 x32. I used Meteor Up with this mup.json file:
It took me a while to figure this out. It is not possible to access the mongodb server from outside your hosting server. Therefore, you have to ssh into your server first and work from there. To connect to your db with pymongo, use the following:
client = MongoClient('mongodb://localhost/APPNAME')
posts = client.APPNAME.posts
APPNAME should be specified in your mup.json file and replace posts with whatever collection you must update.