Plugins and integrationsReviewed · bytebase

DBHub: minimal multi-database MCP server (Bytebase)

DBHub is an open-source MCP server from Bytebase that lets AI clients such as Claude Code, Cursor and VS Code explore and query PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite databases, and it suits developers and teams who want one lightweight connector; the main catch is that it gives an AI direct database access, and this README does not show which safety limits are on by default. It exposes two tools by default (execute_sql and search_objects), with explain_sql, health_check and custom parameterised tools as opt-ins. It can run through npx, Docker, an MCP Bundle or a Claude Code plugin, and it has a built-in web workbench.

Researched 13 Nov 2026

In short.

DBHub is an open-source (MIT) MCP server from Bytebase that lets AI clients such as Claude Desktop, Claude Code, Cursor, VS Code and Copilot CLI explore and query PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite databases through one gateway. It is aimed at developers and teams who want database access inside an AI assistant. The main catch is that it gives an AI live access to a database, and this README does not make clear which guardrails are on by default. It ships two tools by default (execute_sql and search_objects), with explain_sql, health_check and custom parameterised SQL tools as opt-ins. It can connect to several databases at once from a TOML file. It lists guardrails (read-only mode, row limiting, query timeout) and secure access (SSH tunnelling, SSL/TLS). It also has a web workbench that the README says works without an MCP client. The token-efficiency figures and comparisons in the README are the project's own claims. Nothing was executed for this report, and only the README and the licence notice were read.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is the single file README.md in bytebase/dbhub ([https://github.com/bytebase/dbhub/blob/main/README.md]) at revision cc9e3c7ad36b9fafd333a08d455781f2c5b548ee, captured on 2026-11-13, together with the repository's root LICENSE (MIT, copyright 2025 Bytebase) as the licence notice. Excluded and not reviewed: the project documentation at [https://dbhub.ai/]; the source code, tests, releases and changelog; the Docker image, MCP Bundle and Claude Code plugin; the workbench; linked images; the Claude Code docs page; and third-party dependency licences. Nothing was installed, executed or tested. Statements about behaviour, token counts and comparisons come from the README and are unverified. The following are unknown from this evidence: costs beyond the free-of-charge licence grant, default guardrail settings, HTTP authentication, how AI clients handle query results, the terms of the recommended Bytebase offering, the release version and maintenance activity.

The overview

Identity

DBHub is an MCP (Model Context Protocol) server published by Bytebase in the GitHub repository bytebase/dbhub. The README describes it as a minimal gateway that lets MCP-compatible clients connect to and explore databases. The clients it names are Claude Desktop, Claude Code, Cursor, VS Code and Copilot CLI. The databases it names are PostgreSQL, SQL Server, Oracle, SQLite, MySQL and MariaDB.

The reviewed file is the repository README at revision cc9e3c7ad36b9fafd333a08d455781f2c5b548ee, captured on 2026-11-13. The MIT LICENSE file at the same revision (copyright 2025 Bytebase) was read as the licence notice. The README links to a project site at [https://dbhub.ai/] with fuller documentation. That site was outside the reviewed scope.

Assessment

On the README alone, DBHub looks like a focused, real tool rather than a stub. It names its tools, supported databases, install routes, configuration approach, guardrails, workbench and development commands. Its selling point is a small tool surface that leaves more of the AI client's context window free, rather than a large catalogue of database-specific tools.

This assessment is based on documentation only. Nothing was installed or run. No source code, tests or releases were read, the linked documentation site was not read, and no behaviour was verified. The README's performance and comparison claims (token counts, 'zero dependency', 'official example in the Claude Code docs') are the project's own statements, and none were checked independently here.

The central risk comes with the design: it connects an AI to a database. The README lists guardrails, but this file does not say how to turn them on, which ones are on by default, or how the HTTP transport is protected. Until the project documentation confirms those points, treat it as a tool for a careful trial against a non-production database or a read-only setup.

Users

The README lists four use cases. The first is local development: schema exploration, query validation and data debugging with Claude Code, VS Code, Cursor and similar tools. The second is non-technical access: exposing curated, read-only views to non-technical staff through Claude Desktop, VS Code or Cursor. The third is multi-database consolidation: replacing a separate MCP server for each database with one DBHub process. The fourth is production troubleshooting: read-only diagnostics with guardrails against runaway queries.

It fits developers and data-minded teams who use an MCP-capable AI client and want it to look at real schemas and data. An MCP client is needed for that AI-client route. The README also describes a built-in web workbench for running queries and custom tools and viewing request traces without an MCP client. Either way, users need connection details for a supported database.

For enterprise needs such as approval flow, access control, data masking and audit logging, which the README says go beyond what DBHub offers, the README recommends Bytebase. It describes Bytebase as an enterprise-level database MCP server with built-in guardrails. The captured evidence does not show Bytebase's commercial terms or pricing.

Capabilities

Default tools: execute_sql runs SQL queries with transaction support and safety controls. search_objects searches and explores schemas, tables, columns, indexes and procedures with progressive disclosure, meaning it shows detail step by step rather than all at once.

Opt-in tools: explain_sql shows a query's execution plan without running it. health_check reports connection pool state and buffer cache hit ratio. Custom tools are reusable, parameterised SQL operations defined in a dbhub.toml configuration file.

Other stated features: multi-connection support lets you connect several databases at once through TOML configuration. The guardrails are read-only mode, row limiting and query timeout. Secure access means SSH tunnelling and SSL/TLS. A built-in web workbench lets you run queries, run custom tools and view request traces without an MCP client.

Token efficiency: the README claims the default configuration loads two tools at about 1.4k tokens. It lists 19.0k for MCP Toolbox (28 tools) and 19.3k for Supabase MCP. These are the project's own figures, and the README does not say how they were measured.

Using it

Requirements

To use DBHub from an AI client you need an MCP-capable client. The README also describes a built-in web workbench that works without an MCP client. Either way you need a database DBHub supports (PostgreSQL, MySQL, MariaDB, SQL Server, Oracle or SQLite) and connection details for it. The quick-start uses a DSN (a connection string).

The README's Development section says Node.js 22.5.0 or newer is required, because DBHub uses the built-in node:sqlite module. Because that statement sits under Development, the README does not say whether the same minimum applies when running through npx. Docker, the MCP Bundle and the Claude Code plugin are listed as other install routes, so Node may not be needed for those. This was not verified.

Building from source uses pnpm. You are responsible for network access, credentials, database permissions, SSH or TLS settings and any AI client account. The README does not describe operating-system or hardware requirements.

Mechanism

DBHub sits between MCP clients and databases. The README diagram shows clients such as Claude Desktop, Claude Code, Cursor, VS Code and Copilot CLI connecting to a single DBHub process, which connects to the databases. The client's AI model calls DBHub's MCP tools, and DBHub turns those calls into database operations over the connection you set up.

The README names two transports: stdio (in the source-build example) and http (in the npx example, with a port). You give connection details as a DSN on the command line, or in a TOML file for multiple databases. The command-line options and TOML format are documented on the project site, which was not reviewed, so exact option names are not covered here.

The README does not say how the guardrails are implemented, for example whether read-only mode is enforced by parsing SQL or by the database session. This report does not assume either.

Setup

The README's quick start is a single npx command that starts DBHub over HTTP on port 8080 with a PostgreSQL DSN: npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable". The user, password, host and database name are placeholders. The sslmode=disable setting in the example turns off TLS. That is reasonable for a local test but not for a remote database.

Other routes named in the README are a Docker image ([https://dbhub.ai/installation#docker]), an MCP Bundle for one-click install that the README says is read-only ([https://dbhub.ai/mcpb]), and a Claude Code plugin ([https://dbhub.ai/claude-code-plugin]). Full options are at [https://dbhub.ai/installation], [https://dbhub.ai/config/command-line] and [https://dbhub.ai/config/toml].

To build from source, the README gives pnpm install, pnpm dev, and pnpm build && pnpm start --transport stdio --dsn followed by a connection string.

Open points: the README does not say how to register DBHub in each client, what URL path a client should use for the HTTP transport, or whether the HTTP endpoint requires authentication. Because the command uses @latest, each run may fetch a different version, so pin a version if you need repeatable behaviour. A password in a command-line DSN may be visible to other users of the machine through process listings, so check the project docs for safer ways to supply credentials.

Example

The README's concrete examples are commands. One is the npx installation command shown under Setup. The others are the development commands: pnpm install, pnpm dev, and pnpm build && pnpm start with a stdio transport and a DSN. The captured text contains no sample query conversation and no text output from a query. The README also embeds a workbench image. That image was not examined, so whether it shows a query is not known.

The following illustration shows how the documented tools would fit together. It was not run or tested. A developer starts DBHub against a local PostgreSQL database and connects Claude Code or Cursor to it. They ask the assistant to list the columns in the orders table. The assistant would be expected to call search_objects, which the README says searches and explores schemas, tables, columns, indexes and procedures. They might then ask it to check a query, and the assistant would call execute_sql. If explain_sql had been turned on, it could show the execution plan without running the statement. The README does not give the exact tool parameters or responses, so check real behaviour in the tool documentation, for example [https://dbhub.ai/tools/search-objects] and [https://dbhub.ai/tools/execute-sql].

Assessment & evidence

Limitations

Supported databases are limited to the six the README names. The README does say what the built-in web workbench and the opt-in tools do. The workbench lets you execute queries, run custom tools and view request traces without an MCP client. explain_sql shows a query's execution plan without running it, and health_check reports connection pool state and buffer cache hit ratio. What the README does not document is how to turn on the opt-in tools, how to start, reach or configure the workbench, or any operational limits for these features. Those details are not in the reviewed file.

The README does not state which guardrails are on by default or how to turn on read-only mode, row limits or timeouts. It also does not say whether HTTP mode has authentication, how permissions map to the database account, or how SQL is classified as read or write. It describes the execute_sql tool as running SQL 'with transaction support and safety controls', but does not say whether write statements are allowed by default. Until this is confirmed, use a database account with only the privileges you are willing to give an AI.

The README says its guardrails do not cover enterprise needs such as approval flow, access control, data masking and audit logging, and points to Bytebase for those. It makes no claim about protecting sensitive data from the AI model or the client. For AI-client use, check the client's data handling; whether results reach an external model provider is unknown from this README. The README says the built-in workbench works without an MCP client, which makes it a separate route, but it does not describe the workbench's own data handling or access protection.

Evidence limits: no code was read or run, no benchmark was reproduced, and the claim that DBHub is the official example in the Claude Code docs was not checked against those docs.

Reasoning

DBHub is classed as a plugin or integration because AI clients load it and call its tools. It is not a standalone chat or coding assistant, a skill or an agent definition. Its documented purpose, giving AI assistants structured access to databases, sits squarely within generative-AI and software-development work.

The case for it rests on the README's specific design: few default tools, a stated token footprint, support for multiple databases in one process, and named guardrails. The case for caution is that every claim comes from the project's own README. The default safety settings are unclear, and an AI-driven SQL tool can read or change real data. This report therefore treats it as worth evaluating with limited privileges, not as proven safe or fast.

Alternatives

The README names two alternatives for comparison. MCP Toolbox is listed with 28 default tools at about 19.0k tokens, and Supabase MCP at about 19.3k tokens. These are the DBHub project's own figures and were not checked. The README also says DBHub can replace separate MCP servers for each database, so per-database MCP servers are another option. For enterprise needs (approval flow, access control, data masking, audit logging), the README recommends Bytebase ([https://www.bytebase.com/]), which it describes as an enterprise-level database MCP server. Beyond that note, its features were not reviewed, and its terms and pricing are unknown from the captured evidence.

The evidence does not discuss other approaches, such as pasting a schema into a prompt by hand or using a database client's built-in AI features, so they are not assessed here.

Evidence

Two captured files support this report, both from revision cc9e3c7ad36b9fafd333a08d455781f2c5b548ee. The README (7153 bytes) was captured from [https://raw.githubusercontent.com/bytebase/dbhub/cc9e3c7ad36b9fafd333a08d455781f2c5b548ee/README.md]. The selected source address is [https://github.com/bytebase/dbhub/blob/main/README.md]. The README documents DBHub's purpose, supported clients and databases, default and opt-in tools, guardrail and secure-access features, the workbench, install routes, the Node.js requirement for development, use cases and the token comparison table. It also contains the note pointing to Bytebase for enterprise guardrails.

The LICENSE (1065 bytes) was captured from [https://raw.githubusercontent.com/bytebase/dbhub/cc9e3c7ad36b9fafd333a08d455781f2c5b548ee/LICENSE]. It documents the MIT terms and the 2025 Bytebase copyright.

These files leave several things unknown: default guardrail settings and how they are enforced, whether the HTTP transport has authentication, how any AI client or model provider handles query results, the commercial status, terms and pricing of the recommended Bytebase offering, the release version and maintenance activity, and how the token figures were measured. None of the README's links were retrieved: the documentation at [https://dbhub.ai/], the Claude Code docs, the Bytebase site and the images. Statements about what the tools would do in practice are inferences from the README's one-line tool descriptions, not observed behaviour.

Access & freshness

Costs

The README states no price. The MIT licence grants permission 'free of charge', so the evidence shows no licence fee for DBHub itself. That does not cover every cost.

These costs are not covered by the evidence and remain unknown: any AI client or model subscription or API usage needed for the AI-client route, hosting for the database or for a long-running DBHub process, any managed service, and the terms and pricing of the Bytebase enterprise database MCP offering the README recommends for enterprise guardrails. Tool definitions take up context tokens. The README gives about 1.4k tokens for the default setup, which is the project's own figure. The actual cost depends on your client and model, which the README does not specify.

Rights

The repository's LICENSE file is the standard MIT licence, with 'Copyright (c) 2025 Bytebase'. It permits using, copying, modifying, merging, publishing, distributing, sublicensing and selling copies of the software. The condition is that the copyright notice and permission notice are included in all copies or substantial portions. The software is provided 'as is', with no warranty and no liability for the authors.

The licence file is the repository's root licence. This report did not review per-file headers, third-party dependency licences, trademarks, or the licences of the images and logos the README links to. The README uses the DBHub and Bytebase names. The MIT text does not mention trademarks, and the evidence does not show who holds trademark rights or on what terms.

Freshness

The evidence was captured on 2026-11-13 at commit cc9e3c7ad36b9fafd333a08d455781f2c5b548ee. The README gives no version number, release date or changelog, so the age of the described features and the current release are unknown. The quick-start uses @latest, so what you install may differ from what this README describes. The README's logo and workbench images point to the main branch, which can change over time.

The README shows a 'GitHub Trending Repository of the Day' badge and a star-history chart. These are popularity signals on the project's own page, not a measure of maintenance or quality, and their dates are unknown.

Actions

Before trying it: read the install, command-line and TOML pages at [https://dbhub.ai/] to confirm the default guardrails and how to set read-only mode, row limits and timeouts. Check whether the HTTP transport needs authentication. If it does not, bind it to localhost or protect it another way.

When trying it: start with a local or disposable database, and use a database account with the fewest privileges you need (read-only for exploration). Pin a version instead of @latest if you need repeatable results. Avoid putting real passwords on the command line where others can see them, and use a configuration file or environment-based method if the docs support one. For AI-client use, check the client's data handling; whether results reach an external model provider is unknown from this README. If you use the built-in workbench instead, which the README says works without an MCP client, check in the docs how it is reached and protected, because this README does not say.

For production data or regulated environments, decide whether DBHub's stated guardrails are enough, or whether you need the approval, masking and audit features the README says are outside its scope. If context size matters to you, check the token-efficiency claim in your own client.

Evidence for this report

LICENSEnotice · checked 2026-11-13
README.mdselected · checked 2026-11-13