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.
Strongest · Setup experience 17/20 Weakest · Reliability 13/20
Test out of dateListed 2026-07-24
Read the FMRS scoring method →Runtime:Node.js 22.5.0+ · Docker
DSN
Database connection string (e.g., postgres://user:pass@host:5432/db), from your own database.
DB_PASSWORD
Database password, from your own database.
SSH_PASSWORD
SSH password, from your SSH server.
SSH_PASSPHRASE
SSH key passphrase.
DB_TYPE
Database type: postgres, mysql, mariadb, sqlserver, oracle, or sqlite.
DB_HOST
Database hostname.
DB_PORT
Database port.
DB_USER
Database username.
DB_NAME
Database name or SQLite file path.
TRANSPORT
Transport mode: stdio or http.
PORT
HTTP server port (default: 8080).
ID
Instance identifier used for tool names.
SSH_HOST
SSH tunnel server hostname.
SSH_PORT
SSH server port (default: 22).
SSH_USER
SSH username.
SSH_KEY
Path to SSH private key.
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"
}
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub",
"--transport",
"stdio"
],
"env": {
"DSN": "postgres://user:password@localhost:5432/dbname?sslmode=disable"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add dbhub -e 'DSN=postgres://user:password@localhost:5432/dbname?sslmode=disable' -- npx -y @bytebase/dbhub --transport stdio
Run it in a terminal; replace any <…> placeholders with your own values first.
The client's tool list should show execute_sql and search_objects; ask the AI to run search_objects for table names — if it returns schema results, the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Connect ClickHouse to your AI assistants
Unofficial MCP server providing advanced access to the ChEMBL chemical database
Google's official database MCP toolbox — define AI-accessible database tools via config
Connect Supabase to your AI assistants
Source revision 2dbf01af53e3 Data synced 2026-10-19 Read the FMRS scoring method