Back to integrations

MongoDB and Postgres integration

Save yourself the work of writing custom integrations for MongoDB and Postgres and use n8n instead. Build adaptable and scalable Development, Data & Storage, workflows that work with your technology stack. All within a building experience you will love.

MongoDB
Postgres

How to connect MongoDB and Postgres

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

MongoDB and Postgres integration: Create a new workflow and add the first step

Build your own MongoDB and Postgres integration

Create custom MongoDB and Postgres workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

MongoDB supported actions

Postgres supported actions

Other integrations with MongoDB

MongoDBGoogle SheetsMongoDBSlackMongoDBTelegramMongoDBMySQL

Other integrations with Postgres

PostgresGoogle SheetsPostgresSlackPostgresTelegramPostgresSalesforce
FAQs

FAQ

Can MongoDB connect with Postgres?

Can I use MongoDB’s API with n8n?

Can I use Postgres’s API with n8n?

Is n8n secure for integrating MongoDB and Postgres?

How to get started with MongoDB and Postgres integration in n8n.io?

Need help setting up your MongoDB and Postgres integration?

Discover our latest community's recommendations and join the discussions about MongoDB and Postgres integration.

MongoDB update / find and update running but not working for me

João Textor

Describe the problem/error/question I have a workflow in which I use MongoDB Find to get all entries in my collection. I Edit one of the fields using “Edit Fields”, and then I iterate a loop to Update that field on Mongo…

Ai Agent parsing issue with mongodb tool

Manas Gupta

Describe the problem/error/question Hi Folks, I am learning n8n flows. I stuck to store the object in the mongodb through ai agent tool. What is the error message (if any)? There is no error message but the output is no…

Postgres node IN operator with parameters

Mikhail Savenkov

Describe the problem/error/question Postgres node is not working with IN Operator when the parameters is an Array. I suppose that’s because of the sanity checks. E.g. I have a list of some workflows that I’m returning v…

Passing an array as query parameter in Postgresql

Honza Pav

Hello, I have a follow-up question related to a topic that has been discussed but is closed: Postgres use array as a query parameters I want to pass an array into a Postgresql query as a query parameter. Ideally, I woul…

Issue with AI Agent not reading full PostgreSQL data

CrizCJK

Hello everyone, I’m running into an issue with PostgreSQL in n8n that I can’t figure out. My PostgreSQL database has about 20,000 records of sales and stock data. The problem is that my AI Agent doesn’t seem to read th…

Looking to integrate MongoDB and Postgres in your company?

The world's most popular workflow automation platform for technical teams including

Why use n8n to integrate MongoDB with Postgres

Build complex workflows, really fast