DBHub
Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<your-dsn>",
"DB_TYPE": "<db_type>",
"DB_HOST": "<db_host>",
"DB_PORT": "<db_port>",
"DB_USER": "<db_user>",
"DB_PASSWORD": "<your-db_password>",
"DB_NAME": "<db_name>",
"TRANSPORT": "<transport>",
"PORT": "<port>",
"ID": "<id>",
"SSH_HOST": "<ssh_host>",
"SSH_PORT": "<ssh_port>",
"SSH_USER": "<ssh_user>",
"SSH_PASSWORD": "<your-ssh_password>",
"SSH_KEY": "<ssh_key>",
"SSH_PASSPHRASE": "<your-ssh_passphrase>"
}
}
}
}{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
],
"env": {
"DSN": "<your-dsn>",
"DB_TYPE": "<db_type>",
"DB_HOST": "<db_host>",
"DB_PORT": "<db_port>",
"DB_USER": "<db_user>",
"DB_PASSWORD": "<your-db_password>",
"DB_NAME": "<db_name>",
"TRANSPORT": "<transport>",
"PORT": "<port>",
"ID": "<id>",
"SSH_HOST": "<ssh_host>",
"SSH_PORT": "<ssh_port>",
"SSH_USER": "<ssh_user>",
"SSH_PASSWORD": "<your-ssh_password>",
"SSH_KEY": "<ssh_key>",
"SSH_PASSPHRASE": "<your-ssh_passphrase>"
}
}
}
}npx -y @bytebase/dbhubDSNDatabase connection string (e.g., postgres://user:pass@host:5432/db)
DB_TYPEDatabase type: postgres, mysql, mariadb, sqlserver, sqlite
DB_HOSTDatabase hostname
DB_PORTDatabase port
DB_USERDatabase username
DB_PASSWORDDatabase password
DB_NAMEDatabase name or SQLite file path
TRANSPORTTransport mode: stdio or http
PORTHTTP server port (default: 8080)
IDInstance identifier for tool names
SSH_HOSTSSH server hostname
SSH_PORTSSH server port (default: 22)
SSH_USERSSH username
SSH_PASSWORDSSH password
SSH_KEYPath to SSH private key
SSH_PASSPHRASESSH key passphrase
Database MCP server for MySQL, MariaDB, PostgreSQL & SQLite
Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni…
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…