Installation
Testing on Mac (Apple Silicon), same as the other reviews in this series.
Tools
DBHub provides two built-in tools:| Tool | Purpose |
|---|---|
execute_sql | Execute SQL queries with transaction support, read-only mode, and row limiting |
search_objects | Search and explore schemas, tables, columns, procedures, and indexes |
Token Efficiency
Token efficiency is DBHub’s key design objective—it’s why we call it a “Minimal” Database MCP server. This matters for two reasons:- Longer sessions without compaction: Every token spent on tool definitions is a token unavailable for your actual work. Fewer tool tokens means more room for code, queries, and conversation history before hitting context limits.
- Lower cost: Most AI providers charge per token. Tool definitions are a tax on every session—they’re sent with each request regardless of whether you use them.
Minimized Tool Load
DBHub loads only 2 built-in tools with 1.4k tokens by default:execute_sql:
Progressive Disclosure
The built-insearch_objects tool supports progressive disclosure through detail_level:
names: Minimal output (just names and schemas)summary: Adds metadata (row counts, column counts)full: Complete structure with all columns and indexes
| Scenario | Traditional Approach | DBHub Approach |
|---|---|---|
| Find “users” table in 500 tables | List all tables with full schema | search_objects(pattern="users", detail_level="names") |
| Explore table structure | Separate tool calls for columns, indexes | search_objects(pattern="users", detail_level="full") |
| Find ID columns across database | Load all schemas first | search_objects(object_type="column", pattern="%_id") |
Guardrails
DBHub supports advanced settings via TOML configuration:-
Read-only mode: Keyword filtering to restrict SQL execution. This is a limitation—Supabase MCP guarantees read-only via a dedicated
supabase_read_only_user, while DBHub requires user discipline to supply a read-only database user for true guarantee. -
Row limiting: Prevent accidental large data retrieval with
max_rows. If your query already has aLIMITclause, DBHub uses the smaller value. -
Connection and query timeouts: Prevent runaway queries and connection hangs with
connection_timeoutandquery_timeoutsettings. -
SSH tunneling: Connect through bastion hosts for databases not exposed to the public internet. Supports ProxyJump for multi-hop connections and automatic
~/.ssh/configparsing.
Summary
DBHub is a minimal, vendor-neutral MCP server for relational databases with guardrails.The Good
-
Token efficient: A minimal default of 2 general tools (
execute_sql,search_objects). Tools can also be customized and cherry-picked via configuration. - Vendor neutral: Unlike Supabase MCP (Supabase-only) or MCP Toolbox (tilted toward Google Cloud), DBHub works with any deployment—cloud, on-premise, or local.
- Multi-database with consistent guardrails: Not limited to a single Postgres database, but we don’t expand beyond the database boundary either. This focus lets us provide consistent guardrails across all supported databases: read-only mode, row limits, connection/query timeouts.
The Bad
- No platform integration: MCP Toolbox integrates with Gemini and Google Cloud services. Supabase MCP connects to its hosted platform with OAuth. DBHub is standalone.
- No built-in authentication: Unlike MCP Toolbox’s Google auth support or Supabase’s OAuth, DBHub has no auth layer. You’ll need a reverse proxy or network security for multi-tenant scenarios.
Should You Use It?
If you work with standard relational databases (PostgreSQL, MySQL, SQL Server, MariaDB, SQLite) and want minimal token overhead with consistent guardrails, DBHub is a good fit. If you need integrated platform experience such as built-in authentication, look at Supabase MCP (for Supabase projects with OAuth) or MCP Toolbox (for Gemini and Google Cloud services).Postgres MCP Server Review Series:
- MCP Toolbox for Databases - Google’s multi-database MCP server with 40+ data source support
- Supabase MCP Server - Hosted MCP server for Supabase projects
- DBHub (this article) - Minimal, vendor-neutral MCP server for PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite