DBHub is a universal database gateway that implements the MCP server interface so assistants and IDEs can explore and query databases through typed tools. It supports multiple transports—stdio for desktop clients and HTTP for networked scenarios—making it flexible to embed or deploy. Configuration is environment-variable driven, with a DSN and per-engine settings covering Postgres, MySQL, MariaDB, SQL Server, and SQLite. Operational flags include read-only mode, row limits, and even SSH tunneling options for secure access into private networks. A demo mode ships with an in-memory SQLite “employee” dataset so users can try the tools immediately without provisioning a database. The project lives in the Bytebase org alongside database DevSecOps tooling, underscoring a production focus on safe and auditable DB interaction.
Features
- MCP server for Postgres, MySQL, MariaDB, SQL Server, and SQLite
- stdio and HTTP transports for local and remote clients
- Read-only execution mode and row-limit controls
- SSH tunnel support for secure connectivity
- Demo dataset for instant evaluation
- Env-driven configuration and npx one-liner startup