DBHub vs MCP Server for MySQL
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 Server for MySQL Read-only (optionally write) access to MySQL databases for LLMs — inspect schemas and run SQL queries. Unverified stdio (local) No auth JavaScript | |
|---|---|---|
| Category | Databases | Databases |
| Language | TypeScript | JavaScript |
| Transport | stdio (local) | stdio (local) |
| Auth | None | None |
| GitHub stars | 3.0k | 1.8k |
| Last commit | 1 month ago | 4 months ago |
| Verified | ||
| Actively maintained | ||
| Install | npx @bytebase/dbhub@latest --transport stdio --dsn "postgres://user:password@localhost:5432/dbname" | npm install -g @benborla29/mcp-server-mysql |
| Repo | Open | Open |
Verdict
Pick DBHub if you prefer the more popular, battle-tested option.
Pick MCP Server for MySQL if you prefer its approach (read-only (optionally write) access to mysql databases for llms — inspect schemas and run sql queries).
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 Server for MySQL
npm install -g @benborla29/mcp-server-mysqlPaste into ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcp-server-for-mysql": {
"command": "/path/to/npx/binary/npx",
"args": [
"-y",
"@benborla29/mcp-server-mysql"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "root",
"MYSQL_PASS": "",
"MYSQL_DB": "db_name",
"PATH": "/path/to/node/bin:/usr/bin:/bin",
"ALLOW_INSERT_OPERATION": "false",
"ALLOW_UPDATE_OPERATION": "false",
"ALLOW_DELETE_OPERATION": "false"
}
}
}
}FAQ
DBHub or MCP Server for MySQL — which is better?
Pick DBHub if you prefer the more popular, battle-tested option. Pick MCP Server for MySQL if you prefer its approach (read-only (optionally write) access to mysql databases for llms — inspect schemas and run sql queries).
Can I use both DBHub and MCP Server for MySQL?
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 Server for MySQL work with Claude, Cursor and Windsurf?
Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.