npm
- npx
- Global Installation
Docker
- Docker Run
- Docker Compose
Client Integration
Once DBHub is installed and running, configure your MCP client to connect to it.Claude Code
- CLI
- Project Configuration
- User Configuration
- Stdio
- HTTP
For local database connections, use stdio transport:
The
-- separates Claude’s flags from DBHub’s arguments. Everything after -- is the DBHub command.Claude Desktop
- MacOS/Linux
- Windows
- Demo Mode
Edit
~/Library/Application Support/Claude/claude_desktop_config.json:~/Library/Application Support/Claude/claude_desktop_config.json
- Verify your DSN connection string is correct
- Check that the database is accessible from your machine
- Review Claude Desktop logs:
~/Library/Logs/Claude/mcp*.log(MacOS)
Cursor
- One-Click Install
- Stdio (Local)
- HTTP (Remote)
- Project-Specific
VS Code
VS Code has native MCP support through GitHub Copilot. Create.vscode/mcp.json in your project root:
- Stdio (Local)
- HTTP (Remote)
- Input Variables
- Config File
For local database connections, use stdio transport:
.vscode/mcp.json
Codex
- CLI
- TOML
- Verification
Dify
DBHub must be running as an HTTP server for Dify to connect. Start DBHub with HTTP transport:- 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.
- Agents: Tools appear alongside built-in tools, use “Add All” to enable all DBHub tools
- Workflows: Tools appear as available node types
- Dify only supports HTTP transport (not stdio)
- DBHub must be network-accessible from Dify
LibreChat
DBHub can be integrated with LibreChat using either stdio or Streamable HTTP transport.- stdio
- Streamable HTTP
librechat.yaml
librechat.yaml