About MongoDB
This repository holds the source of MongoDB, the document-oriented NoSQL database. It is written in C++ and contains the main server components: mongod, the database server, and mongos, the router used for sharded clusters. MongoDB stores flexible JSON-like documents rather than rows in fixed tables.
Most users install prebuilt packages rather than building from source. The README points to the community server download page, the mongodb-community-server Docker image and Homebrew taps, and also covers the MongoDB Shell, mongosh, and MongoDB Compass, a graphical client that can be installed with a packaged script. Client drivers exist for most programming languages, and RPM and Debian packages are produced by the build scripts. Documentation and a developer center help with learning.
The repository's license is listed as 'Other' on GitHub, so read the current license terms before building services on it. MongoDB can be run on your own infrastructure, and MongoDB Inc. also operates a managed cloud service. It is widely used as a general-purpose database for applications with evolving schemas.
Key features
- Document-oriented NoSQL database server
- mongos router for sharded clusters
- MongoDB Shell and Compass GUI
- Official drivers for most languages
- Docker image and Homebrew packages
- RPM and Debian packaging scripts
Good fit for
- →Application databases with flexible schemas
- →Horizontally scaled data stores through sharding
- →Backends for web and mobile apps
- Tags
- mongodb
- nosql
- database
- document-database
- cpp
- sharding
- json
- self-hosted
MongoDB: questions and answers
- What is MongoDB used for?
- MongoDB: The source repository for MongoDB, a document-oriented NoSQL database server written in C++, with sharding support and official drivers for most languages. It is a good fit for application databases with flexible schemas, horizontally scaled data stores through sharding, and backends for web and mobile apps.
- Is MongoDB open source?
- Yes. MongoDB is open source under a custom licence. Its source code is on GitHub at mongodb/mongo and is written mainly in C++.
- Is MongoDB free?
- Yes. MongoDB is open source, so the software itself is free to use under the terms of its own licence. A managed cloud version is also available.
- Can I self-host MongoDB?
- Yes. MongoDB can be self-hosted on your own server or infrastructure.
- What is MongoDB an alternative to?
- MongoDB is an open-source alternative to Amazon DynamoDB, Azure Cosmos DB, Couchbase Capella and Google Cloud Firestore. Other open-source alternatives to Amazon DynamoDB include Apache CouchDB and RavenDB.
- Is MongoDB actively maintained?
- Yes. The most recent commit to MongoDB was on 2 October 2026. The project has 29k stars on GitHub.
Open-source alternatives to MongoDB
See all
Apache CouchDB
Databases
Seamless multi-primary syncing database with an intuitive HTTP/JSON API, designed for reli
Apache-2.0vs Amazon DynamoDB★ 7k
RavenDB
Databases
ACID Document Database
OSSvs MongoDB Atlas★ 4k
SurrealDB
Databases
A scalable, distributed, collaborative, document-graph database, for the realtime web
OSSvs MongoDB Atlas★ 33k
FerretDB
Databases
A truly Open Source MongoDB alternative
Apache-2.0vs MongoDB Atlas★ 11k
ArangoDB
Databases
🥑 ArangoDB is a native multi-model database with flexible data models for documents, grap
OSSvs Azure Cosmos DB★ 14k
Valkey
Databases
A flexible distributed key-value database that is optimized for caching and other realtime
BSD-3-Clausevs Upstash★ 27k
SaaS alternatives to MongoDB
See all
Amazon DynamoDB
Databases
Serverless key-value and document database from AWS
SaaS
Azure Cosmos DB
Databases
Microsoft globally distributed multi-model NoSQL database
SaaS
Couchbase Capella
Databases
Managed document database service from Couchbase with SQL++ queries
SaaS
Google Cloud Firestore
Databases
Serverless NoSQL document database with real-time sync for web and mobile apps
SaaS
MongoDB Atlas
Databases
Managed MongoDB service across AWS, Azure and Google Cloud
SaaS
Amazon DocumentDB
Databases
Managed document database on AWS with a MongoDB-compatible API
SaaS

