As @balafi reports, you need a driver.
MongoDB has a REST interface, and it has drivers like Mongoose that are designed to create a fully functional REST interface for MongoDB.
This could be the route if you want to use MongoDB without any server configuration issues. That way, you simply call the POST or GET call from jQuery with the specified parameters that you want.
Further information on REST interfaces can be found here: http://www.mongodb.org/display/DOCS/Http+Interface
However, I must warn you that the built-in MongoDB is sorely lacking and is intended only for extremely simple queries.
source share