MongoDB
The source repository for MongoDB, a document-oriented NoSQL database server written in C++, with sharding support and official drivers for most languages.
- GitHub stars
- 29k
- Last commit
- yesterday
- Self-hosted
- Yes
- Hosted version
- Available

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

