Skip to content
Cobalt Rentals

DBHub

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite.

DBHub is a minimal MCP server: token-efficient, zero-dependency, and just two tools by default with opt-in extras. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases.

Why DBHub

Built to stay out of your way

Token Efficiency

DBHub loads just 2 tools by default at 1.4k tokens — 13–14x fewer than alternatives — keeping the context window open for your actual work.

MCP ServerDefault ConfigDefault ToolsDBHub1.4k2 (execute_sql, search_objects)MCP Toolbox19.0k28Supabase MCP19.3kall

Use Cases

What people use DBHub for

MCP Tools

workbench

Built-in interface

Workbench

DBHub includes a built-in web interface for interacting with your database tools. It gives you a visual way to execute queries, run custom tools, and view request traces without needing an MCP client.

Installation

Get started with a single command:

npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

Also available as a Docker image, MCP Bundle (one-click install, read-only), and 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.

Development

Requires Node.js >= 22.5.0 (DBHub uses the built-in node:sqlite module).

# Install dependencies pnpm install # Run in development mode pnpm dev # Build and run for production pnpm build && pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

See Testing and Debug for more.

Stone house with patio chair overlooking tree-lined driveway and mountain valley at sunset

Need enterprise-level guardrails?

Visit Bytebase