drio
Open app

Dbhub

Source

Universal database MCP server connecting to MySQL, PostgreSQL, Oracle, SQL Server, MariaDB, SQLite.

Catalog onlyCatalog onlySTDIO

Overview

Dbhub is a universal database gateway implementing the Model Context Protocol (MCP) server interface, allowing MCP-compatible clients to connect to and explore various databases like MySQL, PostgreSQL, SQLite, and DuckDB.

To use Dbhub, configure your database connection using a Database Source Name (DSN) and run the server using Docker or NPM commands. You can connect through different transport modes such as stdio or sse.

  • Browse available tables in the database - View schema information for tables - Run read-only SQL queries against the database - Safety checks to prevent dangerous queries
  1. Connecting to multiple database types through a single interface.
  2. Running read-only queries for data analysis.
  3. Integrating with AI tools like Claude Desktop for enhanced database interaction.

Add to your AI client

Use these steps to connect Dbhub in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "dbhub-bytebase": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "dbhub-bytebase": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "dbhub-bytebase": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "dbhub-bytebase": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "dbhub-bytebase": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "dbhub-bytebase": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dbhub-bytebase"
      ]
    }
  }
}

FAQ

What databases does Dbhub support?

Dbhub supports MySQL, PostgreSQL, SQLite, DuckDB, and more.

Is Dbhub free to use?

Yes! Dbhub is open-source and free to use.

How do I install Dbhub?

You can install Dbhub using Docker or NPM commands as detailed in the documentation.