AUTOMATIONSWITCH
OfficialDatabase

DBHub

by Bytebase

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite. Maintained by Bytebase. 2,717 GitHub stars and 3 commits on main in the last 30 days.

2,717·6 tools·Released JUN 2025·MIT
npx -y @bytebase/dbhub
Share:

Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, and SQLite. Maintained by Bytebase. 2,717 stars and 3 commits on main in the last 30 days.

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

Requires authenticationDATABASE_URL environment variable in standard URI format. SSL options inherit from the URI.
{ "mcpServers": { "dbhub": { "command": "npx", "args": [ "-y", "@bytebase/dbhub" ], "env": { "DATABASE_URL": "postgres://user:pass@host:5432/db" } } } }
PrereqNPM: `@bytebase/dbhub`. Set DATABASE_URL with engine-specific URI scheme (postgres://, mysql://, sqlserver://, mariadb://, sqlite://). Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "dbhub": { "command": "npx", "args": [ "-y", "@bytebase/dbhub" ], "env": { "DATABASE_URL": "postgres://user:pass@host:5432/db" } } } }
{ "mcpServers": { "dbhub": { "command": "npx", "args": [ "-y", "@bytebase/dbhub" ], "env": { "DATABASE_URL": "postgres://user:pass@host:5432/db" } } } }
{ "mcpServers": { "dbhub": { "command": "npx", "args": [ "-y", "@bytebase/dbhub" ], "env": { "DATABASE_URL": "postgres://user:pass@host:5432/db" } } } }
{ "mcpServers": { "dbhub": { "command": "npx", "args": [ "-y", "@bytebase/dbhub" ], "env": { "DATABASE_URL": "postgres://user:pass@host:5432/db" } } } }

6 TOOLS AVAILABLE

execute_query
Run a parameterised SQL query against the configured database
Admin
list_tables
List tables visible to the connection
Read
describe_table
Describe columns, indexes, and constraints
Read
list_databases
List databases on the server
Read
get_schema
Retrieve the schema for a database or table
Read
explain_query
Run EXPLAIN on a query and return the plan
Read

OUR ASSESSMENT

Strengths
  • Bytebase official maintenance.
  • 2,717 GitHub stars.
  • 3 commits on main in the last 30 days.
  • MIT license.
  • Five database engines in one MCP.
  • Zero-dependency Node binary.
  • Token-efficient output.
Weaknesses
  • execute_query carries write capability; agent prompt path needs review.
  • No per-tool permissioning; restrict via the database role attached to DATABASE_URL.
  • Smaller engine catalog than googleapis/genai-toolbox (no BigQuery, Spanner).
Security Notes

DATABASE_URL carries the full database role permission. Use a read-only role for read-heavy agent flows. execute_query permits writes; gate destructive queries via the connecting role or wrap the agent prompt path with explicit operator confirmation.

Best For

Teams running mixed Postgres/MySQL/SQL Server/MariaDB/SQLite stacks who want one MCP across all; token-budget-sensitive agent flows where dbhub's lean output beats verbose SQL clients; Node-only environments that prefer not to install Go or Python toolchains.

TECHNICAL DETAILS

Language
typescript
Transport
stdio
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
MIT
GitHub
bytebase/dbhub · ★ 2,717
npm
@bytebase/dbhub
Last Release
@bytebase/dbhub (npm latest)MAY 9, 2026
First Released
JUN 1, 2025

ADOPTION METRICS

// GitHub Stars
2,717

// Reading this2,717 stars on bytebase/dbhub. 3 commits on main in the last 30 days.

// Popularity Rank
#3
Globally · #3 in Database

// Reading thisPairs with MCP Toolbox for Databases, Postgres, MongoDB, Neon, Supabase, ClickHouse, Redis, MindsDB, Elasticsearch, PlanetScale, Neo4j MCPs. DBHub owns the lean-multi-engine slot.

SOURCES & VERIFICATION

We don't take any single directory's word for it. Before scoring, we cross-reference 4 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.

01
Discovered
Manual submission
First indexed MAY 9, 2026
02
Cross-referenced
4 directories
PulseMCP, MCP.so, Glama, Smithery
03
Verified against
Claude Desktop, Cursor
Installed and tested across clients
04
Last re-checked
MAY 9, 2026
Weekly re-verification
// How other directories see it

The same server, 4 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.4editorial2,717MAY 9, 2026
PulseMCP— unratedunavailableunavailableMAY 9, 2026
MCP.so— unratedunavailableunavailableMAY 9, 2026
Glama— unratedunavailableunavailableMAY 9, 2026
Smithery— unratedunavailableunavailableMAY 9, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

OTHER DATABASE MCP SERVERS

Official5

Postgres MCP

Anthropic

Official MCP server for PostgreSQL. Provides read and write access to PostgreSQL databases with schema introspection, query execution, and transaction support. The reference implementation for database MCP servers.

14 tools84,955
Vendor5

Supabase

Supabase

Persistence layer with full Postgres access and Row Level Security awareness. Query tables, manage schemas, handle auth users, and work with storage buckets.

18 tools2,663
Official4.7

MCP Toolbox for Databases

Google (googleapis)

Google's open-source MCP server for databases. One MCP binary speaks PostgreSQL, MySQL, BigQuery, Spanner, AlloyDB, Cloud SQL, and SQLite. 14,937 GitHub stars and 100 commits on main in the last 30 days. Highest commit cadence in the directory.

7 tools14,937
Official4.5

ClickHouse MCP

ClickHouse

Official ClickHouse MCP server with both ClickHouse Tools (production cluster queries) and chDB Tools (embedded ClickHouse for local analytics). Apache-2.0 with destructive-operation protection: write access is opt-in via configuration.

5 tools766
Official4.4

Redis MCP

Redis

Official Redis MCP server with natural-language interface for managing and searching Redis data. EntraID authentication for Azure Managed Redis included; Redis ACL configurable via environment variables. Tool coverage spans strings, lists, hashes, sets, sorted sets, JSON, vectors, and search.

8 tools499
Community4.4

Elasticsearch MCP

cr7258

Elasticsearch and OpenSearch MCP server with index management, document CRUD, search queries, cluster health, and aggregations. 270 stars and 22 commits on main in the last 30 days.

6 tools270
// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →