Connect to Databases Universally
DBHub is a universal MCP server that connects MCP-compatible clients to PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite databases through a single interface
Why it matters
Unify access to diverse databases like PostgreSQL, MySQL, and SQL Server through a single, secure MCP interface. Streamline database operations and AI-driven insights.
Outcomes
What it gets done
Provide a universal gateway for multiple database types.
Enable secure database access with features like SSH tunneling and SSL/TLS.
Facilitate direct SQL execution and schema exploration.
Support AI-powered SQL generation and database explanations.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-dbhub | bash Capabilities
Tools your agent gets
Execute SQL queries against connected databases with transaction support and row limits.
Overview
DBHub MCP Server
What it does
a universal MCP server for connecting to PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite databases
How it connects
you need a single interface to access multiple database types with secure, production-ready features like read-only mode, SSH tunneling, and connection pooling
Source README
DBHub is a universal MCP server for databases that provides a single interface for connecting MCP-compatible clients to various database types, including PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite, with secure access and production-ready features.
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"
NPX
npx @bytebase/dbhub --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
Demo Mode
npx @bytebase/dbhub --transport http --port 8080 --demo
From Source
pnpm install
pnpm dev
# For production:
pnpm build
pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
Features
- Universal gateway: single interface for PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite
- Secure access: read-only mode, SSH tunneling, and SSL/TLS encryption support
- Multi-database: simultaneous connections to multiple databases with TOML-based configuration
- Production-ready: row limits, lock timeout control, and connection pooling
- Native MCP support: full Model Context Protocol implementation with resources, tools, and prompts
- Resources: database schema exploration (schemas, tables, indexes, procedures)
- Tools: SQL execution with transaction support
- Prompts: AI-powered SQL generation and database explanation
Notes
DBHub supports multi-database configuration using TOML files, which is ideal for managing production, testing, and development databases from a single instance. Full documentation is available at https://dbhub.ai/. Brought to you by the Bytebase team-an open-source platform for database DevSecOps.
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.