Dbhub
MCP server by zgeoff Verified · npm:@zgeoff
DBHub is a zero-dependency MCP server that lets AI clients connect to and explore PostgreSQL, MySQL, MariaDB, SQL Server and SQLite databases. It offers two tools and guardrails such as read-only mode and row limits, aimed at local development.
Install Dbhub
Built from the published package, never by AI.
claude mcp add dbhub -- npx -y @zgeoff/dbhubRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"dbhub": {
"args": [
"-y",
"@zgeoff/dbhub"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"dbhub": {
"args": [
"-y",
"@zgeoff/dbhub"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"dbhub": {
"args": [
"-y",
"@zgeoff/dbhub"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add dbhub -- npx -y @zgeoff/dbhub{
"mcpServers": {
"dbhub": {
"args": [
"-y",
"@zgeoff/dbhub"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add dbhub npx -y @zgeoff/dbhubGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the dbhub block.
About
DBHub is a zero-dependency MCP server that implements the Model Context Protocol server interface. It lets MCP-compatible clients such as Claude Desktop, Claude Code, Cursor, VS Code and Copilot CLI connect to and explore PostgreSQL, MySQL, MariaDB, SQL Server and SQLite databases through one interface. It can connect to several databases at once using TOML configuration.
It exposes two MCP tools, execute_sql and search_objects, to keep the context window small. Guardrails include read-only mode, row limiting and query timeouts, and it supports SSH tunneling and SSL/TLS. The project is aimed at local development and at teams who want curated database access. It also includes a built-in web Workbench. This listing is a republished fork of bytebase/dbhub.
Written from the project's README and checked against it.
Tools it gives your assistant
execute_sqlExecutes SQL queries with transaction support and safety controls.search_objectsSearches schemas, tables, columns, indexes and procedures with progressive disclosure.Custom ToolsDefines reusable, parameterized SQL operations in a dbhub.toml file.WorkbenchProvides a built-in web interface to run queries and custom tools without an MCP client.
What you need
- Node.js 22.5.0 or later for the NPM install or development
- Docker, for the Docker image
- A database connection string
- An MCPB-compatible client, for the MCP Bundle install
Try asking
- Use execute_sql to count the rows in the orders table.
- Use search_objects to list the tables and indexes in the sales schema.
- Run my custom tool for monthly revenue on the staging database.
Good to know
- The HTTP transport binds to 0.0.0.0 by default and does not authenticate HTTP clients.
- The MCP Bundle is read-only by design and rejects writes.
- Development requires Node.js 22.5.0 or later because it uses the node:sqlite module.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Dbhub
All alternatives →Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.
ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.
Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.
MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.
Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.
MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Dbhub: common questions
Which databases does DBHub support?
The source lists PostgreSQL, MySQL, SQL Server, MariaDB and SQLite.
Can DBHub connect to more than one database at a time?
Yes. The source says it can connect to multiple databases simultaneously using TOML configuration.
Is DBHub read-only?
The source describes a read-only mode as a guardrail. The MCP Bundle is read-only by design and rejects writes.
How do I install Dbhub?
In Claude Code run claude mcp add dbhub -- npx -y @zgeoff/dbhub. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Dbhub the official server?
Dbhub is published by npm:@zgeoff from its verified domain in the official MCP Registry.
Is Dbhub free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Dbhub safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality D. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Dbhub?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Dbhub work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
