Docs Menu
Docs Home
/ /

MongoDB Kotlin Driver

Welcome to the documentation site for the Kotlin Driver, the official MongoDB driver for server-side Kotlin applications that use coroutines. Download the driver by using Maven or Gradle, or set up a runnable project by following our Quick Start guide.

Tip

Other Kotlin Platforms for MongoDB

If your Kotlin application requires synchronous processing, use the Sync Driver, which uses synchronous operations to make blocking calls to MongoDB.

If you are developing an Android or Kotlin Multiplatform (KMP) application, you can use the MongoDB Atlas Device Kotlin SDK to access Atlas App Services and to manage your Realm data.

Learn how to establish a connection to MongoDB Atlas and begin working with data in the Quick Start section.

See driver syntax examples for common MongoDB commands in the Quick Reference section.

For fully runnable code snippets and explanations for common methods, see the Usage Examples section.

Learn how to perform the following tasks using the Kotlin driver in the Fundamentals section:

The MongoDB Kotlin driver API documentation contains several libraries organized by functionality. For detailed information about classes and methods in each library, see the following table for their descriptions and links to the API documentation.

Library
Description
BSON
Base BSON classes
Classes that support records
Shared core classes
API

For answers to commonly asked questions about the MongoDB Kotlin Driver, see the Frequently Asked Questions (FAQ) section.

For solutions to some issues you might experience when connecting to a MongoDB deployment while using the MongoDB Kotlin Driver, see the Connection Troubleshooting section.

Learn how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help in the Issues & Help section.

For the compatibility charts that show the recommended Kotlin Driver version for each MongoDB Server version, see the Compatibility section.

For a list of new features and changes in each version, see the What's New section.

Visit the Developer Hub to learn more about the MongoDB Kotlin driver.

The Developer Hub provides tutorials and social engagement for developers.

To learn how to use MongoDB features with the Kotlin driver, see the Kotlin Tutorials and Articles page, which features our Getting Started with the MongoDB Kotlin Driver developer tutorial.

To ask questions and engage in discussions with fellow developers using the Kotlin Driver, visit the MongoDB Developer Community.

Kotlin Driver Quick Start →