Model Context Protocol (MCP) finally gives AI models a way to access the business data needed to make them really useful at work. CData MCP Servers have the depth and performance to make sure AI has access to all of the answers.
Try them now for free →Enable the MongoDB JDBC Driver in KNIME
Use standard data access components in KNIME to create charts and reports with MongoDB data.
One of the strengths of the CData JDBC Driver for MongoDB is its cross-platform support, enabling integration with major BI tools. Follow the procedure below to access MongoDB data in KNIME and to create a chart from MongoDB data using the report designer.
About MongoDB Data Integration
Accessing and integrating live data from MongoDB has never been easier with CData. Customers rely on CData connectivity to:
- Access data from MongoDB 2.6 and above, ensuring broad usability across various MongoDB versions.
- Easily manage unstructured data thanks to flexible NoSQL (learn more here: Leading-Edge Drivers for NoSQL Integration).
- Leverage feature advantages over other NoSQL drivers and realize functional benefits when working with MongoDB data (learn more here: A Feature Comparison of Drivers for NoSQL).
MongoDB's flexibility means that it can be used as a transactional, operational, or analytical database. That means CData customers use our solutions to integrate their business data with MongoDB or integrate their MongoDB data with their data warehouse (or both). Customers also leverage our live connectivity options to analyze and report on MongoDB directly from their preferred tools, like Power BI and Tableau.
For more details on MongoDB use case and how CData enhances your MongoDB experience, check out our blog post: The Top 10 Real-World MongoDB Use Cases You Should Know in 2024.
Getting Started
Define a New JDBC Connection to MongoDB Data
- Go to File -> Preferences -> KNIME -> Databases
- Click Add File and add the cdata.jdbc.mongodb.jar. The driver JAR file is located in the lib subfolder of the installation directory.
- Click Find driver classes
- Set the ID and the Name of the connection (you can set any values you prefer for these fields as they are not restricted)
- Set the URL template. A typical JDBC URL is provided below:
jdbc:mongodb:Server=MyServer;Port=27017;Database=test;User=test;Password=Password;
- Click OK to close the configuration section.
- Under Node Repository go to DB -> Connection -> drag and drop DB Connector. Double-click on it and change the driver name to the driver you just configured, in this case, MongoDB (ID: MongoDB). The Database URL should change automatically.
- Click Apply and OK to save changes.
- Right-click on the connector and select Execute. You will see that the connector will allow you to redirect to the browser where you will need to log in and allow access. After that, you will get connected successfully.
-
Double-click on your DB Query Reader and click the refresh button to load the metadata. Create an SQL Statement and click Evaluate. After clicking Evaluate you will be able to see the records requested. To learn more about the tables/views that are listed in our driver please refer to our Data Model.
For assistance in constructing the JDBC URL, use the connection string designer built into the MongoDB data JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.mongodb.jar

Additionally, please refer to our documentation to learn more about Connection Properties
Now you can go to the Read/Write section in Node Repository and get a DB Query Reader, to be able to execute a query.
Get Started Today
Download a free, 30-day trial of the CData JDBC Driver for MongoDB and start building MongoDB-connected charts and reports with KNIME. Reach out to our Support Team if you have any questions.