DbhubBLOCK
Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.
+------------------+ +--------------+ +------------------+ | | | | | | | Claude Desktop +--->+ +--->+ PostgreSQL | | | | | | | | Claude Code +--->+ +--->+ SQL Server | | | | | | | | Cursor +--->+ DBHub +--->+ Oracle | | | | | | | | VS Code +--->+ +--->+ SQLite | |
c07ef8c455b2OBSERVED · 2026-09-22Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add dbhub --env DSN=${DSN} --env DB_PASSWORD=${DB_PASSWORD} -- npx -y @bytebase/[email protected]Exposed tools (1)
0 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
update_status | write | Update user status |
Trust audit
BLOCKgrade F · trust 53/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- declared (5 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
connectionConfig.ssl = { rejectUnauthorized: false };dsn = "postgres://postgres:postgres@localhost:5432/myapp"
# dsn = "postgres://postgres:postgres@localhost:5432/myapp"
# dsn = "postgres://dev_user:[email protected]:5432/myapp_dev?sslmode=require"
# dsn = "postgres://app_user:[email protected]:5432/myapp_prod?sslmode=require"
# dsn = "postgres://app_user:[email protected]:5432/myapp_prod?sslmode=require"
writeFileSync(keyPath, '-----BEGIN OPENSSH PRIVATE KEY-----\n');
writeFileSync(keyPath, '-----BEGIN OPENSSH PRIVATE KEY-----\n');
writeFileSync(keyPath, '-----BEGIN OPENSSH PRIVATE KEY-----\n');
const fakeKey = '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBg==\n-----END PRIVATE KEY-----\n';
.prettierrc.json
expect(isReadOnlySQL("EXEC('DELETE FROM users')", "sqlserver")).toBe(false);expect(isReadOnlySQL("WITH cte AS (SELECT 1) EXEC('DELETE FROM users')", "sqlserver")).toBe(false);expect(isReadOnlySQL("/* EXEC('DROP TABLE users') */ SELECT 1", "sqlserver")).toBe(true);expect(areAllStatementsReadOnly("SELECT 1; EXEC('DELETE FROM users')", "sqlserver")).toBe(false);privateKey: '/home/user/.ssh/id_rsa'
privateKey: '/home/user/.ssh/id_rsa'
privateKey: '/home/user/.ssh/id_rsa'
privateKey: '/home/user/.ssh/id_rsa'
privateKey: '/home/user/.ssh/id_rsa'
import type { DataSource } from '../../types/datasource';import { cn } from '../../lib/utils';import { cn } from '../../lib/utils';import { DB_LOGOS } from '../../lib/db-logos';import type { DataSource } from '../../types/datasource';Gates applied: no_behavioural_pass.
c07ef8c455b2full audit observations/trust-audit/mcp-server/bytebase__dbhub.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-22 | c07ef8c455b2 | BLOCK | F | 53 | source changed, verdict held |
| 2026-09-18 | 444f412f74ad | BLOCK | F | 53 | first audit |
Questions
What is the Dbhub MCP server?
Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.
What tools does Dbhub expose?
1 in total: 0 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Dbhub safe to connect to an agent?
No — not without reading the findings first. The audit graded it F (53/100) and found 6 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Dbhub need?
It reads DBHUB_AUTH_TOKEN, DB_PASSWORD, DSN, SSH_KEY, SSH_PASSPHRASE, SSH_PASSWORD, TEST_DB_PASSWORD and TEST_SSH_PASSWORD from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Dbhub run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as dbhub at 1.3.1.
How current is this page?
The grade is for one exact copy of the source (c07ef8c455b2), read on 2026-09-22. The repository is watched and re-audited when it changes.