dbhub
MCP✦ OfficialMCP server for querying Postgres, MySQL, SQL Server, MariaDB, and SQLite with a zero-dependency, token-efficient interface.
git clone https://github.com/bytebase/dbhub[!NOTE] Brought to you by Bytebase, open-source database governance platform.
DBHub is a minimal MCP server: token-efficient, zero-dependency, and just two tools by default with opt-in extras. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:
Minimal: Zero dependency, token efficient with a minimal set of MCP tools to maximize context window Multi-Database: PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through a single interface Multi-Connection: Connect to multiple databases simultaneously with TOML configuration Guardrails: Read-only mode, row limiting, and query timeout to prevent runaway operations Secure Access: SSH tunneling and SSL/TLS encryption
DBHub is the official example in the Claude Code docs for connecting to PostgreSQL via MCP.
- Source
- official
- Known advisories
- 0
- Maintenance
- active
- License
- MIT
- Age
- 17 months