1. Conduid
  2. Developer Tools
  3. DBHub
MCP server · Developer Tools

DBHub

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.

Unclaimed MIT last commit 6 months ago cursoraidataclaudeagentsdatabasecodexanthropicclaude-ai
97Excellent

Scored yesterday · breakdown

About DBHub

DBHub is an MCP server published by bytebase in the Developer Tools category: zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite. It has been installed 0 times through Conduid.

The repository has 2.2K stars and 186 forks, with the last commit 6 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx dbhub

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about DBHub

Powered by Claude · Grounded in docs

I know everything about DBHub. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.2.3v1.2.3 · 2 Sep 2026What's Changed fix(postgres): enforce query timeout on server by @rabberbock in https://github.com/bytebase/dbhub/pull/415 fix(postgres): return date/timestamp values verbatim instead of host-local Dates by @tianzhou in…
v1.2.2v1.2.2 · 1 Sep 2026What's Changed fix(sqlite): resolve TOML `database` paths instead of rewriting them by @darylmcd in https://github.com/bytebase/dbhub/pull/412 fix(frontend): make workbench Run work over non-localhost HTTP by @tianzhou in…
v1.2.1v1.2.1 · 21 Aug 2026What's Changed fix: split DSN credentials on the last @ of the authority by @DANze11 in https://github.com/bytebase/dbhub/pull/394 docs: replace deprecated --max-rows flag reference in execute_sql docs by @laserduor in…
v1.2.0v1.2.0 · 31 Jul 2026What's Changed fix(mysql): kill server-side query on timeout instead of leaking it into the pool by @tianzhou in https://github.com/bytebase/dbhub/pull/386 Fix: SQL Server max_rows not enforced across UNION/INTERSECT/EXCEPT by @tianzhou in…
v1.1.0v1.1.0 · 31 Jul 2026What's Changed fix: block SELECT-invocable escape-hatch functions in readonly mode (#377) by @tianzhou in https://github.com/bytebase/dbhub/pull/379 feat: add opt-in explain_sql tool by @tianzhou in…

README

[!NOTE]
Brought to you by Bytebase, open-source database DevSecOps platform.

            +------------------+    +--------------+    +------------------+
            |                  |    |              |    |                  |
            |                  |    |              |    |                  |
            |  Claude Desktop  +--->+              +--->+    PostgreSQL    |
            |                  |    |              |    |                  |
            |  Claude Code     +--->+              +--->+    SQL Server    |
            |                  |    |              |    |                  |
            |  Cursor          +--->+    DBHub     +--->+    SQLite        |
            |                  |    |              |    |                  |
            |  VS Code         +--->+              +--->+    MySQL         |
            |                  |    |              |    |                  |
            |  Copilot CLI     +--->+              +--->+    MariaDB       |
            |                  |    |              |    |                  |
            |                  |    |              |    |                  |
            +------------------+    +--------------+    +------------------+
                 MCP Clients           MCP Server             Databases

DBHub is a zero-dependency, token efficient MCP server implementing the Model Context Protocol (MCP) server interface. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:

  • Local Development First: Zero dependency, token efficient with just two MCP tools to maximize context window
  • Multi-Database: PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite through a single interface
  • Multi-Connection: Connect to multiple databases simultaneously with TOML configuration
  • Guardrails: Read-only mode, row limiting, and query timeout to prevent runaway operations
  • Secure Access: SSH tunneling and SSL/TLS encryption

Supported Databases

PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite.

MCP Tools

DBHub implements MCP tools for database operations:

  • execute_sql: Execute SQL queries with transaction support and safety controls
  • search_objects: Search and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure
  • Custom Tools: Define reusable, parameterized SQL operations in your dbhub.toml configuration file

Workbench

DBHub includes a built-in web interface for interacting with your database tools. It provides a visual way to execute queries, run custom tools, and view request traces without requiring an MCP client.

workbench

Installation

See the full Installation Guide for detailed instructions.

Quick Start

Docker:

docker run --rm --init \
   --name dbhub \
   --publish 8080:8080 \
   bytebase/dbhub \
   --transport http \
   --port 8080 \
   --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

NPM:

npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

Demo Mode:

npx @bytebase/dbhub@latest --transport http --port 8080 --demo

See Command-Line Options for all available parameters.

Multi-Database Setup

Connect to multiple databases simultaneously using TOML configuration files. Perfect for managing production, staging, and development databases from a single DBHub instance.

See Multi-Database Configuration for complete setup instructions.

Development

# Install dependencies
pnpm install

# Run in development mode
pnpm dev

# Build and run for production
pnpm build && pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

See Testing and Debug.

Contributors

Star History

README mirrored from the source repository yesterday. The original is authoritative.

Questions

About DBHub

How do I install DBHub?

Run npx dbhub, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is DBHub safe to use with an AI agent?

Its trust score is 97 out of 100 (excellent). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is DBHub still maintained?

Yes — the latest release is v1.2.3 (2 Sep 2026), and the last commit was 6 months ago. The repository has 2.2K stars and 0 open issues.