Docs Menu

Docs HomeMongoDB Atlas

Connect from JDBC Driver

On this page

  • Prerequisites
  • Procedure

This page describes how to install and configure the MongoDB JDBC Driver for connecting to a federated database instance. The JDBC driver is a .jar file that you can download and use from a BI tool or integrate into a Java project.

  • A federated database instance mapped to one or more data stores.


    If some or all of your data comes from an Atlas cluster, you must use MongoDB version 5.0 or greater for that cluster to take advantage of Atlas SQL.

  • An application or BI tool that you want to connect to your federated database instance with the JDBC driver.

  • The MongoDB JDBC Driver.

You can use the JDBC driver to connect a Java application like a Maven project, or downloaded and installed in a visualization tool like Tableau or DBeaver.


If you want to use Atlas SQL from Tableau, see Connect from Tableau.

If you want to follow a tutorial that connects the MongoDB JDBC Driver to DBeaver (Community Edition), see Get Started.

Download the latest MongoDB JDBC Driver version.


To connect with the Atlas SQL interface, you must do the following:

  • Use MongoDB JDBC driver version 2.0.0 or later.

  • Download the all.jar file, which includes necessary driver classes and dependencies.


To connect with your Maven application:

  1. Click on the JDBC driver version in the JDBC Driver download page to open the JDBC Driver page for that version.

  2. Click the copy icon in the Apache Maven on the right-hand side to copy the dependency.

    For example:

    Image highlighting JDBC Driver Maven dependency
Image highlighting Maven dependency
←  ConnectConnect from DBeaver →
Share Feedback
© 2023 MongoDB, Inc.


  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2023 MongoDB, Inc.