Run SQL queries against a CloudBeaver database connection from Dify agents and workflows.
This is a Dify tool plugin for CloudBeaver, a web-based database management tool. It lets you run SQL queries against
any database connected to your CloudBeaver server, directly from Dify agents and workflows.
Source code: https://github.com/daelynum/dify-plugin-cloudbeaver
Install the plugin from the Dify Marketplace, or upload the packaged file under Plugins -> Install
plugin -> Local Package File.
Note: only connections from the Shared project in CloudBeaver are supported.
Configure the plugin credentials once:
The plugin authenticates
with local access (username/password). The
CloudBeaver server must be reachable from wherever Dify runs.
Runs as a tool plugin on Dify Cloud and self-hosted CloudBeaver (Community, Enterprise, or AWS Edition).
Right-click a database in CloudBeaver's Database Navigator, select Open, and copy the ID from the connection
window (e.g. ).
The Default database field lets you specify which database or catalog to use when running SQL. Leave it empty to use the
connection's default. This helps when a single CloudBeaver connection has access to multiple databases and you want to
target a specific one.
The Where and Order by fields are applied on top of your SQL query:
String values in Where must be quoted, e.g. . Numbers go without quotes, e.g. .
The tool returns a JSON message:
Start CloudBeaver:
Configure authentication - follow
the Local Access Authentication guide. Create a
user (login/password) or use admin credentials.
Create a database connection - follow
the Create Connection guide.
Get the connection ID - open Database Navigator, right-click a database, select Open, and copy the connection ID.
In Dify: