Best for
- Scenarios wanting the smallest possible tool count and lowest context-window overhead for database access
- Cases needing to grant non-technical teammates safe, read-only database access
Officially maintained by Bytebase; the tool count is kept deliberately minimal at two, and the MCP Bundle's read-only default is friendly to non-technical users. The core risk is that execute_sql can run arbitrary SQL by default — pair it with a read-only account or guardrail flags. This review is a static check of source and docs, not an actual database connection test.
Officially maintained by Bytebase, the open-source database DevSecOps platform, this MCP server is built around a deliberately minimal design — "zero dependency, just two tools" — to save context window: one for executing SQL (with transaction support and safety controls), one for searching and exploring database schema. It supports PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite, can connect to multiple databases at once via TOML config, and offers read-only mode, row limiting, and query timeout guardrails.
1) Run directly via NPM: npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:pass@host:5432/db" (Node.js ≥ 22.5.0).
2) One-click bundle: download the .mcpb file from the GitHub release and drag it into an MCPB-compatible client like Claude Desktop — it runs locally over stdio and is read-only by default, good for non-technical teammates.
3) Claude Code users can register it with one command via the official plugin, which prompts interactively for the connection string.
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": ["-y", "@bytebase/dbhub", "--transport", "stdio"],
"env": {
"DSN": "postgres://user:password@localhost:5432/dbname?sslmode=disable"
}
}
}
}