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. DBHub is a universal database
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 like PostgreSQL, MySQL, SQL Server, and SQLite. It supports database resources such as schemas, tables, indexes, and procedures, along with tools like query execution and connector listing.
DBHub offers prompt capabilities for SQL generation and database element explanation. Installation is available via Docker and NPM, with specific configurations for Claude Desktop and Cursor. It supports stdio
and sse
transports.
Configuration involves setting up database connections through command-line arguments, environment variables, or environment files, with DSN formats provided for each supported database. A demo mode with a sample employee database is also available.
For development, the repository provides instructions for installing dependencies, running in development mode, and building for production, including debugging with MCP Inspector.
bytebase/dbhub
March 9, 2025
March 28, 2025
TypeScript