# mongodb/mongo-cxx-driver

C++ Driver for MongoDB

Repository: https://github.com/mongodb/mongo-cxx-driver
Canonical: https://ross.abutalabs.com/products/mongo-cxx-driver
Homepage: https://www.mongodb.com/docs/drivers/cxx/
Language: C++
License: Apache-2.0
License Family: permissive
Topics: driver, mongodb, c-plus-plus, c-plus-plus-11, networking, bson, mongo-cdriver, database, nosql, c-plus-plus-14, c-plus-plus-17, bson-library, database-driver, mongodb-driver, cpp, cxx, mongo
Last push: 2026-08-25T12:44:41+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4615, "days_push": 8, "days_rel": 29, "gap_med": 29, "n_releases_24m": 14}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1105, forks 553 (observed 2026-08-28T04:03:36.327607+00:00)

## What it is
The official MongoDB C++ driver providing a modern C++ API for connecting to and working with MongoDB servers, built on top of the mongo-c-driver and BSON libraries. It is actively maintained by MongoDB with stable releases recommended for production use.

## Use cases
- connect to mongodb from c++
- query and insert documents in mongodb using c++
- work with bson documents in c++
- build a c++ application backed by mongodb
- crud operations on mongodb from c++ code
- use mongodb with c++17 in production

## When to choose
- you need an officially supported MongoDB client for C++
- you want a modern C++11/17 API with active maintenance and production-ready releases
- you need BSON serialization support in a C++ project

## When to avoid
- you use another language like Python, Go, or Node.js
- you need a driver for a non-MongoDB database
- you require an older unsupported driver version for legacy MongoDB servers without a support contract

## Facets
- artifact type: library
- maturity: active
- function: database-driver, database, serialization
- domain: databases, backend, developer-tools
- platform: cpp, cross-platform, windows
- tags: mongodb, bson, nosql, cxx, official-driver, linux, macos

## Member repositories
- mongodb/mongo-cxx-driver (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.327607+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:34.913068+00:00, confidence not recorded.
  - readme: https://github.com/mongodb/mongo-cxx-driver (fetched 2026-08-28T04:03:36.327607+00:00, sha d38895883e89)
  - homepage: https://www.mongodb.com/docs/drivers/cxx/ (fetched 2026-08-29T12:48:08.773013+00:00, sha fb37f89710d7)
  - site_page: https://www.mongodb.com/docs/atlas/architecture/current/solutions-library (fetched 2026-08-29T12:48:08.788765+00:00, sha 0dfd723aadd5)
  - site_page: https://www.mongodb.com/docs/atlas (fetched 2026-08-29T12:48:08.778573+00:00, sha f312e042649e)
  - site_page: https://www.mongodb.com/docs/manual (fetched 2026-08-29T12:48:08.782206+00:00, sha 6a4548d2a71b)
  - site_page: https://www.mongodb.com/docs/tools-and-connectors (fetched 2026-08-29T12:48:08.783958+00:00, sha 7c907d21d3d3)
  - site_page: https://www.mongodb.com/docs/drivers (fetched 2026-08-29T12:48:08.785801+00:00, sha 194534c44bc5)
  - site_page: https://www.mongodb.com/company/newsroom (fetched 2026-08-29T12:48:08.791730+00:00, sha e3f69e7b7c0c)
  - site_page: https://www.mongodb.com/company/partners (fetched 2026-08-29T12:48:08.794348+00:00, sha 342527daf5e8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
