Connect to a remote Mongodb instance with local meteor instance

Great for development. Say you want to share the database with someone else in a remote location.

  • Create a package.json file with npm init, if you don’t have one already.

  • Enter and modify the following line in that file (replacing all the <...>‘s):

"scripts": {
"meteor": "MONGO_URL=mongodb://<USER>:<PASSWORD>@<SERVER>:<PORT>/<DB> meteor"

For meteor to start using your remote MongoDB start meteor with 


npm run meteor