
DBHub MCP Server
by bytebaseio.github.bytebase/dbhubv1.5.0
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
context tax
not measurable
security
97/100
cold start
pending
freshness
Active28d ago
Our reading of DBHub, from the data
DBHub is a database MCP server from bytebase, listed in the official MCP Registry.
We haven't measured its tool list yet, so its token cost is unknown.
Maintenance is active: the last public signal was 28 days ago (2026-10-13). For comparison, 63% of database servers are active or maintained.
With 3,675 GitHub stars it ranks #8 of 1,397 database servers we index.
It runs locally on your machine over stdio and needs 4 secrets (DSN, DB_PASSWORD, SSH_PASSWORD, …); use a scoped, least-privilege key.
Install DBHub MCP server
Install in Claude Code
claude mcp add dbhub -e DSN='<dsn>' -e DB_PASSWORD='<db-password>' -e SSH_PASSWORD='<ssh-password>' -e SSH_PASSPHRASE='<ssh-passphrase>' -- npx -y @bytebase/dbhubInstall in Cursor
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<dsn>",
"DB_PASSWORD": "<db-password>",
"SSH_PASSWORD": "<ssh-password>",
"SSH_PASSPHRASE": "<ssh-passphrase>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<dsn>",
"DB_PASSWORD": "<db-password>",
"SSH_PASSWORD": "<ssh-password>",
"SSH_PASSPHRASE": "<ssh-passphrase>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"dbhub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<dsn>",
"DB_PASSWORD": "<db-password>",
"SSH_PASSWORD": "<ssh-password>",
"SSH_PASSPHRASE": "<ssh-passphrase>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<dsn>",
"DB_PASSWORD": "<db-password>",
"SSH_PASSWORD": "<ssh-password>",
"SSH_PASSPHRASE": "<ssh-passphrase>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @bytebase/dbhub
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DSN | — | yes | Database connection string (e.g., postgres://user:pass@host:5432/db) |
| DB_TYPE | — | — | Database type: postgres, mysql, mariadb, sqlserver, oracle, sqlite |
| DB_HOST | — | — | Database hostname |
| DB_PORT | — | — | Database port |
| DB_USER | — | — | Database username |
| DB_PASSWORD | — | yes | Database password |
| DB_NAME | — | — | Database name or SQLite file path |
| TRANSPORT | — | — | Transport mode: stdio or http |
| PORT | — | — | HTTP server port (default: 8080) |
| ID | — | — | Instance identifier for tool names |
| SSH_HOST | — | — | SSH server hostname |
| SSH_PORT | — | — | SSH server port (default: 22) |
| SSH_USER | — | — | SSH username |
| SSH_PASSWORD | — | yes | SSH password |
| SSH_KEY | — | — | Path to SSH private key |
| SSH_PASSPHRASE | — | yes | SSH key passphrase |
| SSH_AUTH_SOCK | — | — | Path to SSH agent socket |
Security signals
97/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
- No security policy (SECURITY.md)-3
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ○Package metadata (install scripts, provenance) — pending
- ○Tool descriptions (prompt-injection and hidden-text heuristics) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 28d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-13 · 28d ago · GitHub
Latest release
2026-10-09 · 32d ago · GitHub · v1.5.0
Package published
no data · npm/PyPI
Registry entry updated
2026-10-09 · 32d ago · official registry · v1.5.0
How it compares in Database
Against the most-starred database servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| DBHub (this) | 3,675 | — | not measured | Active | local |
| Screenpipe | 21,982 | — | not measured | Active | — |
| Genai Toolbox | 16,679 | — | not measured | Active | hosted |
| Convex Backend | 12,716 | — | not measured | Active | — |
| Kubeshark | 12,100 | — | not measured | Active | local |
| Baserow | 6,174 | — | not measured | Active | — |
FAQ
›How do I install the DBHub MCP server in Claude Code?
Run: claude mcp add dbhub -e DSN='<dsn>' -e DB_PASSWORD='<db-password>' -e SSH_PASSWORD='<ssh-password>' -e SSH_PASSPHRASE='<ssh-passphrase>' -- npx -y @bytebase/dbhub. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does DBHub require an API key?
Yes. It expects DSN, DB_PASSWORD, SSH_PASSWORD, SSH_PASSPHRASE, of which 4 are secrets.
›Can I use DBHub as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is DBHub in the official MCP registry?
Yes, as io.github.bytebase/dbhub.
Sources and method
- Official MCP Registry entry
- updated 2026-10-09
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Security signals, computed by us
- 2026-10-19
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to DBHub
Other database MCP servers.