Tool connections (MCP)
DBHub
Connect an assistant to PostgreSQL, MySQL, SQLite and other SQL databases.
Install
Claude Code · System terminalTerminal commands
- Install Node.js and npm first; follow the project’s required version.
- Install Claude Code and sign in before configuring this integration.
- Prepare the database connection and grant only the permissions you need.
- Replace the placeholder values below before running or saving.
- Save the configuration, then restart or reload your assistant or editor.
System terminal
Replace these values: YOUR_DATABASE_DSN
claude mcp add --transport stdio dbhub -- npx @bytebase/dbhub@latest --transport stdio --dsn "YOUR_DATABASE_DSN"Codex · System terminalTerminal commands
- Install Node.js and npm first; follow the project’s required version.
- Install a current Codex CLI and sign in first.
- Prepare the database connection and grant only the permissions you need.
- Replace the placeholder values below before running or saving.
- Save the configuration, then restart or reload your assistant or editor.
System terminal
Replace these values: YOUR_DATABASE_DSN
codex mcp add dbhub -- npx @bytebase/dbhub@latest --transport stdio --dsn "YOUR_DATABASE_DSN"Requirements, costs and detailed steps
DBHub setup documentation
Setup requirements have not been reviewed yet. Check the project’s setup guide.
Based on public documentation; not individually installed and tested here.
What is DBHub?
Bytebase's lightweight MCP connects an assistant to several SQL databases through one server. It supports schema exploration, queries, multiple connections and configurable read-only, row-limit and timeout controls. It requires existing databases and credentials and runs via npm or Docker. The code uses MIT licensing; database hosting costs remain separate. It is distinct from Bytebase's enterprise approval and auditing platform.
DBHub use cases
- Connect to multiple SQL database systems
- Explore schemas and execute queries
- Configure read-only access, row limits and query timeouts
Official project & documentation
Alternatives to DBHub for similar tasks
Compare plugins for similar tasks and check their setup requirements.
- ClickHouse MCP — Let an assistant inspect ClickHouse tables and query analytical data.
- Neon MCP Server — Explore and manage Neon Postgres databases from your coding assistant.
- dbt MCP Server — Give an assistant dbt project context and tools for data workflows.