About Dbhub
DBHub is a minimal Model Context Protocol server that lets AI coding assistants and chat clients connect to and explore relational databases. It sits between MCP clients such as Claude Desktop, Claude Code, Cursor and VS Code and databases including PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite, giving the assistant a controlled way to inspect schemas and run queries.
It is designed for developers who want database access inside an assistant without consuming much of the context window. By default it loads only two tools, execute_sql and search_objects, which the documentation puts at about 1.4k tokens, with optional extras for showing a query plan without running it and reporting connection pool health. Use cases on the site include schema exploration and query validation during local development, curated read only views for non technical staff, consolidating several database servers into one process, and read only diagnostics in production. A single process can hold multiple connections defined in TOML, and guardrails include read only mode, row limits and query timeouts, with SSH tunneling and SSL or TLS encryption for secure access. A built in web workbench lets users run queries, custom tools and request traces without an MCP client.
DBHub is published as a free open source project in the Bytebase GitHub organization. There is no pricing page and no paid tier for DBHub itself.
The project points teams that need approval flows, access control, data masking and audit logging toward Bytebase, the company's commercial database platform.