DBHub
A minimal, token-efficient MCP server for Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite.
Sources and review
Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.
Pointing an agent at one or more SQL databases with minimal tool overhead and sensible limits.
About DBHub
DBHub from Bytebase is a zero-dependency MCP gateway that exposes just two tools by default, keeping context usage low, with opt-in extras. It connects to several databases at once through TOML configuration and adds guardrails: read-only mode, row limits and query timeouts, plus SSH tunnelling and TLS. A built-in workbench is included.
DBHub is an open-source project written primarily in TypeScript, with 3.6k stars on GitHub. It was last updated in September 2026.
Add DBHub to your MCP client
Generated from the launch command in the project's README. Your client starts the server on demand.
Claude Code
claude mcp add dbhub -- npx @bytebase/dbhub@latest --transport stdio --dsn postgres://user:password@localhost:5432/dbnameCursor
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"@bytebase/dbhub@latest",
"--transport",
"stdio",
"--dsn",
"postgres://user:password@localhost:5432/dbname"
]
}
}
}VS Code
{
"servers": {
"dbhub": {
"type": "stdio",
"command": "npx",
"args": [
"@bytebase/dbhub@latest",
"--transport",
"stdio",
"--dsn",
"postgres://user:password@localhost:5432/dbname"
]
}
}
}Claude Desktop
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"@bytebase/dbhub@latest",
"--transport",
"stdio",
"--dsn",
"postgres://user:password@localhost:5432/dbname"
]
}
}
}Codex
[mcp_servers.dbhub]
command = "npx"
args = ["@bytebase/dbhub@latest", "--transport", "stdio", "--dsn", "postgres://user:password@localhost:5432/dbname"]DBHub vs. the alternatives
All 163 alternatives →| Record | Stars | Pricing | ||
|---|---|---|---|---|
| DBHubthis listing | 3.6k | TypeScript | MIT | Open source |
| MCP Reference Servers | 91k | TypeScript | MIT AND Apache-2.0 | Open source |
| context7 | 62k | TypeScript | MIT | Open source |
| chrome-devtools-mcp | 53k | TypeScript | Apache-2.0 | Open source |
| Playwright MCP | 37k | TypeScript | Apache-2.0 | Open source |
| github-mcp-server | 33k | Go | MIT | Open source |
