Server facts
DBHub MCP Server
GitHub stars
3,668
Last commit
Oct 13, 2026
Runtime
node
License
MIT
Project
- Author
- bytebase
- Repository
- github.com/bytebase/dbhub
- Website
- dbhub.ai
- License
- MIT
- Category
- Databases
Tech
- Runtime
- node
- Transports
- stdio
- Remote access
- No
Activity
- GitHub stars
- 3,668
- Last commit
- Data as of
Tags
- Database Workbench
- Multi Connection
- Query Controls
- Schema Discovery
- Sql
Overview
DBHub can be used from an assistant or directly through its browser workbench. The workbench runs database queries and configured custom operations, and lets users inspect request traces without connecting an MCP client. On the MCP side, the built-in interface concentrates work into two tools: SQL execution with transaction handling, and object discovery that reveals detail progressively. The latter covers schemas and the objects within them, including procedures, indexes, columns, and tables. Parameterized operations can also be defined as reusable custom tools in dbhub.toml. A single instance can hold multiple connections through TOML configuration, including connections to different database engines.
The supported engines are SQLite and SQL Server alongside MariaDB, PostgreSQL, and MySQL. Execution controls include query deadlines, limits on returned rows, and a read-only setting; encrypted connections and SSH tunnels are also supported. Deployment security is a separate concern from query safeguards. HTTP clients receive no authentication from DBHub itself, and its default listener binds across all interfaces. The README therefore advises restricting the listener to loopback and using a firewall or reverse proxy for production access. Host-header checks help resist DNS rebinding, with explicitly allowed names available for custom domains. Startup examples cover Docker, npm, and demo operation. The npm path needs at least Node.js 22.5.0 because DBHub relies on the runtime's SQLite module.
Install & configure
Requirements
- npm launch: Node.js version 22.5.0 or above
- MCP client for tool calls, or a browser for workbench interaction
npx @bytebase/dbhub@latest --transport http --host 127.0.0.1 --port 8080 --demoThe arguments exactly follow the loopback demo example. Actual database connections use the documented --dsn example or TOML setup. Demo mode is not a configured connection to your database. Before exposing real data over HTTP, account for the lack of built-in client authentication.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| search_objects | Explore database structure, revealing object details progressively rather than returning everything immediately. |
| execute_sql | Submit SQL with transaction support and the server's execution controls. |
Use cases
- Inspect database objects incrementally before asking an assistant to write SQL.
- Configure reusable parameterized queries instead of repeating SQL for routine operations.
- Keep several database connections behind one TOML-configured instance.
- Review query behavior and request traces through the web workbench.
Strengths
- Separates SQL execution from discovery using only two built-in tool identifiers.
- Includes an interactive workbench that does not depend on an MCP host.
- Combines connection options with configurable restrictions on query execution.
Limitations
- Network clients are not authenticated by the HTTP server.
- The default HTTP listener is broader than loopback; exposure needs deliberate configuration.
- npm execution depends on a relatively recent Node.js runtime, starting at 22.5.0.
DBHub setup notes
- DBHub records stdio only; confirm a network transport upstream before planning remote access.