bytebase avatar

DBHub

bytebase/dbhub

If you're tired of bloated database tools eating your context window, this is the MCP server to check out. Built by the Bytebase team, it connects Claude to PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite with just two core tools: execute_sql for running queries with transaction support and search_objects for exploring schemas without dumping entire table definitions. You get read-only mode, row limits, query timeouts, and SSH tunneling out of the box. The TOML config lets you connect to multiple databases simultaneously, and there's a built-in web workbench for testing queries without spinning up an MCP client. Zero dependencies, token efficient by design, perfect for local development.

GitHub stars
3.8K
tools
4
auth
Secret needed
transport
STDIO
env vars
17
last updated
Nov 11, 2026

Tools

4 tools

Public tool metadata for what this MCP can expose to an agent.

execute_sqlExecute SQL queries with transaction support and safety controls

Execute SQL queries with transaction support and safety controls

No parameter schema in public metadata yet.

search_objectsSearch and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure

Search and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure

No parameter schema in public metadata yet.

explain_sqlShow a query's execution plan without running it

Show a query's execution plan without running it

No parameter schema in public metadata yet.

health_checkReport connection pool state and buffer cache hit ratio

Report connection pool state and buffer cache hit ratio

No parameter schema in public metadata yet.

Sponsors

Configuration

DSNsecret

Database connection string (e.g., postgres://user:pass@host:5432/db)

DB_TYPE

Database type: postgres, mysql, mariadb, sqlserver, oracle, sqlite

DB_HOST

Database hostname

DB_PORT

Database port

DB_USER

Database username

DB_PASSWORDsecret

Database password

DB_NAME

Database name or SQLite file path

TRANSPORT

Transport mode: stdio or http

PORT

HTTP server port (default: 8080)

ID

Instance identifier for tool names

SSH_HOST

SSH server hostname

SSH_PORT

SSH server port (default: 22)

SSH_USER

SSH username

SSH_PASSWORDsecret

SSH password

SSH_KEY

Path to SSH private key

SSH_PASSPHRASEsecret

SSH key passphrase

SSH_AUTH_SOCK

Path to SSH agent socket

Readme

[!NOTE]
If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

GitHub Trending Repository of the Day


View the full README on GitHub

Details

Repository
github.com/bytebase/dbhub
Category
Databases
Package
@bytebase/dbhub
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Related Databases MCP servers

View all
1runekaagaard avatarMCP Alchemy Serverrunekaagaard/mcp-alchemyA MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, an403stars
2faucetdb avatarFaucetfaucetdb/faucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.170stars
3hypequery avatarhypequery ClickHousehypequery/hypequeryGoverned ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL.104stars
4enessari avatarMetabase Ai Assistantenessari/metabase-ai-assistantMCP Server for Metabase - 111 tools for SQL generation, dashboards & PostgreSQL43stars
5verygoodplugins avatarMCP Local WPverygoodplugins/mcp-local-wpWordPress database access via Local by Flywheel. Execute read-only MySQL queries and inspect schema.34stars
6haymon-ai avatarDbmcphaymon-ai/dbmcpDatabase MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-prevention0stars