DBHub
About
Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB
Use this server
Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.
Transportstdio (runs a local command)
Env vars
DSN DB_TYPE DB_HOST DB_PORT DB_USER DB_PASSWORD DB_NAME TRANSPORT PORT ID SSH_HOST SSH_PORT SSH_USER SSH_PASSWORD SSH_KEY SSH_PASSPHRASEClaude Code
claude mcp add --env DSN= --env DB_TYPE= --env DB_HOST= --env DB_PORT= --env DB_USER= --env DB_PASSWORD= --env DB_NAME= --env TRANSPORT= --env PORT= --env ID= --env SSH_HOST= --env SSH_PORT= --env SSH_USER= --env SSH_PASSWORD= --env SSH_KEY= --env SSH_PASSPHRASE= dbhub -- npx @bytebase/dbhub
Cursor
If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.
VS Code
code --add-mcp '{"name":"dbhub","command":"npx","args":["@bytebase/dbhub"],"env":{"DSN":"","DB_TYPE":"","DB_HOST":"","DB_PORT":"","DB_USER":"","DB_PASSWORD":"","DB_NAME":"","TRANSPORT":"","PORT":"","ID":"","SSH_HOST":"","SSH_PORT":"","SSH_USER":"","SSH_PASSWORD":"","SSH_KEY":"","SSH_PASSPHRASE":""}}'
JSON
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"@bytebase/dbhub"
],
"env": {
"DSN": "",
"DB_TYPE": "",
"DB_HOST": "",
"DB_PORT": "",
"DB_USER": "",
"DB_PASSWORD": "",
"DB_NAME": "",
"TRANSPORT": "",
"PORT": "",
"ID": "",
"SSH_HOST": "",
"SSH_PORT": "",
"SSH_USER": "",
"SSH_PASSWORD": "",
"SSH_KEY": "",
"SSH_PASSPHRASE": ""
}
}
}
}
Environment variables are listed by name only — fill in your own values. Entries never carry secrets.