bytebase/dbhub
About
Provides a universal database gateway for connecting to PostgreSQL, MySQL, SQLite, and DuckDB, enabling table browsing, schema inspection, and read-only SQL queries with built-in safety checks
Details
- Author
- bytebase
- Repository
- bytebase/dbhub
- GitHub stars
- 247
- Downloads
- 14,081
- License
- MIT License
- Categories
- Database, Community, Other, Design, Developer Tools, AI, Knowledge Base, Infrastructure
- Tags
- #web
Jump to
- Zero dependency and token efficient with only two MCP tools
- Multi-database support: PostgreSQL, MySQL, MariaDB, SQL Server, SQLite
- Multi-connection configuration via TOML files
- Guardrails: read-only mode, row limiting, query timeout
- Secure access: SSH tunneling and SSL/TLS encryption
- Built-in web interface (Workbench) for query execution and tracing
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
bytebase/dbhubCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"
Also available as:
- Docker image
- MCP Bundle (one-click install, read-only)
- Claude Code plugin
See the Installation Guide for all options, Command-Line Options for parameters, and Multi-Database Configuration for connecting several databases at once.
pnpm install
execute_sql
Execute SQL queries with transaction support and safety controls.
search_objects
Search and explore database schemas, tables, columns, indexes, and procedures with progressive disclosure.
explain_sql
Show a query's execution plan without running it.
health_check
Report connection pool state and buffer cache hit ratio.
Custom Tools
Define reusable, parameterized SQL operations in your dbhub.toml configuration file.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"bytebase/dbhub": {
"command": "npx",
"args": [
"-y",
"@highlight/mcp-server"
],
"env": {}
}
}
}
Macos
{
"command": "npx",
"args": [
"-y",
"@highlight/mcp-server"
],
"env": []
}
Windows
{
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"env": "$2a:props:children:props:children:props:mcp:inferred_config:macos:env"
}
Linux
{
"command": "npx",
"args": "$2a:props:children:props:children:props:mcp:inferred_config:macos:args",
"env": "$2a:props:children:props:children:props:mcp:inferred_config:macos:env"
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





