Docs Menu

Docs HomeDevelop ApplicationsC DriversC Driver

MongoDB C Driver

On this page

  • Introduction
  • Compatibility

Welcome to the documentation site for the official MongoDB C driver. You can add the driver to your application to work with MongoDB in C. Download the required libraries, libmongoc and libbson, by following the Obtaining the MongoDB C Driver Libraries instructions or set up a runnable project by following our tutorial.

  • Tutorial

  • Usage Guide

  • MongoDB Developer Center

  • API Reference

  • Changelog

  • Source Code

  • Examples

  • Additional BSON Examples

The compatibility table in this section specifies the recommended version or versions of the MongoDB C driver for use with a specific version of MongoDB.

The first column lists the driver version.

Important

MongoDB ensures compatibility between the MongoDB Server and the drivers for three years after the server version's end of life (EOL) date. To learn more about the MongoDB release and EOL dates, see MongoDB Software Lifecycle Schedules.

Icon
Explanation
All features are supported.
The Driver version will work with the MongoDB version, but not all new MongoDB features are supported.
No mark
The Driver version is not tested with the MongoDB version.
C Driver Version
MongoDB 7.0
MongoDB 6.0
MongoDB 5.0
MongoDB 4.4
MongoDB 4.2
MongoDB 4.0
MongoDB 3.6
MongoDB 3.4
MongoDB 3.2
MongoDB 3.0
MongoDB 2.6
1.26
1.25
1.24
1.23
1.22
1.21
1.20
1.19
1.18
[1]
1.17
1.16
1.15
1.14
1.13
1.12
1.11
1.10
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
[1] The 1.18 driver does not support snapshot reads on secondaries. For more information, see the MongoDB Server version 5.0 release notes.

The driver does not support older versions of MongoDB.

The following compatibility table specifies the recommended version(s) of the MongoDB C driver for use with a specific version of C.

The first column lists the driver version(s).

C Driver Version
C17/C18
C11
C99
C89
1.26
1.25
1.24
<= 1.23

For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.

libbson →