bytebase/dbhub

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

View on GitHub ↗Jump to charts ↓Open shareable report →

bytebase/dbhub has 3.5k+ stars and 300+ forks on GitHub, is written in TypeScript, and was last pushed on Oct 13, 2026. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 24 minutes ago
Added to GitGenius on April 7th, 2025
Created on March 9th, 2025
Open Issues & Pull Requests: 2 (+0)
GitHub issues: Enabled
Number of forks: 336
Total Stargazers: 3,673 (+0)
Total Subscribers: 19 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.6 hours
Mean response time: 37.5 hours
90th percentile: 3.0 days
Tracked items: 188

Maintainer activity

5 people did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 18, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits. How this is counted.

How this project is maintained

Practically every issue opened in the past year has drawn a reply. 96% of issues opened in the past year have since been closed. Three people close 95% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 4
New in 7 days: 2
Closed in 7 days: 2
Avg open age: 82 days
Stale 30+ days: 2
Stale 90+ days: 1

Recent activity

Opened in 7 days: 2
Closed in 7 days: 2
Comments in 7 days: 1
Events in 7 days: 9

Top labels

  • bug (7)
  • enhancement (3)
  • help wanted (2)
  • wontfix (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

DBHub is a zero-dependency MCP server developed by Bytebase that enables AI agents and language models to interact with multiple database systems through a standardized interface. Written in TypeScript, it implements the Model Context Protocol to allow MCP-compatible clients such as Claude, Cursor, and Dify to connect to and explore PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite databases. The project is designed with token efficiency as a core principle, implementing just two primary MCP tools to maximize context window usage in AI applications.

The server provides two main database interaction tools: execute_sql for running SQL queries with transaction support and safety controls, and search_objects for exploring database schemas, tables, columns, indexes, and procedures through progressive disclosure. Additionally, users can define custom tools as reusable, parameterized SQL operations within a dbhub.toml configuration file. A built-in web workbench provides a visual interface for executing queries, running custom tools, and viewing request traces without requiring a separate MCP client.

DBHub prioritizes security and operational safety through several built-in guardrails. It supports read-only mode to prevent accidental modifications, implements row limiting to prevent excessive data retrieval, and enforces query timeouts to stop runaway operations. The server supports SSH tunneling and SSL/TLS encryption for secure database connections. The HTTP transport includes DNS-rebinding protection and defaults to loopback binding in production environments, with configurable allowed hosts to work behind reverse proxies.

The installation process is straightforward, supporting Docker deployment, NPM installation for Node.js 22.5.0 and above, and a demo mode for quick evaluation. Multi-database configuration allows simultaneous connections to multiple databases through TOML configuration files, making it suitable for managing production, staging, and development environments from a single DBHub instance. The project requires Node.js 22.5.0 or later due to its use of the built-in node:sqlite module.

The repository shares contributors with notable projects including zitadel/zitadel, microsoft/vscode, and typeorm/typeorm, suggesting integration with broader development ecosystems.