Back to directory
mongodb avatar

mongo-cxx-driver

C++ Driver for MongoDB. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/mongodb/mongo-cxx-driver.git

1,105

Stars

553

Forks

132

Watchers

Apache-2.0

License

MongoDB C++ Driver

codecov Documentation Documentation License

Welcome to the MongoDB C++ Driver!

Latest Stable Release

The releases/stable branch indicates the latest stable release. This branch corresponds to the driver version which we currently recommend for use in production. By default, new users should clone or download the driver version which is currently indicated by this branch.

# Use the latest stable release which is currently recommended for use.
git clone -b releases/stable https://github.com/mongodb/mongo-cxx-driver.git

[!NOTE] This branch is regularly force-pushed to refer to the latest stable release.

Driver Development Status

[!IMPORTANT] Relevant bug fixes will be backported from the current major version to the previous major version for a period of one year after the new major version is released.

Version Soversion Development Stability Development Status
master N/A Do not use in production! Active
4.5.0 1 Ready for Use Bug Fixes Only
4.4.1 1 Ready for Use Not Supported
4.3.1 None Ready for Use Not Supported
... ... ... ...
4.0.0 None Ready for Use Not Supported
3.11.1 None Ready for Use Not Supported
... ... ... ...
3.0.0 None Ready for Use Not Supported

This project uses Semantic Versioning.

MongoDB Server Compatibility

MongoDB server version compatibility per driver version is documented in the MongoDB Manual.

Bugs and Issues

See our JIRA project.

Resources

License

The source files in this repository are made available under the terms of the Apache License, version 2.0.

Releases

Aug 4, 2026

MongoDB C++11 Driver r4.5.0

Download .zip

Removed

Support for Visual Studio 2015 (EOL since Oct 2025). Use Visual Studio 2017 15.9 (MSVC 19.16.27023) or newer.

Added

Support appending client handshake metadata after initialization and per-...

Jul 23, 2026

MongoDB C++11 Driver r4.4.1

Download .zip

Changed

Bump the minimum required C Driver version to 2.3.3.

See the full list of changes in Jira. Feedback To report a bug or request a feature, please open a ticket in the MongoDB issue management...

Jun 24, 2026

MongoDB C++11 Driver r4.4.0

Download .zip

ImportantThis is the first release supporting a stable ABI for the bsoncxx and mongocxx libraries.

The stable ABI is declared under the v1 namespace of the bsoncxx and mongocxx libraries. The unstabl...

Jun 2, 2026

MongoDB C++11 Driver r4.3.1

Download .zip

Fixed

Do not set upsert: true in "findOneAnd*" operations when the option is explicitly set to false (regression in 4.2.0).

See the full list of changes in Jira. Feedback To report a bug or request...

Apr 22, 2026

MongoDB C++11 Driver r4.3.0

Download .zip

Fixed

Added missing subscript operators for class types declared in bsoncxx::vector::iterators.

Deprecated

Support for Visual Studio 2015 (EOL since Oct 2025). Use Visual Studio 2017 or newer.

Cha...