dbhub
Token conscious database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
dbhub: Token conscious database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Token conscious database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
What the project is
dbhub is a TypeScript project hosted on GitHub. Token conscious database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite. [!NOTE] Brought to you by Bytebase, open-source database governance platform. The repository is maintained by bytebase and tracks activity through its public issue tracker and commit history. Readers who want a working example rather than a bare library will find the documentation and the linked resources useful for getting a first build running.
What it offers
The dbhub repository documents several concrete capabilities that shape how people use it. Minimal : Zero dependency, token efficient with a minimal set of MCP tools to maximize context window Multi-Database : PostgreSQL, MySQL, MariaDB, SQL Server, 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 These points are taken from the project README, so they reflect what the maintainers actually ship rather than marketing claims. Checking the file list and the example directories gives a fuller picture of how each piece fits together.
How to set it up
Getting dbhub running starts with cloning the source from https://github.com/bytebase/dbhub. The README lists the commands needed to fetch the code and build or launch it. Representative steps from the documentation include: npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname?sslmode=disable" pnpm install pnpm dev pnpm build && pnpm start --transport stdio --dsn "postgres://user:password@localhost:5432/dbname". After the code is on disk, the project instructions walk through configuration and any dependencies. Following the order shown in the README avoids the common setup mistakes that come from mixing steps.
License and project status
dbhub is written primarily in TypeScript and is released under the MIT license, which sets the terms for reuse and redistribution. The project reports around 3383 stars on GitHub, a signal of how many developers have bookmarked it. The source was last updated on 2026-08-21. The canonical location is https://github.com/bytebase/dbhub, where the license file, the changelog and the open issues give the most current state of the work. Anyone planning to depend on it should read the license text directly before shipping it inside another product.
Editorial conclusion
The dbhub source lives at https://github.com/bytebase/dbhub under the MIT license and is mainly written in TypeScript. The README and the linked examples remain the place to confirm the current behaviour before adopting the project.
Community notes