MCP Catalogs
Homedbhub screenshot

dbhub

by bytebase·2,769·Score 57

A zero-dependency MCP server connecting to multiple databases with token-efficient SQL tools.

databasedeveloper-toolsops-infra
235
Forks
10
Open issues
1 mo ago
Last commit
2d ago
Indexed

Overview

DBHub is a lightweight Model Context Protocol server that enables MCP-compatible clients to connect and interact with multiple database systems including PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite. It features a token-efficient design with only two core MCP tools (execute_sql and search_objects) to maximize context windows, along with guardrails like read-only mode, row limiting, and query timeouts to prevent runaway operations. The server also includes a built-in web interface for visual database interaction without requiring an MCP client.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Database exploration and schema inspection for developers
you:Secure SQL query execution with safety controls in CI/CD pipelines
you:Multi-database management and operations through a unified interface
you:Is DBHub truly zero-dependency?
you:How does DBHub ensure safe SQL execution?

When to choose this

Choose DBHub when you need token-efficient database access across multiple systems with built-in safety controls and prefer a zero-dependency installation.

When NOT to choose this

Don't choose DBHub if you need write access to databases or require complex transactional operations beyond its read-only capabilities.

Tools this server exposes

3 tools extracted from the README
  • execute_sql

    Execute SQL queries with transaction support and safety controls

  • search_objects

    Search and explore database schemas, tables, columns, indexes, and procedures

  • custom_tools

    Define reusable, parameterized SQL operations in configuration

Comparable tools

supabase-mcpneon-mcpsql-copilot-mcppostgres-mcp

Installation

Installation

**Docker:**

docker run --rm --init \   --name dbhub \   --publish 8080:8080 \   bytebase/dbhub \   --transport http \   --port 8080 \   --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable"

**NPM:**

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

**Demo Mode:**

npx @bytebase/dbhub@latest --transport http --port 8080 --demo

Claude Desktop Configuration

Add the following to your Claude Desktop configuration:

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": ["@bytebase/dbhub@latest", "--transport", "stdio"]
    }
  }
}

FAQ

Is DBHub truly zero-dependency?
Yes, DBHub has no runtime dependencies, making it lightweight and easy to deploy.
How does DBHub ensure safe SQL execution?
DBHub includes read-only mode, row limiting, and query timeout controls to prevent runaway operations and ensure safe SQL execution.

Compare dbhub with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.