DBHub
local MCP serverDBHub is a local MCP server: Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite. Install it from npm as @bytebase/dbhub.
Installation
Terminal
claude mcp add dbhub -e DSN=... -e DB_TYPE=... -e DB_HOST=... -e DB_PORT=... -e DB_USER=... -e DB_PASSWORD=... -e DB_NAME=... -e TRANSPORT=... -e PORT=... -e ID=... -e SSH_HOST=... -e SSH_PORT=... -e SSH_USER=... -e SSH_PASSWORD=... -e SSH_KEY=... -e SSH_PASSPHRASE=... -- npx -y @bytebase/dbhub
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"dbhub": {
"command": "npx",
"args": [
"-y",
"@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": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Node.js 18+ (runs with npx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
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
Summary
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
DBHub vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| DBHub | 3,574 | Local | Yes | npm |
| jCodemunch MCP | 2,716 | Local | No | pypi |
| github | 138 | Local | No | npm |
| http | 138 | Local | No | npm |
| make | 138 | Local | No | npm |
Questions
It reads 16 environment variables: 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. Set them in your MCP config before starting the server.
Node.js 18+ (runs with npx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
DBHub is a local MCP server distributed as the npm package @bytebase/dbhub.
Run: claude mcp add dbhub -e DSN=... -e DB_TYPE=... -e DB_HOST=... -e DB_PORT=... -e DB_USER=... -e DB_PASSWORD=... -e DB_NAME=... -e TRANSPORT=... -e PORT=... -e ID=... -e SSH_HOST=... -e SSH_PORT=... -e SSH_USER=... -e SSH_PASSWORD=... -e SSH_KEY=... -e SSH_PASSPHRASE=... -- npx -y @bytebase/dbhub
Run: codex mcp add dbhub --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=... -- npx -y @bytebase/dbhub
Similar MCP servers
NameStars
- jCodemunch MCPio.github.jgravelle/jcodemunch-mcp2,716
- githubio.github.Dave-London/github138
- httpio.github.Dave-London/http138
- makeio.github.Dave-London/make138
- searchio.github.Dave-London/search138
- zotero-bridgeio.github.Combjellyshen/zotero-bridge10
- RevoGrid DataGrid MCPio.github.revolist/revogrid-mcp3,446
- LINQ to DBio.github.linq2db/linq2db.cli3,329