# DBHub MCP server

> Query and explore Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite databases through one token-efficient MCP server.

- Listing: https://mcp.tc/i/dbhub
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: API key
- Category: [Databases & Backend](https://mcp.tc/c/databases)
- Vendor: Bytebase
- Homepage: <https://dbhub.ai>
- Repository: <https://github.com/bytebase/dbhub>
- Package: npm `@bytebase/dbhub`

## About

DBHub connects MCP clients such as Claude Desktop, Claude Code, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite. It exposes two tools by default, one for running SQL and one for searching schemas, tables, columns, indexes and procedures. Explain and health check tools are opt-in. Read-only mode, row limits and query timeouts guard against runaway queries, and SSH tunneling and SSL/TLS are supported.

It runs locally with npx over stdio, or over HTTP with the transport option. Docker, an MCP Bundle and a Claude Code plugin are also available. No sign-in is needed. You supply a database connection string (DSN) or a dbhub.toml file to connect several databases at once. Node.js 22.5 or newer is required.

## What it can do

- Run SQL queries with transaction support and safety controls
- Search schemas, tables, columns, indexes and procedures
- Show query execution plans without running them (opt-in)
- Check connection pool state and cache hit ratio (opt-in)
- Connect to several databases at once with a TOML config
- Define reusable parameterized SQL tools in dbhub.toml
- Use read-only mode, row limits and query timeouts
- Reach databases through SSH tunnels and SSL/TLS

## Example prompts

- "List all tables in my Postgres database and describe the orders table."
- "Run a read-only query to count signups per day for the last week."
- "Show the execution plan for this SELECT statement."
- "Find columns named email across all schemas."

## Install

### Any client

We don’t have a verified install command for this server yet. Its own instructions are the place to start.

Package: `@bytebase/dbhub` on NPM.

[Open the setup instructions](<https://github.com/bytebase/dbhub>) (opens github.com)

## Details

- Server version: 1.4.0
- Last checked: 2026-10-03
- Listed: 2026-10-03
- Updated: 2026-10-03

---
Source: https://mcp.tc/i/dbhub (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
