Connect Kafka to MongoDB

Simplify and speed up your Kafka to MongoDB sink with a Kafka compatible connector via Lenses UI/ CLI, Native plugin or Helm charts for Kubernetes deployments

Kafka to MongoDB

About the MongoDB to Kafka connector

License Apache 2.0

The Mongo Sink allows you to write events from Kafka to MongoDB.

The connector converts the value from the Kafka Connect SinkRecords to a MongoDB Document and will do an insert or upsert depending on the configuration you choose.

The database should be created upfront; the targeted MongoDB collections will be created if they don’t exist.

Connector options for Kafka to MongoDB sink

Connect Kafka to MongoDB in a box

Test the deployment & management of the Connector through Lenses Box.

This is a single-broker Kafka with Lenses in a docker.

Try now in a pre-configured docker

Manage and push data from Kafka to MongoDB with Lenses

Manage the deployment & management of MongoDB and other Kafka connectors through Lenses.

Create account

Download just the Kafka to MongoDB connector from GitHub

Manage the deployment of the connector through their standard process.

Try now in git

Connector benefits

  • Flexible Deployment
  • Powerful Integration Syntax
  • Monitoring & Alerting
  • Integrate with your GitOps

Why use Lenses.io to sink Kafka to MongoDB?

This connector saves you from learning terminal commands and endless back-and-forths sinking to MongoDB from Kafka by managing the MongoDB stream reactor connector (and all your other connectors on your Kafka Connect Cluster) through Lenses.io, which lets you freely monitor, process and deploy data with the following features:

  • Error handling
  • Fine-grained permissions
  • Data observability
Kafka to Mongodb

How to push data from Kafka to MongoDB

  1. Launch the stack by copying the docker-compose file
  2. Prepare the target system by creating the MongoDB container
  3. Start the connector by logging into Lenses.io, navigating to the Connectors page and selecting MongoDB as the sink

Share this connector

Experience all features in a single instance always free for developers

Pull docker free