MCP Directory

DBHub vs MySQL MCP Server Pro

A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.

 DBHub

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite.

Unverified
stdio (local)
No auth
TypeScript
MySQL MCP Server Pro

MySQL CRUD plus anomaly analysis: SQL optimization, health checks, lock and index diagnostics, with role-based permissions.

Unverified
stdio (local)
OAuth
Stale
Python
CategoryDatabasesDatabases
LanguageTypeScriptPython
Transportstdio (local)stdio (local)
AuthNoneOAuth
GitHub stars3.0k246
Last commit1 month ago11 months ago
Verified
Actively maintained
Installnpx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"pip install mysql_mcp_server_pro
RepoOpen Open

Verdict

Pick DBHub if you prefer the more popular, battle-tested option, and you want zero-setup with no API key.

Pick MySQL MCP Server Pro if you need the broadest set of tools.

Add DBHub

Install / run
npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub@latest",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}

Add MySQL MCP Server Pro

Install / run
pip install mysql_mcp_server_pro

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "mysql-mcp-server-pro": {
      "command": "uvx",
      "args": [
        "--from",
        "mysql_mcp_server_pro",
        "mysql_mcp_server_pro",
        "--mode",
        "stdio"
      ],
      "env": {
        "MYSQL_HOST": "192.168.x.xxx",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "root",
        "MYSQL_DATABASE": "a_llm",
        "MYSQL_ROLE": "admin"
      }
    }
  }
}

Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.

FAQ

DBHub or MySQL MCP Server Pro — which is better?

Pick DBHub if you prefer the more popular, battle-tested option, and you want zero-setup with no API key. Pick MySQL MCP Server Pro if you need the broadest set of tools.

Can I use both DBHub and MySQL MCP Server Pro?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do DBHub and MySQL MCP Server Pro work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.