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

@bytebase/dbhub

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

3k stars22k/wkupdated 1d agogithub ↗
71fair
▣ Overview

What it does

DBHub is a lightweight MCP gateway connecting Claude and other MCP clients to multiple databases—PostgreSQL, MySQL, SQL Server, SQLite, and MariaDB—through a single interface. Built for zero dependencies and token efficiency, it exposes two core tools: execute_sql for querying with transaction support, and search_objects for exploring schemas, tables, columns, and indexes. Custom SQL operations can be defined as reusable tools via TOML configuration. The server includes safety guardrails (read-only mode, row limits, query timeouts) and network security (SSH tunneling, SSL/TLS). It also ships with a built-in web workbench for visual query execution and debugging outside an MCP client.

Who it's for

Backend engineers and database administrators who need Claude or other MCP clients to query development, staging, or production databases for analysis, schema exploration, and troubleshooting. Teams managing multiple databases across environments that want a unified gateway rather than database-specific connectors.

Common use cases

  • Execute ad-hoc SQL queries on a local PostgreSQL replica from Claude Code to inspect data and schema
  • Search and visualize database schemas to understand table relationships before designing migrations
  • Connect Claude to production databases in read-only mode to generate reports or debug data anomalies
  • Manage connections to multiple databases (dev, staging, prod) from a single DBHub instance
  • Define parameterized SQL operations as custom tools in TOML configuration for reusable database tasks

Setup pitfalls

  • Two secrets found in the codebase—ensure database credentials and connection strings are stored in environment variables or .env files, never committed to version control
  • HTTP transport defaults to 0.0.0.0 (all network interfaces); for production, bind to 127.0.0.1 and front with a reverse proxy or firewall, as DBHub does not authenticate HTTP clients
  • Requires Node.js ≥ 22.5.0 for NPM installation due to the use of node:sqlite; older versions will fail
  • Multi-database TOML configuration requires careful DSN syntax and path setup; refer to the installation guide to avoid connection failures
3 credentials detected in repository history via Gitleaks
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
40
14.0
Freshness
25%
100
25.0
Adoption
20%
84
16.7
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
70.7
⚿ 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 49 snapshots
4/30/20267/21/2026 · 49 snapshots
⚙ Maintenance health
55/ 100 · is this project alive?
contributors (1y)19
top contributor share93%
releases (1y)3
last release1d ago
median issue response3.4d
ci⚠ failing
⛁ Raw data
weekly downloads22k
github stars3k
forks276
open issues4
license✓ present
readme length5539 chars
last publish0d ago
last commit1d ago
last updated7d ago
install verified✗ fail · 68d 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