
DBHub
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server
by io.github.bytebaseOpen source
Description
DBHub is a minimal database server for the Model Context Protocol, so MCP-compatible clients such as Claude Code, VS Code and Cursor can explore and query databases. It supports PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite through one interface, and it can connect to several databases at once using a TOML configuration file. By default it loads only two tools, execute_sql and search_objects, which the README says uses about 1.4k tokens, to leave room in the context window. Guardrails include read-only mode, row limits and query timeouts. It supports SSH tunnels and SSL or TLS encryption. The README notes that it is the official example in the Claude Code docs for connecting to PostgreSQL. For enterprise needs such as approval flows, access control, data masking and audit logging, the README points to the vendor's commercial product. The project is open source on GitHub.…
Highlights
- Two default MCP tools with a small token footprint
- PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite
- Several connections from a TOML file
- Read-only mode, row limits and timeouts
- SSH tunnels and TLS
Ratings & Reviews
No ratings yet
Be the first to rate DBHub.
People also visit

antonorlov/mcp-postgres-server
Access PostgreSQL databases, including those behind an SSH bastion

neondatabase/mcp-server-neon
Create and manage Postgres databases with Neon Serverless Postgres

MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database
DBHub FAQ
What is DBHub?
A minimal database MCP server that lets AI clients explore and query several databases.
Which databases does it support?
PostgreSQL, MySQL, MariaDB, SQL Server, Oracle and SQLite, according to the README.
Can it write to my database?
It has a read-only mode, and the README lists guardrails such as row limits and query timeouts.
How many tools does it load?
Two by default, execute_sql and search_objects, with other tools available as opt-in extras.
Is it free?
Yes. The project is open source on GitHub.
What are the best DBHub alternatives?
Popular alternatives to DBHub include benborla29/mcp-server-mysql, designcomputer/mysqlmcpserver and antonorlov/mcp-postgres-server. See all DBHub alternatives


















