DBHub vs MCP Alchemy
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 | MCP Alchemy Connect Claude directly to PostgreSQL, MySQL, SQLite, Oracle, MS SQL and other SQLAlchemy databases. Unverified stdio (local) No auth Stale Python | |
|---|---|---|
| Category | Databases | Databases |
| Language | TypeScript | Python |
| Transport | stdio (local) | stdio (local) |
| Auth | None | None |
| GitHub stars | 3.0k | 410 |
| Last commit | 1 month ago | 11 months ago |
| Verified | ||
| Actively maintained | ||
| Install | npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname" | uvx --from mcp-alchemy==2025.8.15.91819 --refresh-package mcp-alchemy mcp-alchemy |
| Repo | Open | Open |
Verdict
Pick DBHub if you prefer the more popular, battle-tested option.
Pick MCP Alchemy if you prefer its approach (connect claude directly to postgresql, mysql, sqlite, oracle, ms sql and other sqlalchemy databases).
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"
]
}
}
}Add MCP Alchemy
uvx --from mcp-alchemy==2025.8.15.91819 --refresh-package mcp-alchemy mcp-alchemyPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-alchemy": {
"command": "uvx",
"args": [
"--from",
"mcp-alchemy==2025.8.15.91819",
"--with",
"psycopg2-binary",
"--refresh-package",
"mcp-alchemy",
"mcp-alchemy"
],
"env": {
"DB_URL": "postgresql://user:password@localhost/dbname"
}
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
FAQ
DBHub or MCP Alchemy — which is better?
Pick DBHub if you prefer the more popular, battle-tested option. Pick MCP Alchemy if you prefer its approach (connect claude directly to postgresql, mysql, sqlite, oracle, ms sql and other sqlalchemy databases).
Can I use both DBHub and MCP Alchemy?
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 MCP Alchemy work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.