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.
unstract
LLM-based tool for extracting structured data from unstructured documents, supporting API deployment and ETL workflows.
FinanceToolkit
Transparent and efficient financial analysis tool supporting various financial products and metrics.
deeplake
Deeplake is a data runtime designed for AI agents, offering a serverless multimodal data lake.
skills
Provides real-time market data and options analytics for AI agents.