mongo-c-driver

C driver library for MongoDB with command-line tools

brewmacoslinux
Try with needOr install directly
Source

About

C driver for MongoDB

Commands

mongoc-statmongoc-ping

Examples

Check MongoDB server connectivity and status$ mongoc-ping mongodb://localhost:27017
Display MongoDB server statistics$ mongoc-stat mongodb://localhost:27017
Use the driver in C code by including the header$ gcc -o app app.c $(pkg-config --cflags --libs libmongoc-1.0)