Mongoc.jl is a MongoDB driver for the Julia Language.

It is implemented as a thin wrapper around libmongoc, the official client library for C applications.

Given that BSON is the document format for MongoDB, this package also implements a wrapper around libbson, which provides a way to create and manipulate BSON documents.


  • MongoDB 3.0 or newer.

  • Julia versions v1.5 or newer.

  • Linux, macOS, or Windows.


From a Julia session, run:

julia> using Pkg

julia> Pkg.add("Mongoc")

Source Code

The source code for this package is hosted at


The source code for the package Mongoc.jl is licensed under the MIT License.

This repository distributes binary assets built from mongo-c-driver source code, which is licensed under Apache-2.0.

Getting Help

If you're having any trouble, have any questions about this package or want to ask for a new feature, just open a new issue.


Contributions are always welcome!

To contribute, fork the project on GitHub and send a Pull Request.