dbhub
A zero-dependency, high-performance MCP server for databases with support for multiple database systems.
- Type
- MCP
- Transport
- http
- Open source
- Yes
- GitHub Stars
- ★ 3.0k
- Source
- mcp-github
- Repository
- github.com/bytebase/dbhub
Overview
DBHub is a zero-dependency, high-performance MCP server implementing the Model Context Protocol (MCP) server interface. This lightweight gateway enables MCP-compatible clients to connect and explore various databases. It supports PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite, offering features such as multi-database connections and read-write protection. DBHub can be installed via Docker or NPM, making it ideal for AI applications requiring database operation capabilities.
Capabilities
- ▪Execute SQL queries
- ▪Search database objects
- ▪Define custom SQL operations
- ▪Multi-database connection
- ▪Read-write protection
Use cases
Setup
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"`
This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.
FAQ
Which databases does DBHub support?
PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite.
How do I configure multi-database connections?
Use a TOML configuration file for multi-database setup.
Related skills
OpenMetadata
OpenMetadata is an open data context layer that provides trustworthy data context and business semantics for AI.
XHS-Downloader
A link extraction and content collection tool for Xiaohongshu, supporting multiple download and information extraction features.
radiology-skills
A full-stack skill package for medical imaging research, covering the entire process from topic selection to grant application.
dbx
Lightweight cross-platform database management tool supporting over 70 databases.
nihaixia
A Chinese medicine AI capability developed based on Dr. Ni Haixia's teaching materials, covering Six-Channel Differentiation and classic formula selection.
powerbi-modeling-mcp
Power BI Modeling MCP Server provides AI agents with Power BI semantic modeling capabilities.