Skip to content
Agent Search Engine.

Record · dbhubMCP serverOpen sourceVerified Sep 23, 2026

DBHub

A minimal, token-efficient MCP server for Postgres, MySQL, MariaDB, SQL Server, Oracle and SQLite.

Sources and review

Checked against public documentation on . Suitability guidance is our editorial judgment; this is not a performance benchmark or an endorsement.

Best for

Pointing an agent at one or more SQL databases with minimal tool overhead and sensible limits.

About DBHub

DBHub from Bytebase is a zero-dependency MCP gateway that exposes just two tools by default, keeping context usage low, with opt-in extras. It connects to several databases at once through TOML configuration and adds guardrails: read-only mode, row limits and query timeouts, plus SSH tunnelling and TLS. A built-in workbench is included.

DBHub is an open-source project written primarily in TypeScript, with 3.6k stars on GitHub. It was last updated in September 2026.

Add DBHub to your MCP client

Generated from the launch command in the project's README. Your client starts the server on demand.

Claude CodeRun in your terminal
claude mcp add dbhub -- npx @bytebase/dbhub@latest --transport stdio --dsn postgres://user:password@localhost:5432/dbname
Cursor~/.cursor/mcp.json or .cursor/mcp.json
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "dbhub": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.dbhub]
command = "npx"
args = ["@bytebase/dbhub@latest", "--transport", "stdio", "--dsn", "postgres://user:password@localhost:5432/dbname"]

Check the project's README for required accounts, keys and permissions before connecting. Setup guide for each client →

For agent buildersMake your product part of the discovery.Explore advertising

DBHub vs. the alternatives

All 163 alternatives →
RecordStarsPricing
DBHubMCP serverthis listing3.6kOpen source
MCP Reference ServersMCP server91kOpen source
context7MCP server62kOpen source
chrome-devtools-mcpMCP server53kOpen source
Playwright MCPMCP server37kOpen source
github-mcp-serverMCP server33kOpen source

See all 163 DBHub alternatives, compared →