Home › Databases & Data › DBHub
DBHub
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
Connect
Review any command before running it. Package names and URLs come from the server's own registry entry.
Package (npm 1.3.1)
npx -y @bytebase/[email protected]
Or add to your MCP client config:
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/[email protected]"
],
"env": {
"DSN": "<YOUR_VALUE>",
"DB_TYPE": "<YOUR_VALUE>",
"DB_HOST": "<YOUR_VALUE>",
"DB_PORT": "<YOUR_VALUE>",
"DB_USER": "<YOUR_VALUE>",
"DB_PASSWORD": "<YOUR_VALUE>",
"DB_NAME": "<YOUR_VALUE>",
"TRANSPORT": "<YOUR_VALUE>",
"PORT": "<YOUR_VALUE>",
"ID": "<YOUR_VALUE>",
"SSH_HOST": "<YOUR_VALUE>",
"SSH_PORT": "<YOUR_VALUE>",
"SSH_USER": "<YOUR_VALUE>",
"SSH_PASSWORD": "<YOUR_VALUE>",
"SSH_KEY": "<YOUR_VALUE>",
"SSH_PASSPHRASE": "<YOUR_VALUE>"
}
}
}
}
DSNsecret — Database connection string (e.g., postgres://user:pass@host:5432/db)DB_TYPE— Database type: postgres, mysql, mariadb, sqlserver, oracle, sqliteDB_HOST— Database hostnameDB_PORT— Database portDB_USER— Database usernameDB_PASSWORDsecret — Database passwordDB_NAME— Database name or SQLite file pathTRANSPORT— Transport mode: stdio or httpPORT— HTTP server port (default: 8080)ID— Instance identifier for tool namesSSH_HOST— SSH server hostnameSSH_PORT— SSH server port (default: 22)SSH_USER— SSH usernameSSH_PASSWORDsecret — SSH passwordSSH_KEY— Path to SSH private keySSH_PASSPHRASEsecret — SSH key passphrase
Related servers
dbx
Query databases from AI agents using connections configured in DBX.
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
baserow
Baserow database integration with table search, list, and row create, read, update, and delete capabilities.
mcp-server-chart
A Model Context Protocol server for generating charts using AntV.
vizro
Tools and templates to create validated and maintainable data charts and dashboards.
postgres-mcp
All-in-one MCP server for Postgres development and operations, with tools for performance analysis, tuning, and health checks
Listed in wong2/awesome-mcp-servers (MIT)
Data from the Official MCP Registry