dbhub

Installation
SKILL.md

DBHub Database Query Guide

When working with databases through DBHub's MCP server, always follow the explore-then-query pattern. Jumping straight to SQL without understanding the schema is the most common mistake — it leads to failed queries, wasted tokens, and frustrated users.

Available Tools

DBHub provides two MCP tools by default, plus opt-in ones:

Tool Purpose
search_objects Explore database structure — schemas, tables, columns, indexes, procedures, functions
execute_sql Run SQL statements against the database
explain_sql (opt-in) Show a query's execution plan without running it — only present if the source's config enables it
health_check (opt-in) Report connection pool state and buffer cache hit ratio — only present if the source's config enables it; PostgreSQL, MySQL, MariaDB, SQL Server, and Oracle only

If multiple databases are configured, DBHub registers separate tools for each source (for example, search_objects_prod_pg, execute_sql_staging_mysql). Select the desired database by calling the correspondingly named tool.

If explain_sql is available (check the tool list), prefer it over guessing whether a query will be efficient — it's always safe to call, even against a write-enabled or read-only source, since it never executes the statement.

Installs
700
Repository
bytebase/dbhub
GitHub Stars
3.9K
First Seen
Mar 5, 2026