DBHub

DBHub

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

1,627
Stars
141
Forks
0
Releases

Overview

DBHub is a universal Database Model Context Protocol (MCP) server that acts as a gateway between MCP-compatible clients and diverse databases. It implements the MCP server interface, allowing clients to discover, inspect, and operate across multiple backends through a single connection point. DBHub supports PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite, providing a consistent view of schemas, tables, indexes, and procedures. The MCP Components deliver core capabilities: Resources for database schema exploration (schemas, tables, indexes, procedures), Tools for executing SQL with transaction support, and Prompts for AI-assisted SQL generation and database explanations. The project also highlights a Multi-Database Setup, allowing simultaneous connections to multiple databases via TOML configuration files, simplifying management of production, staging, and development environments. Deployment is straightforward via Docker or NPM, with demo mode and configurable server options. As a gateway, DBHub pairs MCP clients (for example Claude Desktop, Cursor, and VS Code) with multiple databases, exposing them through a unified, queryable MCP interface.

Details

Owner
bytebase
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Resources: Database schema exploration

Provides MCP Resources to explore schemas, tables, indexes, and procedures.

Tools: SQL execution with transaction support

Allows executing SQL with transactional control through MCP Tools.

Prompts: AI-assisted SQL generation and database explanation

Delivers prompts for AI-generated SQL and explanations of database concepts.

Multi-database gateway

Connects to PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite from a single MCP gateway.

MCP server interface compliance

Implements the MCP server interface to support MCP-compatible clients.

Docker deployment

Docker-based quick start to run DBHub with HTTP transport.

NPM deployment

NPM-based quick start to run DBHub with HTTP transport.

Multi-database configuration

Supports multi-database setup using TOML configuration files.

Tags

MCPDBHubuniversal MCP serverdatabase gatewayschema explorationSQL executionAI-assisted SQLmulti-databasePostgreSQLMySQLSQL ServerMariaDBSQLiteDockerNPMMCP clients