
DBHub
If you're tired of bloated database tools eating your context window, this is the MCP server to check out. Built by the Bytebase team, it connects Claude to PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite with just two core tools: execute_sql for running queries with transaction support and search_objects for exploring schemas without dumping entire table definitions. You get read-only mode, row limits, query timeouts, and SSH tunneling out of the box. The TOML config lets you connect to multiple databases simultaneously, and there's a built-in web workbench for testing queries without spinning up an MCP client. Zero dependencies, token efficient by design, perfect for local development.
- GitHub stars
- 3.8K
- tools
- 4
- auth
- Secret needed
- transport
- STDIO
- env vars
- 17
- last updated
- Nov 11, 2026
Tools
4 toolsPublic tool metadata for what this MCP can expose to an agent.
execute_sqlExecute SQL queries with transaction support and safety controls
Execute SQL queries with transaction support and safety controls
No parameter schema in public metadata yet.
search_objectsSearch and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure
Search and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure
No parameter schema in public metadata yet.
explain_sqlShow a query's execution plan without running it
Show a query's execution plan without running it
No parameter schema in public metadata yet.
health_checkReport connection pool state and buffer cache hit ratio
Report connection pool state and buffer cache hit ratio
No parameter schema in public metadata yet.
Sponsors
Configuration
DSNsecretDatabase connection string (e.g., postgres://user:pass@host:5432/db)
DB_TYPEDatabase type: postgres, mysql, mariadb, sqlserver, oracle, sqlite
DB_HOSTDatabase hostname
DB_PORTDatabase port
DB_USERDatabase username
DB_PASSWORDsecretDatabase password
DB_NAMEDatabase name or SQLite file path
TRANSPORTTransport mode: stdio or http
PORTHTTP server port (default: 8080)
IDInstance identifier for tool names
SSH_HOSTSSH server hostname
SSH_PORTSSH server port (default: 22)
SSH_USERSSH username
SSH_PASSWORDsecretSSH password
SSH_KEYPath to SSH private key
SSH_PASSPHRASEsecretSSH key passphrase
SSH_AUTH_SOCKPath to SSH agent socket
Readme
[!NOTE]
If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.
Details
- Repository
- github.com/bytebase/dbhub
- Category
- Databases
- Package
@bytebase/dbhub- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active