MongoDB Spark Connector

The official MongoDB Spark Connector.



API Documentation


The binaries and dependency information for Maven, SBT, Ivy, and others can also be found on Maven Central.

Support / Feedback

For issues with, questions about, or feedback for the MongoDB Kafka Connector, please look into our support channels. Please do not email any of the Kafka connector developers directly with issues or questions - you're more likely to get an answer on the MongoDB Community Forums.

At a minimum, please include in your description the exact version of the driver that you are using. If you are having connectivity issues, it's often also useful to paste in the Kafka connector configuration. You should also check your application logs for any connectivity-related exceptions and post those as well.

Bugs / Feature Requests

Think you’ve found a bug? Want to see a new feature in the Kafka driver? Please open a case in our issue management tool, JIRA:

Bug reports in JIRA for the connector are public.

If you’ve identified a security vulnerability in a connector or any other MongoDB project, please report it according to the instructions here.


Note: The following instructions are intended for internal use.

Please see the downloading instructions for information on getting and using the MongoDB Spark Connector.

To build the connector:

$ git clone
$ cd mongo-spark
$ ./gradlew clean check