Integrating Gumloop with PostgreSQL Data via CData Connect AI
Gumloop is a visual automation platform designed to create AI-powered workflows by combining triggers, AI nodes, APIs, and data connectors. By integrating Gumloop with CData Connect AI through the built-in MCP (Model Context Protocol) Server, workflows can seamlessly access and interact with live PostgreSQL data.
The platform provides a low-code environment, making it easier to orchestrate complex processes without heavy development effort. Its flexibility allows integration across multiple business applications, enabling end-to-end automation with live data.
This article outlines the steps required to configure PostgreSQL connectivity in Connect AI, register the MCP server in Gumloop, and build a workflow that queries PostgreSQL data.
Step 1: Configure PostgreSQL Connectivity for Gumloop
Connectivity to PostgreSQL from Gumloop is made possible through CData Connect AI's Remote MCP Server. To interact with PostgreSQL data from Gumloop, we start by creating and configuring a PostgreSQL connection in CData Connect AI.
- Log into Connect AI, click Sources, and then click Add Connection
- Select "PostgreSQL" from the Add Connection panel
-
Enter the necessary authentication properties to connect to PostgreSQL.
To connect to PostgreSQL, set the Server, Port (the default port is 5432), and Database connection properties and set the User and Password you wish to use to authenticate to the server. If the Database property is not specified, the data provider connects to the user's default database.
SSH Connectivity for PostgreSQL
You can use SSH (Secure Shell) to authenticate with PostgreSQL, whether the instance is hosted on-premises or in supported cloud environments. SSH authentication ensures that access is encrypted (as compared to direct network connections).
SSH Connections to PostgreSQL in Password Auth Mode
To connect to PostgreSQL via SSH in Password Auth mode, set the following connection properties:
- User: PostgreSQL User name
- Password: PostgreSQL Password
- Database: PostgreSQL database name
- Server: PostgreSQL Server name
- Port: PostgreSQL port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Password"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHPassword: SSH Password
SSH Connections to PostgreSQL in Public Key Auth Mode
To connect to PostgreSQL via SSH in Password Auth mode, set the following connection properties:
- User: PostgreSQL User name
- Password: PostgreSQL Password
- Database: PostgreSQL database name
- Server: PostgreSQL Server name
- Port: PostgreSQL port number like 3306
- UserSSH: "true"
- SSHAuthMode: "Public_Key"
- SSHPort: SSH Port number
- SSHServer: SSH Server name
- SSHUser: SSH User name
- SSHClientCret: the path for the public key certificate file
- Click Save & Test
-
Navigate to the Permissions tab in the Add PostgreSQL Connection page and update the User-based permissions.
Add a Personal Access Token
A Personal Access Token (PAT) is used to authenticate the connection to Connect AI from Gumloop. It is best practice to create a separate PAT for each service to maintain granularity of access.
- Click on the Gear icon () at the top right of the Connect AI app to open the settings page.
- On the Settings page, go to the Access Tokens section and click Create PAT.
-
Give the PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the PostgreSQL connection configured and a PAT generated, Gumloop is prepared to connect to PostgreSQL data through the CData MCP server.
Step 2: Connect to the MCP server in Gumloop
The MCP server endpoint and authentication values from Connect AI must be added to Gumloop credentials.
- Sign in to Gumloop and create an account
- Visit the Gumloop Credentials page to configure MCP server
- Click on Add Credentials and search and select MCP Server
- Provide the following details:
- URL: https://mcp.cloud.cdata.com/mcp
- Label: A descriptive name such as PostgreSQL-mcp-server
- Access Token / API Key: leave blank
- Additional Header: Authorization: Basic YOUR EMAIL:YOUR PAT
- Save the credentials
The MCP server is now available to build workflows in Gumloop.
Step 3: Build a workflow and explore live PostgreSQL data with Gumloop
- Visit Gumloop Personal workspace and click on the Create Flow
- Select the icon or press Ctrl + B to add a node or a subflow
- Search for Ask AI and select it
- Click Show More Options and enable the Connect MCP Server? option
- From the MCP Servers dropdown, choose the saved MCP credential
- Add a Prompt and Choose an AI Model according to your requirements
- After configuring the required details, Click Run to run the pipeline
With the workflow run completed, Gumloop demonstrates successful retrieval of PostgreSQL data through the CData Connect AI MCP server, with the MCP Client node providing the ability to ask questions, retrieve records, and perform actions on the data.
Get CData Connect AI
To get live data access to 300+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect AI today!