SQL Analyzer vs DBHub
A side-by-side comparison of two Databases servers — tools, transport, auth, maintenance, and copy-paste config for each.
| SQL Analyzer SQL static analysis, linting, and dialect conversion for your AI assistant, powered by SQLGlot. Unverified stdio (local) No auth Stale Python | DBHub Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite. Unverified stdio (local) No auth TypeScript | |
|---|---|---|
| Category | Databases | Databases |
| Language | Python | TypeScript |
| Transport | stdio (local) | stdio (local) |
| Auth | None | None |
| GitHub stars | 31 | 3.0k |
| Last commit | 1 year ago | 1 day ago |
| Verified | ||
| Actively maintained | ||
| Install | — | npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname" |
| Repo | Open | Open |
Verdict
Pick SQL Analyzer if you prefer its approach (sql static analysis, linting, and dialect conversion for your ai assistant, powered by sqlglot).
Pick DBHub if you prefer the more popular, battle-tested option.
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.
Add DBHub
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"
]
}
}
}FAQ
SQL Analyzer or DBHub — which is better?
Pick SQL Analyzer if you prefer its approach (sql static analysis, linting, and dialect conversion for your ai assistant, powered by sqlglot). Pick DBHub if you prefer the more popular, battle-tested option.
Can I use both SQL Analyzer and DBHub?
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 SQL Analyzer and DBHub work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.