Prerequisites
DBHub must be running as an HTTP server for Dify to connect. Start DBHub with HTTP transport:Configuration
- In Dify, navigate to Tools → MCP
- Click Add MCP Server (HTTP)
-
Configure the server:
- Server URL:
http://localhost:8080/mcp(or your DBHub host) - Name:
DBHub - Server Identifier:
dbhub(permanent, max 24 characters)
- Server URL:
- Click save. Dify will automatically discover DBHub’s tools.
Using DBHub Tools
Once connected, DBHub tools are available in:- Agents: Tools appear alongside built-in tools, use “Add All” to enable all DBHub tools
- Workflows: Tools appear as available node types
Multi-Database Setup
For multiple databases, use a config file:Demo Mode
For testing, use the built-in demo database:Limitations
- Dify only supports HTTP transport (not stdio)
- DBHub must be network-accessible from Dify