$ timeahead.in
/ servers/npm/@bytebase/dbhub
npm

@bytebase/dbhub

Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

3k stars9k/wkupdated 2d agogithub ↗
77fair
▣ Overview

What it does

DBHub is a lightweight MCP server that connects MCP-compatible clients (Claude Desktop, Claude Code, Cursor, VS Code, Copilot CLI) to PostgreSQL, MySQL, SQL Server, SQLite, and MariaDB databases. It exposes two core tools—execute_sql and search_objects—optimized for token efficiency, plus custom SQL operations defined via TOML configuration. The server enforces safety guardrails including read-only mode, row limits, and query timeouts to prevent runaway operations. It supports SSH tunneling and TLS encryption for secure remote access and includes a web workbench interface for manual query execution and debugging.

Who it's for

Backend engineers who want Claude to query and explore database schemas during development and debugging. Database administrators managing multiple environments (dev, staging, prod) through a single query gateway. Development teams integrating AI-assisted SQL generation into their workflows while maintaining safety constraints.

Common use cases

  • Query a PostgreSQL database from Claude Code while designing or validating schema migrations
  • Explore database schemas from Claude to generate accurate, context-aware SQL without manual introspection
  • Define custom parameterized SQL operations in TOML and invoke them as reusable tools without writing raw SQL
  • Connect to multiple databases simultaneously (dev, staging, production) and run read-only diagnostic queries
  • Debug production issues by letting Claude inspect schemas and suggest fixes based on live data

Setup pitfalls

  • Requires Node.js ≥ 22.5.0 for NPM installation; Docker is recommended if your environment is older
  • The HTTP transport defaults to --host 0.0.0.0, exposing the server on all interfaces; production deployments must bind to 127.0.0.1 and front with a reverse proxy, as DBHub does not authenticate HTTP clients
  • Database credentials in .env or TOML config must be excluded from version control—two secrets were found in the codebase during scanning
  • CI is not passing; verify the latest release is stable in your environment before deploying to production
2 credentials detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
60
21.0
Freshness
25%
100
25.0
Adoption
20%
82
16.4
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
77.4
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "bytebasedbhub": {
      "command": "npx",
      "args": [
        "-y",
        "@bytebase/dbhub"
      ]
    }
  }
}
📈 Score historylast 33 snapshots
4/30/20266/11/2026 · 33 snapshots
⚙ Maintenance health
24/ 100 · is this project alive?
contributors (1y)20
top contributor share92%
releases (1y)0
ci⚠ failing
⛁ Raw data
weekly downloads9k
github stars3k
forks246
open issues5
license✓ present
readme length5539 chars
last publish0d ago
last commit2d ago
last updated3d ago
install verified✗ fail · 24d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points