Universal database gateway for Model Context Protocol (MCP) clients
Top 36.7% on sourcepulse
DBHub is a universal database gateway that implements the Model Context Protocol (MCP) server interface, enabling MCP-compatible clients to connect to and explore various databases. It targets developers and AI agents needing unified access to diverse data sources, simplifying database interaction and data exploration.
How It Works
DBHub acts as a proxy, translating MCP requests into database-specific queries. It supports multiple transport protocols, including stdio
for direct integration with tools like Claude Desktop and sse
for network clients. This dual transport approach offers flexibility for different integration scenarios. The project provides specific Docker images and npm packages for easy deployment and usage.
Quick Start & Requirements
docker run --rm --init --name dbhub --publish 8080:8080 bytebase/dbhub --transport sse --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
npx @bytebase/dbhub --transport sse --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
docker run --rm --init --name dbhub --publish 8080:8080 bytebase/dbhub --transport sse --port 8080 --demo
or npx @bytebase/dbhub --transport sse --port 8080 --demo
ORACLE_LIB_DIR
.Highlighted Details
Maintenance & Community
The project is maintained by Bytebase. Contributors are listed in the README.
Licensing & Compatibility
The project appears to be under the Apache License 2.0. Compatibility for commercial use is generally permissive under this license.
Limitations & Caveats
Oracle connections may require using the bytebase/dbhub-oracle-thick
Docker image or installing Oracle Instant Client for older versions or specific configurations. The stdio
transport is primarily for desktop applications.
1 week ago
1 day