MongoDB JDBC Driver Download

Download the MongoDb JDBC driver, copy the JDBC URL into DbSchema, and start designing schemas with ER diagrams — free Community Edition.

Connect MongoDb in DbSchema Install the driver, open a connection, reverse engineer your schema, and sync changes visually.

About the MongoDb JDBC driver

A JDBC driver is a Java .jar library that lets applications connect to MongoDb. DbSchema uses JDBC to reverse engineer schemas, run SQL, and generate documentation. Driver files are usually published by the database vendor or an open-source project.

JDBC URL format

Host, port, database name, and SSL options are passed in a URL starting with jdbc:. Each MongoDb driver uses its own syntax — see the connection details below.

The MongoDb JDBC driver

MongoDB is the most popular document-oriented database, storing data as flexible JSON-like BSON documents instead of rows in tables. It is widely used for content management, real-time analytics, IoT, and applications that need schema flexibility.

We open source our JDBC driver for MongoDb. DbSchema features for MongoDb are described here. The driver source code is accessible on GitHub.

The driver binaries can be downloaded as zip file, which you should uncompress.

Download MongoDB JDBC Driver

Download the zip, unpack and include the jar files in your classpath. The driver is compatible with Java 11.

For accessing the driver source code please visit the GitHub repository:

Driver Source Code

The driver is written on top of the native MongoDb Java driver.

The driver URL is the same as in the MongoDb documentation.
Example:

mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]

The URL allows connecting to multiple databases. In DbSchema you can set this by choosing 'Custom URL' in the connection editor and entering the URL as string. For URL details check the MongoDb documentation.

MongoDB Atlas

Create an account by MongoDb Atlas and login. There you have an option to connect which will provide the URI. In the DbSchema Connection Dialog use manual URL configuration. On the same connection page you have also a link to change a user password in the database.

Mongo-Atlas

DbSchema and MongoDB

DbSchema displays MongoDB collections and their inferred schemas as interactive diagrams, even without a fixed schema. Use the Relational Data Explorer to browse documents and navigate embedded sub-documents, and the Query Builder to compose MongoDB-compatible SELECT queries via the JDBC interface.

Test the driver with DbSchema

Connect MongoDb, build your first ER diagram in minutes. No account required.

1
Download driver & DbSchema

Get the MongoDb driver zip below and install DbSchema for Windows, macOS, or Linux.

2
Register the .jar

In DbSchema, open Driver Manager, add the extracted JAR, and paste your JDBC URL.

3
Design & document

Reverse engineer MongoDb, edit the model visually, and publish schema documentation.

Use MongoDb visually in DbSchema

After the JDBC driver connects, you get ER diagrams, SQL editor, schema sync, and HTML documentation in one desktop app. Compare DbSchema editions.

ER diagrams

Reverse engineer MongoDb into an interactive diagram and edit structures visually.

SQL & query builder

Run SQL with autocomplete or compose queries without writing every join by hand.

Schema documentation

Export HTML docs your team can browse without installing DbSchema.

Full MongoDb guide

Connection tips, ports, SSL, and schema design workflows on the database landing page.

Setup guides

JDBC driver FAQ

DbSchema maintains an open-source MongoDB JDBC driver. Source and releases are on GitHub.

Copy the Atlas connection string and paste it as a custom JDBC URL in the DbSchema connection dialog.

Standard MongoDB connection strings documented at mongodb.com — mongodb:// or mongodb+srv://.

Other drivers teams often configure alongside MongoDb.

Browse all JDBC driver downloads

Teams working with MongoDb often use these engines too. Explore dedicated guides and JDBC setup for each.

Browse all 100+ supported databases