MongoDB C++ Driver
The MongoDB C++ Driver is the official client library that lets C++ applications connect to and interact with MongoDB databases.
Platform availability
Available on 0 of 10 platforms
- Unraid (not listed)
- TrueNAS (not listed)
- Umbrel (not listed)
- ZimaOS (not listed)
- Proxmox (not listed)
- Helm (not listed)
- Mac (not listed)
- Windows (not listed)
- Linux (not listed)
- Any server (not listed)
Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.
71/100 Good
- Maintained
- 100last commit 8 days ago
- Popular
- 611,108 GitHub stars
- Easy to install
- 250 install platforms, install notes, Docker image
- Light to run
- No data
Based on 3 of 4 factors.
- GitHub stars
- 1,108
- Open issues
- 4
- Last commit
- 2026-11-16
- Latest release
- r4.6.2
- License
- Apache-2.0
- Activity
- steady
Checked 7 days ago - source: GitHub (mongodb/mongo-cxx-driver)
Resources & Compatibility
ARM (e.g. Raspberry Pi) is supported.
Checked 58 days ago - source: Docker Hub image tags and published docs
First-install notes
- Install FastAPI sample dependencies In the mongodb-pymongo-fastapi folder, open a virtual environment (a separate Python workspace) and run pip install -r requirements.txt. If you skip this, the app will not start because Python cannot find the packages it needs. source
- Install Flask sample dependencies If you are using the Flask (a Python web framework) example, run pip install flask-pymongo Flask-Mail celery before starting it. Without these packages, the app will fail when Python tries to load it. source
- Add PyMongoExplain for query plans Run python3 -m pip install pymongoexplain only if you want to explain how MongoDB runs aggregation queries. Without it, that explain feature in the examples will not work. source
- Installation New users should clone or download the driver from the releases/stable branch, which tracks the version MongoDB recommends for production use. source
Fetched 45 days ago - each note links to its source
Variants
Alternatives (12)
- Apache Cassandra
- CockroachDB - CockroachDB is a distributed SQL database for developers and operators of transactional applications that need horizontal scaling and resil…
- CouchDB - CouchDB is a document-oriented NoSQL database with a RESTful HTTP/JSON interface for storing, querying, and synchronising JSON documents ac…
- FerretDB - FerretDB is an open-source MongoDB compatibility proxy for self-hosted stacks.
- KeyDB - KeyDB is a distributed, Redis-compatible key-value database that adds true multi-master replication, letting any number of servers accept w…
- Microsoft SQL Server - SQL Server delivers on Microsoft’s Data Platform vision by helping your organization manage your data by enabling you to store data from st…
- MySQL Community Edition - Free GPL database platform supporting SQL and NoSQL applications with InnoDB storage, replication, clustering, connectors, and cross-platfo…
- PostgreSQL - PostgreSQL (Postgres) is an open source object-relational database known for reliability and data integrity.
- RavenDB - RavenDB is an open-source, transactionally consistent document database that stores application data in flexible records, helping developer…
- Redis - Redis is a fast, in-memory data structure store that can be used as a database, cache, and message broker.
- SQLite - SQLite is a lightweight, embedded relational database engine that stores an entire database in a single file on your device.
- SurrealDB - SurrealDB is a modern "all-in-one" database that stores and organises your app's information.
Checked 55 days ago - source: AlternativeTo
Common questions
What CMake issues have been reported when building mongo-cxx-driver 4.5.0 with VS2022 on Windows?
CMake errors can occur even if the C driver download succeeds. The thread notes that building the C++ driver from a self-built C driver is not clearly explained.
How can I install the modern MongoDB C++ driver on Fedora?
Install the mongo-cxx-driver-devel package. The Fedora discussion says this provides the modern C++ MongoDB driver and replaces the legacy driver.
What should I check before upgrading to a newer version of the C++ driver?
Check the Upgrade Driver Versions documentation. It explains what changes you might need to make to your application when upgrading driver versions.
Answers sourced from discussion.fedoraproject.org, stackoverflow.com, www.mongodb.com
Community
- Building mongo cxx driver : r/cmake - Reddit (reddit)
- Need help building mongo-cxx-driver using cmake - Reddit (reddit)
- CMake errors building MongoDB CXX driver 4.5.0 with VS2022 under Windows (forum)
- techtasie/mongo-cxx-driver - Fedora Discussion (forum)
- Newest 'mongo-cxx-driver' Questions - Stack Overflow (forum)
- Downloading MongoDB Drivers to use in QT - Qt Forum (forum)
Collected 52 days ago - public community threads