MCP Directory

DBHub vs SQL Analyzer

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
SQL Analyzer

SQL static analysis, linting, and dialect conversion for your AI assistant, powered by SQLGlot.

Unverified
stdio (local)
No auth
Stale
Python
CategoryDatabasesDatabases
LanguageTypeScriptPython
Transportstdio (local)stdio (local)
AuthNoneNone
GitHub stars3.0k31
Last commit1 month ago1 year ago
Verified
Actively maintained
Installnpx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname"
RepoOpen Open

Verdict

Pick DBHub if you prefer the more popular, battle-tested option.

Pick SQL Analyzer if you prefer its approach (sql static analysis, linting, and dialect conversion for your ai assistant, powered by sqlglot).

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 SQL Analyzer

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

{
  "mcpServers": {
    "sql-analyzer": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/j4c0bs/mcp-server-sql-analyzer.git",
        "mcp-server-sql-analyzer"
      ]
    }
  }
}

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

FAQ

DBHub or SQL Analyzer — which is better?

Pick DBHub if you prefer the more popular, battle-tested option. Pick SQL Analyzer if you prefer its approach (sql static analysis, linting, and dialect conversion for your ai assistant, powered by sqlglot).

Can I use both DBHub and SQL Analyzer?

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 SQL Analyzer work with Claude, Cursor and Windsurf?

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