◆ Claudius
Status

dbhub

MCP✦ Official

MCP server for querying Postgres, MySQL, SQL Server, MariaDB, and SQLite with a zero-dependency, token-efficient interface.

by bytebase·bytebase/dbhub·TypeScript·v1.4.0
100· A
Install
git clone https://github.com/bytebase/dbhub
Stars
3,602
7d change
▲ 0.90%
Downloads / week
—
Last active
1 day ago
About

[!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.

DBHub is a minimal MCP server: token-efficient, zero-dependency, and just two tools by default with opt-in extras. This lightweight gateway allows MCP-compatible clients to connect to and explore different databases:

Minimal: Zero dependency, token efficient with a minimal set of MCP tools to maximize context window Multi-Database: PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite through a single interface Multi-Connection: Connect to multiple databases simultaneously with TOML configuration Guardrails: Read-only mode, row limiting, and query timeout to prevent runaway operations Secure Access: SSH tunneling and SSL/TLS encryption

DBHub is the official example in the Claude Code docs for connecting to PostgreSQL via MCP.

Read more on GitHub →
30-day stars
Trust factors
Source
official
Known advisories
0
Maintenance
active
License
MIT
Age
19 months
databasetoken-efficiencydeveloper-tools#postgresql#mysql#sqlite#mariadb#sql-server#agents#ai#anthropic#claude-ai#codex#cursor#llm#mcp#mssql#oracle#postgres#sql#sqlserver