Choose from three quick start paths: Docker for containerized environments, npm for local development, or demo mode to try DBHub without a database.
Quick start paths
Choose your setup method
- Docker
- npm
- Demo mode
Perfect for containerized environments and production deployments.
Access the workbench
Once DBHub is running, open the built-in workbench in your browser:The workbench provides a visual interface for:
- Testing SQL queries with the
execute_sqltool - Exploring database schemas with the
search_objectstool - Running custom tools
- Viewing request traces and performance metrics
The workbench runs on HTTP transport (port 8080) regardless of your MCP transport setting.
Execute your first query
Use the execute_sql tool to run your first SQL query.
- Demo database
- Your database
Try these queries on the demo employee database:
List all employees
Find high earners
Current department managers
The
execute_sql tool supports multiple statements separated by semicolons and includes transaction support.Explore your schema
Use the search_objects tool to discover database structure without writing SQL.
Search patterns
Thesearch_objects tool supports SQL LIKE patterns:%matches any number of characters_matches exactly one character- Omit
patternto list all objects (defaults to%)
Object types
Search these database objects:schema- Database schemastable- Tables and viewscolumn- Table columnsindex- Table indexesprocedure- Stored proceduresfunction- Database functions
Connect to a real database
Ready to connect DBHub to your own database? Here are DSN examples for each database type:SSL/TLS connections
For production databases, enable SSL encryption:sslmode=disable- No SSL encryption (default, for development only)sslmode=require- SSL encryption without certificate verification
Configure for MCP clients
DBHub works with any MCP-compatible client. Here’s how to configure popular clients:- Claude Desktop
- Cursor
- VS Code
Add DBHub to your Claude Desktop configuration:
Claude Desktop uses stdio transport by default. Do not add
--transport http to the args.With demo mode
Next steps
Multi-database setup
Connect to multiple databases simultaneously with TOML configuration
SSH tunnels
Securely connect through bastion hosts with SSH tunneling
Custom tools
Define reusable SQL operations as parameterized MCP tools
Workbench
Learn about the built-in web interface and request tracing
execute_sql tool
Deep dive into SQL execution with transaction support
search_objects tool
Master progressive schema discovery with minimal tokens
Command-line options
Full reference of CLI arguments and configuration
Security best practices
Learn about read-only mode, row limits, and secure connections