Connecting to MongoDB: A Guide to Using Language Drivers

Learn how to seamlessly integrate MongoDB into your applications using official language drivers. Explore the supported drivers and discover the benefits of using them for efficient and convenient MongoDB interactions. This guide will equip you with the knowledge to choose the right driver for your programming language and leverage its capabilities.



While the MongoDB Shell (mongosh) is useful for interacting with MongoDB, you often need to integrate MongoDB into your applications. MongoDB provides official language drivers for this purpose.

Supported Drivers

The following drivers are officially supported and allow you to interact with MongoDB using various programming languages:

  • C
  • C++
  • C#
  • Go
  • Java
  • Node.js
  • PHP
  • Python
  • Ruby
  • Rust
  • Scala
  • Swift