It's been 4 years since this question was asked but still it is still relevant. Comparing these two in 2019 is like comparing apples to oranges as MongoDB is only a database while Firebase is a complete development platform with around 19 services. Still, if we have to compare their database abilities then I would suggest deciding after reading this blog: MongoDB Vs Firebase: Battle Of The Best Databases 2019