What Is MongoDB?

MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need

Available how you want it

Sandbox

  • Free, forever
  • Ideal for learning, developing, and prototyping

Shared

  • Up to 5GB storage
  • Shared RAM

Dedicated

  • Consistant performance
  • Advanced security
  • Unlimited scaling

MongoDB offers both an Enterprise and Community version of its powerful distributed document database

Community

  • Feature rich
  • Developer ready

Enterprise

  • Advanced features
  • Performance grade

Cloud

Cloud

Sandbox

  • Free, forever
  • Ideal for learning, developing, and prototyping

Shared

  • Up to 5GB storage
  • Shared RAM

Dedicated

  • Consistant performance
  • Advanced security
  • Unlimited scaling

Server

Server

MongoDB offers both an Enterprise and Community version of its powerful distributed document database

Community

  • Feature rich
  • Developer ready

Enterprise

  • Advanced features
  • Performance grade

Makes development easy

MongoDB’s document model is simple for developers to learn and use, while still providing all the capabilities needed to meet the most complex requirements at any scale. We provide drivers for 10+ languages, and the community has built dozens more.
JS
Python
Java
C++
C#
var url = 'mongodb://localhost:27017/test';

co(function*() {
  const db = yield MongoClient.connect(url);
  console.log("Connected to server");
  
  yield insertDocuments(db, null);
  yield findDocuments(db, null);
  yield indexCollection(db, null);
  yield aggregateDocuments(db, null);

  db.close();
}).catch(err => console.log(err));

Connect

Here we are connecting to a locally hosted MongoDB database called test with a collection named restaurants.

  • MongoDB stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time

  • The document model maps to the objects in your application code, making data easy to work with

  • Ad hoc queries, indexing, and real time aggregation provide powerful ways to access and analyze your data

  • MongoDB is a distributed database at its core, so high availability, horizontal scaling, and geographic distribution are built in and easy to use

  • MongoDB is free to use. Versions released prior to October 16, 2018 are published under the AGPL. All versions released after October 16, 2018, including patch fixes for prior versions, are published under the Server Side Public License (SSPL) v1.

Learn more about MongoDB's architecture →

85,000,000+

Downloads & Atlas Clusters

1,300,000+

MongoDB University Students

35,000+

GitHub Repos

1,000,000+

Community members

Need to run MongoDB?

  • High availability through built-in replication and failover

  • Horizontal scalability with native sharding

  • End-to-end security

  • Native document validation and schema exploration with Compass

  • Management tooling for automation, monitoring, and backup

  • Fully elastic database as a service with built-in best practices

Learn more about our products →

Trusted by thousands of teams

Ready to get started?

Launch a new cluster or migrate to MongoDB Atlas with zero downtime.