Run meteor, open another terminal window, and run the following command.
mongoexport --db meteor --collection foo --port 3001 --out foo.json