DB

DBHub

Created 6 months ago

DBHub is a universal database gateway implementing the Model Context Protocol (MCP) server interface.

development documentation public

What is DBHub?

Universal database MCP server connecting to MySQL, MariaDB, PostgreSQL, and SQL Server.

Documentation

Installation# 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 --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

Usage

DBHub can be run in demo mode with a sample employee database for testing:

npx @bytebase/dbhub --demo

Server Config

{
  "mcpServers": {
    "dbhub-server": {
      "command": "npx",
      "args": [
        "dbhub"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: Yes
Official: Yes

Project Info

Hosted Featured
Created At: May 23, 2025
Updated At: Aug 07, 2025
Author: Bytebase
Category: community
License: MIT
Tags:
development documentation public