MCP server
DBHub MCP Server
- Maintainer
- Community
- Runs
- Local (stdio)
- Repo
- bytebase/dbhub
- GitHub
- ★ 3,716, last push 2026-10-21 (checked 2026-10-24)
- License
- MIT
- Registry
- io.github.bytebase/dbhub
- Connects to
- MariaDB, MySQL, PostgreSQL, SQL Server, SQLite
Install the DBHub MCP Server
Pick your client. Each tab starts the same local command. Config shapes checked against each client's docs on 2026-10-25.
Run in a terminal. Everything after -- is the command that starts the server. docs
claude mcp add --transport stdio dbhub -- npx -y @bytebase/dbhub
Claude Desktop only: Settings > Developer > Edit Config opens claude_desktop_config.json. Add this, save and restart the app. docs
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project), or use the install button. docs
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Add to .vscode/mcp.json (note the "servers" key and the type), or use the install button. Command Palette > "MCP: Open User Configuration" for all workspaces. docs
{
"servers": {
"dbhub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Run codex mcp add dbhub -- npx -y @bytebase/dbhub, or add this to ~/.codex/config.toml. docs
[mcp_servers.dbhub] command = "npx" args = ["-y", "@bytebase/dbhub"]
Run in a terminal (-s user adds it for all projects; the default is this project). docs
gemini mcp add -s user dbhub npx -- -y @bytebase/dbhub
Run in a terminal; it writes ~/.copilot/mcp-config.json. docs
copilot mcp add dbhub -- npx -y @bytebase/dbhub
Add to mcp_config.json: ~/.config/devin/mcp_config.json on macOS and Linux (older installs: ~/.codeium/windsurf/mcp_config.json), %APPDATA%\devin\ on Windows. docs
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Add to Zed's settings.json (or Settings > AI > MCP Servers > Add Server). Remote servers without an Authorization header sign in with OAuth. docs
{
"context_servers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Add to opencode.json in the project (or ~/.config/opencode/opencode.json). docs
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"dbhub": {
"type": "local",
"command": [
"npx",
"-y",
"@bytebase/dbhub"
],
"enabled": true
}
}
}Add to ~/.kiro/settings/mcp.json (all projects) or .kiro/settings/mcp.json (this project). docs
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}MCP Servers > Configure > Configure MCP Servers opens cline_mcp_settings.json; add this entry. docs
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@bytebase/dbhub"
]
}
}
}Security notes
- The local server runs with your user's permissions (npx downloads it from npm on first run).
- Connect it to a development database or a read-only user first: the model can run writes and deletes if the credentials allow them.
- Community code: read it (or at least the tools it registers) before you give it credentials.
Alternatives
- MCP Toolbox for Databasesofficial · ★ 17k
One server for Postgres, MySQL, SQL Server, BigQuery, AlloyDB, Spanner and more, with tools you define in YAML.
- Supabaseofficial · ★ 3k
Query Postgres, manage tables, migrations, edge functions and branches in your Supabase projects.
- SQL MCP Server (Data API builder)official · ★ 1.5k
Self-hosted server that exposes chosen SQL tables, views and procedures as safe CRUD tools.
- Neonofficial · ★ 655
Create Neon Postgres projects and branches, run SQL and plan migrations.
- Tursoofficial · ★ 6
Hosted server to manage Turso Cloud databases, groups and tokens and run SQL.
- AlloyDBofficial
Google-hosted server to manage AlloyDB for PostgreSQL clusters and run queries.
- Cloud SQLofficial
Google-hosted server to manage Cloud SQL for MySQL, PostgreSQL and SQL Server instances.
- Prismaofficial
Create Prisma Postgres databases, run migrations and inspect schemas.
Comparing servers for one product? MariaDB MCP servers · PostgreSQL MCP servers · SQL Server MCP servers · SQLite MCP servers
FAQ
What does the DBHub MCP Server do?+
One server for Postgres, MySQL, MariaDB, SQL Server and SQLite with read-only mode.
Is the DBHub MCP server official?+
Community-maintained (bytebase on GitHub), not by the company whose product it connects to.
How do I add DBHub to Claude Code?+
Run: claude mcp add dbhub -- npx -y @bytebase/dbhub. Add --scope project to share it with your team through .mcp.json.
How do I use the DBHub MCP server in Cursor or VS Code?+
Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("stdio").
Does DBHub work in ChatGPT and claude.ai?+
No: it runs locally over stdio, and ChatGPT and claude.ai only connect to remote servers. Use it in Claude Desktop, Claude Code, Cursor, VS Code or another client that can start a local process.
What are the alternatives to the DBHub MCP server?+
Other database MCP servers: MCP Toolbox for Databases, Supabase, SQL MCP Server (Data API builder), Neon and Turso.